[bonneannee] Command for the nextyear doesn't require argument anymore

This commit is contained in:
nemunaire 2015-09-17 23:06:14 +02:00
parent d5f07ec338
commit d74a9067c0

View File

@ -43,9 +43,9 @@ def load(context):
@hook("cmd_hook", "newyear") @hook("cmd_hook", "newyear")
@hook("cmd_hook", str(yrn), yrn) @hook("cmd_hook", str(yrn))
def cmd_newyear(msg, yr): def cmd_newyear(msg):
return Response(countdown_format(datetime(yr, 1, 1, 0, 0, 1, 0, return Response(countdown_format(datetime(yrn, 1, 1, 0, 0, 1, 0,
timezone.utc), timezone.utc),
"Il reste %s avant la nouvelle année.", "Il reste %s avant la nouvelle année.",
"Nous faisons déjà la fête depuis %s !"), "Nous faisons déjà la fête depuis %s !"),