butthole protection
This commit is contained in:
@@ -84,8 +84,14 @@ class Kwaylon(Client):
|
||||
async with message.channel.typing():
|
||||
with self.data.connect() as con:
|
||||
days = get_days(message.content) or 14
|
||||
df = self.data.read_emoji(emoji_name, con=con,
|
||||
after=(datetime.today() - timedelta(days=days)).astimezone())
|
||||
|
||||
if days >= 1000:
|
||||
await message.reply(
|
||||
f'https://tenor.com/view/i-hate-you-anakin-darth-vader-vader-star-wars-gif-13071041')
|
||||
return
|
||||
|
||||
now = datetime.today().astimezone()
|
||||
df = self.data.read_emoji(emoji_name, con=con, after=(now - timedelta(days=days)))
|
||||
con.close()
|
||||
|
||||
if df.shape[0] > 0:
|
||||
|
||||
Reference in New Issue
Block a user