feat(galaxy): added gank_gifs_list
Some checks failed
Pylint / Pylint (3.11.2) (push) Failing after 9s

This commit is contained in:
Seaswimmer 2023-09-23 12:07:03 -04:00
parent b205ed6e27
commit 369da342b4
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -1,3 +1,4 @@
from random import randint
import re
import subprocess
from datetime import datetime
@ -39,9 +40,14 @@ class Galaxy(commands.Cog):
@commands.Cog.listener('on_message')
async def gank_won_let_us_flee(self, message: discord.Message):
if message.guild.id == 204965774618656769 and message.channel.id == 753714180900519937 and message.author.id == 745790085789909033:
embeds = message.embeds
if len(embeds) == 1 and str(embeds[0].color) == '#57f287':
await message.reply("https://media.discordapp.net/attachments/409210244619698176/1115473811819737149/attachment.gif")
gank_gifs_list = [
"https://media.discordapp.net/attachments/409210244619698176/1115473811819737149/attachment.gif",
"https://media.discordapp.net/attachments/1008410912723578963/1008909720104468480/togif.gif",
"https://media.discordapp.net/attachments/1005675157517516960/1116155601504981013/Untitled.gif",
"https://media.discordapp.net/attachments/1025829645435797616/1124816638005498028/togif-3.gif"
]
if len(message.embeds) == 1 and str(message.embeds[0].color) == '#57f287':
await message.reply(gank_gifs_list[randint(0,3)])
@commands.Cog.listener('on_message')
async def autoreact(self, message: discord.Message):