HD con 2019 countdown
This commit is contained in:
+9
-9
@@ -24,23 +24,23 @@ class Shitpost(object):
|
|||||||
@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 2018?
|
"""Hoe lang nog tot Hoestende Dranken Con 2019?
|
||||||
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(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
|
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 Distance.days < 0:
|
||||||
if Now.month == 9:
|
if Now.month == 9:
|
||||||
if Now.day == 14:
|
if Now.day == 20:
|
||||||
Message = "HD Con 2018 begint vandaag! OMG!"
|
Message = "HD Con 2019 begint vandaag! OMG!"
|
||||||
elif Now.day == 15 or Now.day == 16:
|
elif Now.day == 21 or Now.day == 22:
|
||||||
Message = "HD Con 2018 is nu bezig!!"
|
Message = "HD Con 2019 is nu bezig!!"
|
||||||
elif Now.day == 17:
|
elif Now.day == 23:
|
||||||
Message = "HD Con 2018 is vandaag alweer afgelopen... F"
|
Message = "HD Con 2019 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:
|
||||||
|
|||||||
Reference in New Issue
Block a user