testing actual ban command

This commit is contained in:
2024-07-24 18:17:19 -05:00
parent 979bda4601
commit 1ea09ee9d6

2
app.py
View File

@@ -63,7 +63,7 @@ async def on_message(message: discord.Message):
if message.content:
# Here we ban the user cause they posted in the channel :)
if not DEBUG:
message.author.ban(reason=f"Posted in the {channel.name} channel.")
await message.author.ban(reason=f"Posted in the {channel.name} channel.")
logging.info(f"{message.author} was banned for posting in {channel.name}.")
else:
await message.channel.send(content=f"{message.author} is a bozo.")