use nicknames
This commit is contained in:
parent
dc8d45818e
commit
23f341df1c
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -314,7 +314,7 @@ class DiscordClient(discord.ext.commands.Bot):
|
||||||
for attachment in message.attachments:
|
for attachment in message.attachments:
|
||||||
content += f"\n{attachment.url}"
|
content += f"\n{attachment.url}"
|
||||||
|
|
||||||
content = f"[{message.author.name}] {content}"
|
content = f"[{message.author.display_name}] {content}"
|
||||||
|
|
||||||
return content, replied_event, emotes
|
return content, replied_event, emotes
|
||||||
|
|
||||||
|
@ -346,7 +346,7 @@ class Callbacks(object):
|
||||||
|
|
||||||
channel_id = self.get_channel(room)
|
channel_id = self.get_channel(room)
|
||||||
|
|
||||||
author = event.sender.split(":")[0][1:]
|
author = room.user_name(event.sender)
|
||||||
avatar = None
|
avatar = None
|
||||||
|
|
||||||
homeserver = event.sender.split(":")[-1]
|
homeserver = event.sender.split(":")[-1]
|
||||||
|
|
Loading…
Reference in a new issue