remove bug

This commit is contained in:
osmarks
2026-07-13 18:02:47 +01:00
parent e0382574cc
commit ea2f358086
+2 -1
View File
@@ -170,7 +170,8 @@ class Sentience(commands.Cog):
logging.warning("banning %d", msg.author.id)
await msg.guild.ban(reason="spam autodetected")
await msg.channel.send(f"User <@{msg.author.id}> was banned for this post ({repr(mat.tolist())}).")
self.seen_users[msg.guild.id, msg.author.id] += 1
if msg.guild:
self.seen_users[msg.guild.id, msg.author.id] += 1
async def setup(bot):
await bot.add_cog(Sentience(bot))