mirror of
https://github.com/osmarks/autobotrobot
synced 2026-07-29 10:28:51 +00:00
remove bug
This commit is contained in:
+2
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user