diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-01-07 17:23:13 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-01-07 17:23:13 +0100 |
| commit | a1fbc2d3b27a34d1f050f639ceb564389f380627 (patch) | |
| tree | d5adcd3e3fdf4d0d48eee026fc6263aee957b390 | |
| parent | a6a15392194833a2436650342155a60cb25c5080 (diff) | |
| download | Vainbot-a1fbc2d3b27a34d1f050f639ceb564389f380627.tar.gz Vainbot-a1fbc2d3b27a34d1f050f639ceb564389f380627.zip | |
edit mirror: use names instead of mentions
| -rw-r--r-- | main.py | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -109,15 +109,15 @@ async def on_message_delete(message): return msgs = [] mirror = cli.get_channel(MODMIRROR) - msgs.append("--- deleted message " + message.author.mention + message.channel.mention) + msgs.append("--- deleted message " + message.author.name + message.channel.mention) ms = [] async for m in cli.logs_from(message.channel, limit=4, before=message): ms.append(m) for m in reversed(ms): - msgs.append(m.author.mention + m.channel.mention + ": " + m.content) - msgs.append(" > " + message.author.mention + message.channel.mention + " ~~" + message.content + "~~") + msgs.append(m.author.name + m.channel.mention + ": " + m.content) + msgs.append(" > " + message.author.name + message.channel.mention + " ~~" + message.content + "~~") async for m in cli.logs_from(message.channel, limit=2, after=message): - msgs.append(m.author.mention + m.channel.mention + ": " + m.contet) + msgs.append(m.author.name + m.channel.mention + ": " + m.contet) msgs.append("---") text = "\n".join(msgs) await cli.send_message(mirror, text) @@ -128,15 +128,15 @@ async def on_message_edit(before, message): return msgs = [] mirror = cli.get_channel(MODMIRROR) - msgs.append("--- edited message " + message.author.mention + message.channel.mention) + msgs.append("--- edited message " + message.author.name + message.channel.mention) ms = [] async for m in cli.logs_from(message.channel, limit=4, before=message): ms.append(m) for m in reversed(ms): - msgs.append(m.author.mention + m.channel.mention + ": " + m.content) - msgs.append(" > " + message.author.mention + message.channel.mention + " ~~" + before.content + "~~ " + message.content) + msgs.append(m.author.name + m.channel.mention + ": " + m.content) + msgs.append(" > " + message.author.name + message.channel.mention + " ~~" + before.content + "~~ " + message.content) async for m in cli.logs_from(message.channel, limit=2, after=message): - msgs.append(m.author.mention + m.channel.mention + ": " + m.contet) + msgs.append(m.author.name + m.channel.mention + ": " + m.contet) msgs.append("---") text = "\n".join(msgs) await cli.send_message(mirror, text) |
