From b3f7d094a8b0e88a17631bc3d0930931fc8fcb3a Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sun, 25 Oct 2020 04:54:07 +0200 Subject: [PATCH] Rephrase [SYSTEM TO USER] to the bot's name instead in the thread channel --- src/formatters.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/formatters.js b/src/formatters.js index 8c086c8..e3b8645 100644 --- a/src/formatters.js +++ b/src/formatters.js @@ -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}`;