use display name instead of username for discord messages

This commit is contained in:
vincent 2025-02-26 12:48:58 +01:00
parent d21fd5d71a
commit fa2c909cbc
2 changed files with 6 additions and 3 deletions

View file

@ -10,7 +10,7 @@ export class Message{
this.text = await this.escapeDiscordPing(discord_message.content, discordClient)
console.log("escaped text", this.text);
this.channel = discord_message.channelId
this.author = discord_message.author.username
this.author = discord_message.author.displayName;
this.source_type = "discord"
}

View file

@ -1,5 +1,8 @@
{
"verbose": true,
"discordChannels": ["1335942797726846989", "1335962777063264326"],
"ircChannels": ["#vincentdev"]
"discordChannels": [
"1161739009614151751",
"727212463988146206"
],
"ircChannels": ["#urlab"]
}