X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;f=today.py;h=470b2584365773220bcfa78000a65666cc5dd8d6;hb=6ccf35a4c6ca50deaaacea1b4169b56024201df2;hp=a949652e72ae70347614fb57f891fcf8bfb93eaf;hpb=97d75bf32aab9f32668c3d226fd2becfee24c1f9;p=today.git diff --git a/today.py b/today.py index a949652..470b258 100755 --- a/today.py +++ b/today.py @@ -198,10 +198,23 @@ def update_xkcd(newid): def update_xantah(newid): update_last_seen({"xantah" : int(newid)}) +def update_visiteur(newid): + update_last_seen({"visiteur" : int(newid)}) + +def update_noob(newid): + update_last_seen({"noob" : int(newid)}) + +def update_warpzone(newid): + update_last_seen({"warpzone" : int(newid)}) + + THINGS = { "dtc" : u"Quotes DTC", "xkcd" : u"Épisodes de XKCD", "xantah" : u"Épisodes de La Légende de Xantah", + "visiteur" : u"Épisodes du Visiteur du Futur", + "noob" : u"Épisodes de NOOB", + "warpzone" : u"Épisodes de WARPZONE PROJECT", "birthdays" : u"Anniversaires à souhaiter", } @@ -220,7 +233,7 @@ def check_all(): if type(n) != int: print n elif n > 0: - checks.append("%s : %s" % (comm, n)) + checks.append("%s : %s (last : %s)" % (comm, n, news[thing])) checks = u"\n".join(checks) checks = add_title(u"Checks", checks) return checks @@ -327,6 +340,9 @@ AUTOMATED_ACTIONS = { OTHER_ACTIONS = { "xkcd" : update_xkcd, "xantah" : update_xantah, + "visiteur" : update_visiteur, + "noob" : update_noob, + "warpzone" : update_warpzone, "dtc" : get_dtc, "ping" : ping,