Rephrase [SYSTEM TO USER] to the bot's name instead in the thread channel

cshd
Dragory 2020-10-25 04:54:07 +02:00
parent 11629bb6cb
commit b3f7d094a8
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ const config = require("./cfg");
const ThreadMessage = require("./data/ThreadMessage");
const {THREAD_MESSAGE_TYPE} = require("./data/constants");
const moment = require("moment");
const bot = require("./bot");
/**
* Function to format the DM that is sent to the user when a staff member replies to them via !reply
@ -190,7 +191,7 @@ const defaultFormatters = {
},
formatSystemToUserThreadMessage(threadMessage) {
let result = `**[SYSTEM TO USER]** ${threadMessage.body}`;
let result = `**(Bot) ${bot.user.username}:** ${threadMessage.body}`;
for (const link of threadMessage.attachments) {
result += `\n\n${link}`;