From bc676c5039e25392c5946bdb774d5b2458396f2c Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 23 Apr 2024 16:12:19 -0400 Subject: [PATCH] Moving disabled news listener command --- scnewsbot/bot.py | 15 --------------- scnewsbot/extensions/rstarcitizen.py | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/scnewsbot/bot.py b/scnewsbot/bot.py index 776ceb5..865815b 100644 --- a/scnewsbot/bot.py +++ b/scnewsbot/bot.py @@ -58,21 +58,6 @@ class CoreCog(commands.Cog, name="Core"): except discord.Forbidden: pass -# @commands.Cog.listener() -# async def on_message(self, message): -# if message.channel.id == 649390966259580929 and message.author.id != 1091116499936223252: -# if message.embeds: -# for embed in message.embeds: -# reply_channel = self.bot.get_channel(611922107345141760) -# if "Patch Notes" in embed.title: -# await reply_channel.send(f"<@&159107041896562688> CIG has published new [Patch Notes](<{embed.url}>).") -# elif "Galactapedia" in embed.title: -# await reply_channel.send(f"<@&159107041896562688> CIG has published a new [Galactapedia update](<{embed.url}>).") -# elif "This Week in Star Citizen" in embed.title: -# await reply_channel.send(f"<@&159107041896562688> CIG has published a new [TWISC](<{embed.url}>).") -# elif "Monthly Report" in embed.title: -# await reply_channel.send(f"<@&159107041896562688> CIG has published a new [Monthly Report](<{embed.url}>).") - @commands.hybrid_command(description="Shows you some info about the bot.") async def info(self, ctx: commands.Context) -> None: embed = discord.Embed( diff --git a/scnewsbot/extensions/rstarcitizen.py b/scnewsbot/extensions/rstarcitizen.py index 1592084..a3c07fb 100644 --- a/scnewsbot/extensions/rstarcitizen.py +++ b/scnewsbot/extensions/rstarcitizen.py @@ -18,6 +18,21 @@ class RStarCitizen(commands.Cog): async def mmc(self, ctx): await ctx.reply("```=aclose Situation resolved, please only reply if there is something else.```") +# @commands.Cog.listener() +# async def on_message(self, message): +# if message.channel.id == 649390966259580929 and message.author.id != 1091116499936223252: +# if message.embeds: +# for embed in message.embeds: +# reply_channel = self.bot.get_channel(611922107345141760) +# if "Patch Notes" in embed.title: +# await reply_channel.send(f"<@&159107041896562688> CIG has published new [Patch Notes](<{embed.url}>).") +# elif "Galactapedia" in embed.title: +# await reply_channel.send(f"<@&159107041896562688> CIG has published a new [Galactapedia update](<{embed.url}>).") +# elif "This Week in Star Citizen" in embed.title: +# await reply_channel.send(f"<@&159107041896562688> CIG has published a new [TWISC](<{embed.url}>).") +# elif "Monthly Report" in embed.title: +# await reply_channel.send(f"<@&159107041896562688> CIG has published a new [Monthly Report](<{embed.url}>).") + # @commands.Cog.listener() # async def on_ready(self) -> None: # for channel_id in MEMBER_COUNT_CHANNELS: