HD Con 2020

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