Skip to content

Commit

Permalink
Commands: Use PrefObj instead of "Bad Usage!" (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
yiesko committed Apr 26, 2021
1 parent 712e043 commit d159558
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void botReply(Update update, TelegramBot bot, PrefObj prefs) {
}
}
} else {
bot.sendMessage("Bad usage.", update);
bot.sendMessage(prefs.getString("bad_usage"), update);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void botReply(Update update, TelegramBot bot, PrefObj prefs) {
logger.error(e.getMessage(), e);
}
} else {
bot.sendMessage("Bad usage!", update);
bot.sendMessage(prefs.getString("bad_usage"), update);
}
} else {
bot.sendMessage(prefs.getString("only_master_can_run"), update);
Expand Down

0 comments on commit d159558

Please sign in to comment.