diff options
| -rw-r--r-- | main.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -105,6 +105,8 @@ async def search_teammates(server, channel, who, query, notify=True): @cli.event async def on_message_delete(message): + if message.channel.id in MIRROR_IGNORE: + return msgs = [] mirror = cli.get_channel(MODMIRROR) msgs.append("--- deleted message " + message.author.mention + message.channel.mention) @@ -122,6 +124,8 @@ async def on_message_delete(message): @cli.event async def on_message_edit(before, message): + if message.channel.id in MIRROR_IGNORE: + return msgs = [] mirror = cli.get_channel(MODMIRROR) msgs.append("--- edited message " + message.author.mention + message.channel.mention) |
