From fa2c909cbcbaaf2df32ee4ae095e0965416de7c3 Mon Sep 17 00:00:00 2001 From: vincent <> Date: Wed, 26 Feb 2025 12:48:58 +0100 Subject: [PATCH] use display name instead of username for discord messages --- Bridge/class/Message.js | 2 +- config.json | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Bridge/class/Message.js b/Bridge/class/Message.js index b5018ef..ee13edc 100644 --- a/Bridge/class/Message.js +++ b/Bridge/class/Message.js @@ -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" } diff --git a/config.json b/config.json index db3f736..99fdfc8 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,8 @@ { "verbose": true, - "discordChannels": ["1335942797726846989", "1335962777063264326"], - "ircChannels": ["#vincentdev"] + "discordChannels": [ + "1161739009614151751", + "727212463988146206" + ], + "ircChannels": ["#urlab"] }