mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Auto delete messages in verify and timetable
This commit is contained in:
parent
e0c951fffe
commit
5ef0e44857
1 changed files with 3 additions and 0 deletions
|
@ -97,6 +97,9 @@ class Events(commands.Cog):
|
|||
await message.pin(reason="Automatic pinboard pinning")
|
||||
except discord.HTTPException as e:
|
||||
return await message.reply(f"Failed to auto-pin: {e}", delete_after=10)
|
||||
elif message.channel.name in ("verify", "timetable") and message.author != self.bot.user:
|
||||
if message.channel.permissions_for(message.guild.me).manage_messages:
|
||||
await message.delete(delay=1)
|
||||
|
||||
|
||||
def setup(bot):
|
||||
|
|
Loading…
Reference in a new issue