From a9fe7ab8ed11e2572deb9104936c27f5ab4cd401 Mon Sep 17 00:00:00 2001 From: vincent <> Date: Tue, 24 Mar 2026 14:46:01 +0100 Subject: [PATCH] use discord username instead of display name for message author to make crossping easier --- Bridge/class/Message.js | 6 +++--- config.json | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Bridge/class/Message.js b/Bridge/class/Message.js index 5018fe6..34c5392 100644 --- a/Bridge/class/Message.js +++ b/Bridge/class/Message.js @@ -14,15 +14,15 @@ export class Message { this.text += discord_message.attachments.map((a) => a.url).join("\n"); console.log("escaped text", this.text); this.channel = discord_message.channelId; - this.author = discord_message.author.displayName; + this.author = discord_message.author.username; // using user name here so users in irc can use that info to cross ping this.source_type = "discord"; } fromIRCFormat(irc_message) { - (this.text = irc_message.message), + ((this.text = irc_message.message), (this.channel = irc_message.target.toLowerCase()), (this.author = irc_message.nick), - (this.source_type = "irc"); + (this.source_type = "irc")); } async escapeDiscordPing(text, client) { diff --git a/config.json b/config.json index 6183823..22124a3 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { - "verbose": true, - "discordChannels": ["1335942797726846989", "1335962777063264326"], - "ircChannels": ["#vincentdev"], + "verbose": false, + "discordChannels": ["1161739009614151751", "727212463988146206"], + "ircChannels": ["#urlab"], "discordAppId": "866317638337953792" }