Skip to content

Commit

Permalink
add more note on !version command
Browse files Browse the repository at this point in the history
  • Loading branch information
idinium96 committed Aug 2, 2020
1 parent 820c771 commit 5291edb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/classes/Bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
[]
);
}
Expand Down
6 changes: 4 additions & 2 deletions src/classes/Commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
);
}
})
Expand Down

0 comments on commit 5291edb

Please sign in to comment.