meme: bugfix misc: always flyday for Pony
This commit is contained in:
parent
85ba9cd9c1
commit
454c2840f4
@ -187,8 +187,14 @@ class Meme(commands.Cog):
|
||||
query_1_params: tuple = (uid,)
|
||||
query_2: str = "INSERT INTO memes (discord_uid, count) VALUES (?, ?)"
|
||||
query_2_params: tuple = (uid, self.meme_leaderboard[uid])
|
||||
try:
|
||||
await db_conn.execute(query_1, query_1_params)
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
await db_conn.execute(query_2, query_2_params)
|
||||
except:
|
||||
pass
|
||||
await db_conn.commit()
|
||||
|
||||
|
||||
@ -636,7 +642,7 @@ class Meme(commands.Cog):
|
||||
top_formatted = top_formatted.strip()
|
||||
embed: discord.Embed = discord.Embed(title=f"Top {n} Memes",
|
||||
description=top_formatted,
|
||||
colour=0xff00ff)
|
||||
colour=0x25bd6b)
|
||||
return embed
|
||||
|
||||
@tasks.loop(seconds=30, reconnect=True)
|
||||
|
@ -1376,6 +1376,9 @@ class Misc(commands.Cog):
|
||||
try:
|
||||
today: datetime.datetime = datetime.datetime.today()
|
||||
today_weekday: int = today.weekday()
|
||||
pony_uid: int = 1090545395110785085
|
||||
if ctx.author.id == pony_uid:
|
||||
return await ctx.respond("# FUCK YEAH, IT'S ALWAYS FLYDAY FOR U BBY")
|
||||
|
||||
if int(today_weekday) == 1:
|
||||
return await ctx.respond("# FUCK YEAH IT'S FLYDAY!")
|
||||
|
Loading…
x
Reference in New Issue
Block a user