From 5291edb314cebce29112c4b60963234a8d2bf1ba Mon Sep 17 00:00:00 2001 From: idinium96 Date: Sun, 2 Aug 2020 10:27:23 +0800 Subject: [PATCH] add more note on !version command --- src/classes/Bot.ts | 6 ++++-- src/classes/Commands.ts | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/classes/Bot.ts b/src/classes/Bot.ts index cdec656b1..5435dbdc5 100644 --- a/src/classes/Bot.ts +++ b/src/classes/Bot.ts @@ -249,8 +249,10 @@ export = class Bot { this.messageAdmins( 'version', - `Update available! Current: v${process.env.BOT_VERSION}, Latest: v${latestVersion}.\nNavigate to your bot folder and run [git checkout master && git pull && npm install && npm run build] and then restart your bot.` + - '\n Contact IdiNium if you have any other problem. Thank you.', + `⚠️ Update available! Current: v${process.env.BOT_VERSION}, Latest: v${latestVersion}.\n\nRelease note: https://github.com/idinium96/tf2autobot/releases` + + `\n\nNavigate to your bot folder and run [git checkout master && git pull && npm install && npm run build] and then restart your bot.` + + `\nIf the update required you to update ecosystem.json, please make sure to restart your bot with [pm2 restart ecosystem.json --update-env] command.` + + '\nContact IdiNium if you have any other problem. Thank you.', [] ); } diff --git a/src/classes/Commands.ts b/src/classes/Commands.ts index 2ad118a79..44b9c1b5a 100644 --- a/src/classes/Commands.ts +++ b/src/classes/Commands.ts @@ -1949,8 +1949,10 @@ export = class Commands { } else if (this.bot.lastNotifiedVersion === latestVersion) { this.bot.sendMessage( steamID, - `⚠️ Update available! Current: v${process.env.BOT_VERSION}, Latest: v${latestVersion}.\nNavigate to your bot folder and run [git checkout master && git pull && npm install && npm run build] and then restart your bot.` + - '\n Contact IdiNium if you have any other problem. Thank you.' + `⚠️ Update available! Current: v${process.env.BOT_VERSION}, Latest: v${latestVersion}.\n\nRelease note: https://github.com/idinium96/tf2autobot/releases` + + `\n\nNavigate to your bot folder and run [git checkout master && git pull && npm install && npm run build] and then restart your bot.` + + `\nIf the update required you to update ecosystem.json, please make sure to restart your bot with [pm2 restart ecosystem.json --update-env] command.` + + '\nContact IdiNium if you have any other problem. Thank you.' ); } })