From ecbf32c9ad5f12b5cc4ddb5952c7f8b8c8cc8908 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Fri, 9 Sep 2016 21:41:45 +0200 Subject: [PATCH] Add an explanatory message for pings after bot restart Just like when a game is canceled due to taking too long to start, although in this case players may notice that the bot restarted, it doesn't hurt to make it clear to them. --- messages/en.json | 1 + src/wolfgame.py | 1 + 2 files changed, 2 insertions(+) diff --git a/messages/en.json b/messages/en.json index 5ed19fa..d014b2f 100644 --- a/messages/en.json +++ b/messages/en.json @@ -143,6 +143,7 @@ "account_already_joined": "Sorry, but \u0002{0}\u0002 is already joined under {1} account.{2}", "player_joined": "\u0002{0}\u0002 has joined the game and raised the number of players to \u0002{1}\u0002.", "game_idle_cancel": "The current game took too long to start and has been canceled. If you are still active, you can join again to start a new game.", + "game_restart_cancel": "The bot has been restarted and the game has been canceled. If you are still active, you can join again to start a new game.", "too_many_players_to_join": "{0}: Too many players to join.", "fjoin_in_chan": ": You may only fjoin people who are in this channel.", "account_not_logged_in": "{0} is not logged in to NickServ.", diff --git a/src/wolfgame.py b/src/wolfgame.py index 24c0a09..0eced2c 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -224,6 +224,7 @@ def connect_callback(cli): if players: msg = "PING! " + break_long_message(players).replace("\n", "\nPING! ") cli.msg(botconfig.CHANNEL, msg) + cli.msg(botconfig.CHANNEL, messages["game_restart_cancel"]) # Unhook the WHO hooks hook.unhook(295)