what
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 7s

This commit is contained in:
Nexus 2024-04-26 18:33:36 +01:00
parent 2ca0949789
commit 733efe43b9
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -293,19 +293,16 @@ class AutoResponder(commands.Cog):
async def auto_responder(self, message: discord.Message): async def auto_responder(self, message: discord.Message):
if message.author == self.bot.user: if message.author == self.bot.user:
return return
if self.bot.user.id == 1233041769373892619:
if message.guild and await discord.utils.get_or_fetch(message.guild, "member", 1018920700234436719):
return
# Check for HEVC truth social links and convert into h264 # Check for HEVC truth social links and convert into h264
if message.channel.name == "spam" and message.author != self.bot.user: if message.channel.name == "spam" and message.author != self.bot.user:
await self.transcode_hevc_to_h264(message) await self.transcode_hevc_to_h264(message)
links = self.extract_links(message.content, "www.ncfe.co.uk", "ncfe.co.uk", raw=True) links = self.extract_links(message.content, "www.ncfe.co.uk", "ncfe.co.uk", raw=True)
self.log.info("Found the following NCFE links: %s", links)
if links: if links:
await self.copy_ncfe_docs(message, links) await self.copy_ncfe_docs(message, links)
@commands.Cog.listener("on_reaction_add") @commands.Cog.listener("on_reaction_add")
async def on_reaction_add(self, reaction: discord.Reaction, user: discord.User): async def on_reaction_add(self, reaction: discord.Reaction, user: discord.User):
if user == self.bot.user: if user == self.bot.user: