diff options
| author | david <[email protected]> | 2026-04-02 22:47:45 -0300 |
|---|---|---|
| committer | david <[email protected]> | 2026-04-02 22:47:45 -0300 |
| commit | de2aa06119c4c122874e2c7ded16e97990bddea9 (patch) | |
| tree | 48b063f6c494cee8b26c40004d4ab283852914db /bot.py | |
| parent | 32345c8316af0291996aefbd38c1b4ef5c816a7e (diff) | |
| download | faggot-chan-de2aa06119c4c122874e2c7ded16e97990bddea9.tar.gz faggot-chan-de2aa06119c4c122874e2c7ded16e97990bddea9.zip | |
display name --> handle
Diffstat (limited to 'bot.py')
| -rw-r--r-- | bot.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -163,7 +163,7 @@ def resolve_mentions(content: str, guild) -> str: # thank you claude return content def replace(m): member = guild.get_member(int(m.group(1))) - return f"@{member.display_name}" if member else m.group(0) + return f"@{member.name}" if member else m.group(0) return re.sub(r'<@!?(\d+)>', replace, content) def is_member_in_server(member: discord.Member) -> bool: @@ -379,7 +379,7 @@ async def on_message(message): mentioned = client.user.mentioned_in(message) - # if it replied to bot, treat it as a mention automatically + #if it replied to bot, treat it as a mention automatically if replied_to_bot: mentioned = True |
