Skip to content

Commit

Permalink
fix(bot): get command reply in mp channel (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
yadPe authored Mar 26, 2022
1 parent 4e5a5ce commit 9e8fa6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Bot/Bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,11 @@ class Bot {

switch (command) {
case this.commandsList[2]: // get
if (!parseInt(params[0])) {
if (!parseInt(params[0], 10)) {
this.irc.pm(fromMp || from, `${fromMp ? from : ''} You need to specify a beatmapSet id`);
break;
}
this.sendMapById(params[0], from);
this.sendMapById(params[0], fromMp || from);
break;
case this.commandsList[5]: // infos
this.irc.pm(
Expand Down

0 comments on commit 9e8fa6d

Please # to comment.