Trying to fix indentation

This commit is contained in:
AllfatherHatt 2025-02-23 21:09:19 +01:00
parent 7f6372a09b
commit a2646eac14

View File

@ -51,12 +51,10 @@ class ReginaldCog(commands.Cog):
)
@commands.Cog.listener()
async def on_message(self, message, ctx):
async def on_message(self, message):
if message.author.bot or not message.guild:
return # Ignore bots and DMs
ctx.send("<heard message>")
guild = message.guild
channel_id = str(message.channel.id)
user_id = str(message.author.id)
@ -66,7 +64,6 @@ class ReginaldCog(commands.Cog):
# ✅ Fetch the stored listening channel or fall back to default
allowed_channel_id = await self.config.guild(guild).listening_channel()
if not allowed_channel_id:
ctx.send("<deciding channel is not cool>")
allowed_channel_id = self.default_listening_channel
await self.config.guild(guild).listening_channel.set(allowed_channel_id)
@ -99,7 +96,6 @@ class ReginaldCog(commands.Cog):
explicit_invocation = False
else:
ctx.send("<decided not to interject>")
return # Ignore irrelevant messages
# ✅ Context Handling: Maintain conversation flow