Skip to content

Commit

Permalink
Suppress annoying /help messages in groups (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Besedin authored and nikitabelonogovbot committed Mar 23, 2018
1 parent 7c6d648 commit dd3a5e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,7 @@ public void sendMessage(Long chatId, String message) {
}

@Override
public void processNonCommandUpdate(Update update) {
Long chatId = update.getMessage().getChatId();
sendMessage(chatId, GlobalConfiguration.getInstance().getBotStrings().get("message.noncommand"));
}
public void processNonCommandUpdate(Update update) {}

@Override
public String getBotToken() {
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/bot.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ message.sub.success=You've successfully subscribed. Please, wait for approval fr
message.sub.alreadysub=You've already subscribed.
message.unsub.success=You've successfully unsubscribed.
message.unsub.alreadyunsub=You've already unsubscribed.
message.noncommand=Use \/help command to get the help message.
message.approved=You've been approved by Jenkins admin.
message.unapproved=You've been unapproved by Jenkins admin.
message.unapproved=You've been unapproved by Jenkins admin.

0 comments on commit dd3a5e0

Please sign in to comment.