small fix on previous commit
This commit is contained in:
@@ -27,6 +27,7 @@ class Shitpost(object):
|
||||
"""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, 4, 0, 1) #om 4 uur lig je toch wel al op bed?
|
||||
@@ -61,6 +62,7 @@ class Shitpost(object):
|
||||
eventsMinutesAgoSameAuthor +=1
|
||||
if eventDistance.days < 2:
|
||||
eventsLastDays += 1
|
||||
if not "DMChannel" in type(ctx.channel).__name__: #ignore personal chats
|
||||
self.hdConImpatientEvents.append([ctx.author.id, Now])
|
||||
|
||||
#Als dezelfde persoon het blijft vragen pikken we het niet:
|
||||
@@ -73,6 +75,7 @@ class Shitpost(object):
|
||||
yield from ctx.channel.send("Dat vroeg je net ook al, " + ctx.author.mention + "!")
|
||||
return
|
||||
#Hoe vaker er wordt gevraagd, hoe ongeduldiger de antwoorden:
|
||||
if not "DMChannel" in type(ctx.channel).__name__: #ignore personal chats
|
||||
impatientFactor = 10 + eventsMinutesAgo*25 + eventsLastDays*10;
|
||||
impatientFactor *= random.random()
|
||||
if impatientFactor > 100:
|
||||
|
||||
Reference in New Issue
Block a user