Skip to content

Commit

Permalink
added no commands hadler for !commands
Browse files Browse the repository at this point in the history
  • Loading branch information
thearturca committed Jan 22, 2021
1 parent 7daf3f1 commit cbf67c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ class Bot {
if(commandFromMessage === "commands"){
let resStr = "Список команд: ";
const allCommands = this._commandsDB.get('commands').value()
if (allCommands.length === 0){return}
allCommands.forEach((e, i)=>{
resStr += `!${e.command}`
if(i<allCommands.length-1){ resStr += ", "}
Expand Down

0 comments on commit cbf67c2

Please sign in to comment.