HD con 2019 countdown

This commit is contained in:
JP
2019-08-11 15:59:21 +02:00
parent dfe2c736b5
commit 6257a8375e
+9 -9
View File
@@ -24,23 +24,23 @@ class Shitpost(object):
@commands.command(pass_context=True, hidden=False)
@asyncio.coroutine
def ishetalhdcon(self, ctx):
"""Hoe lang nog tot Hoestende Dranken Con 2018?
"""Hoe lang nog tot Hoestende Dranken Con 2019?
Gebruik: !ishetalhdcon
"""
#year, month, day, hour=0, minute=0, second=0, microsecond=0, tzinfo=None, *, fold=0)
Now = datetime.now()
HdConDate = datetime(2018, 9, 14, 4, 0, 1) #om 4 uur lig je toch wel al op bed?
HdConDate = datetime(2019, 9, 20, 4, 0, 1) #om 4 uur lig je toch wel al op bed?
Distance = HdConDate - Now
Message = Message = "HD Con 2018 is al voorbij. HD Con 2019 zal in 2019 plaatsvinden." #init
Message = Message = "HD Con 2019 is al voorbij. HD Con 2020 zal in 2020 plaatsvinden." #init
if Distance.days < 0:
if Now.month == 9:
if Now.day == 14:
Message = "HD Con 2018 begint vandaag! OMG!"
elif Now.day == 15 or Now.day == 16:
Message = "HD Con 2018 is nu bezig!!"
elif Now.day == 17:
Message = "HD Con 2018 is vandaag alweer afgelopen... F"
if Now.day == 20:
Message = "HD Con 2019 begint vandaag! OMG!"
elif Now.day == 21 or Now.day == 22:
Message = "HD Con 2019 is nu bezig!!"
elif Now.day == 23:
Message = "HD Con 2019 is vandaag alweer afgelopen... F"
yield from ctx.channel.send(ctx.author.mention + ' ' + str(Message))
return
else: