HDcon countdown + ES6 teaser
This commit is contained in:
+48
-2
@@ -18,11 +18,40 @@ class Shitpost(object):
|
||||
self.voice_states = {}
|
||||
def __check(self, ctx): #Todo: Is dit het shitpost kanaal?
|
||||
return True
|
||||
|
||||
@commands.command(pass_context=True, hidden=False)
|
||||
@asyncio.coroutine
|
||||
@asyncio.coroutine
|
||||
def ishetalhdcon(self, ctx):
|
||||
"""Hoe lang nog tot Hoestende Dranken Con 2018?
|
||||
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, 3, 0, 1) #om 3 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
|
||||
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"
|
||||
else:
|
||||
NachtjesSlapen = Distance.days + 1
|
||||
if NachtjesSlapen == 1:
|
||||
Message = "Nog " + str(NachtjesSlapen) + " nachtje slapen..."
|
||||
else:
|
||||
Message = "Nog " + str(NachtjesSlapen) + " nachtjes slapen..."
|
||||
|
||||
yield from ctx.channel.send(ctx.author.mention + ' ' + str(Message))
|
||||
|
||||
@commands.command(pass_context=True, hidden=False)
|
||||
@asyncio.coroutine
|
||||
def viertwintig(self, ctx):
|
||||
"""Hoe lang nog tot 420?
|
||||
Gebruik: !420
|
||||
Gebruik: !viertwintig
|
||||
"""
|
||||
#year, month, day, hour=0, minute=0, second=0, microsecond=0, tzinfo=None, *, fold=0)
|
||||
Now = datetime.now()
|
||||
@@ -43,7 +72,23 @@ class Shitpost(object):
|
||||
seconds = secondsLeft - minutes * 60
|
||||
Message += "Nog " + str(days) + " dagen, " + str(hours) + " uur, " + str(minutes) + " minuten en " + str(seconds) + " seconden tot 420!!"
|
||||
|
||||
yield from ctx.channel.send(ctx.author.mention + ' ' + str(Message))
|
||||
|
||||
@commands.command(pass_context=True, hidden=False)
|
||||
@asyncio.coroutine
|
||||
def iselderscrolls6aluit(self, ctx):
|
||||
"""Hoe lang nog tot Elder Scrolls 6? 11-11-11? 20-20-20?
|
||||
Gebruik: !iselderscrolls6aluit
|
||||
"""
|
||||
Now = datetime.now()
|
||||
|
||||
if Now.month == 4 and Now.day == 1:
|
||||
Message = "JA! :hushed: " #1 april, motherfucker.
|
||||
else:
|
||||
Message = "Nee. :frowning2: Nog even geduld..."
|
||||
|
||||
yield from ctx.channel.send(ctx.author.mention + ' ' + str(Message))
|
||||
|
||||
@commands.command(pass_context=True, hidden=False)
|
||||
@asyncio.coroutine
|
||||
def giethetaloan(self, ctx):
|
||||
@@ -69,6 +114,7 @@ class Shitpost(object):
|
||||
if 'nee' in answer:
|
||||
reactie += 'Nee helaas..'
|
||||
yield from ctx.channel.send(ctx.author.mention + ' ' + reactie)
|
||||
|
||||
@commands.command(pass_context=True, hidden=True)
|
||||
@asyncio.coroutine
|
||||
def mark(self, ctx, boven: str, onder: str):
|
||||
|
||||
Reference in New Issue
Block a user