feat(galaxy): added gank_won_let_us_flee method

This commit is contained in:
Seaswimmer 2023-09-22 19:36:29 -04:00
parent ebc014d285
commit 2f45a0fa4a
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -37,7 +37,14 @@ class Galaxy(commands.Cog):
await ctx.send(f"Output link: {output}") await ctx.send(f"Output link: {output}")
@commands.Cog.listener('on_message') @commands.Cog.listener('on_message')
async def autoreact(self, 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 embeds[0].color == '#57f288':
await message.reply("https://media.discordapp.net/attachments/409210244619698176/1115473811819737149/attachment.gif")
@commands.Cog.listener('on_message')
async def autoreact(self, message: discord.Message):
if message.guild is not None: if message.guild is not None:
emoji_id = await self.config.guild(message.guild).autoreact_emoji() emoji_id = await self.config.guild(message.guild).autoreact_emoji()
if self.check_if_discord_unicode_emoji(emoji_id) is False: if self.check_if_discord_unicode_emoji(emoji_id) is False: