use discord username instead of display name for message author to make crossping easier
This commit is contained in:
parent
8e57652a72
commit
a9fe7ab8ed
2 changed files with 6 additions and 6 deletions
|
|
@ -14,15 +14,15 @@ export class Message {
|
||||||
this.text += discord_message.attachments.map((a) => a.url).join("\n");
|
this.text += discord_message.attachments.map((a) => a.url).join("\n");
|
||||||
console.log("escaped text", this.text);
|
console.log("escaped text", this.text);
|
||||||
this.channel = discord_message.channelId;
|
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";
|
this.source_type = "discord";
|
||||||
}
|
}
|
||||||
|
|
||||||
fromIRCFormat(irc_message) {
|
fromIRCFormat(irc_message) {
|
||||||
(this.text = irc_message.message),
|
((this.text = irc_message.message),
|
||||||
(this.channel = irc_message.target.toLowerCase()),
|
(this.channel = irc_message.target.toLowerCase()),
|
||||||
(this.author = irc_message.nick),
|
(this.author = irc_message.nick),
|
||||||
(this.source_type = "irc");
|
(this.source_type = "irc"));
|
||||||
}
|
}
|
||||||
|
|
||||||
async escapeDiscordPing(text, client) {
|
async escapeDiscordPing(text, client) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"verbose": true,
|
"verbose": false,
|
||||||
"discordChannels": ["1335942797726846989", "1335962777063264326"],
|
"discordChannels": ["1161739009614151751", "727212463988146206"],
|
||||||
"ircChannels": ["#vincentdev"],
|
"ircChannels": ["#urlab"],
|
||||||
"discordAppId": "866317638337953792"
|
"discordAppId": "866317638337953792"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue