From e2da249cbbf3d24b366f50015e96c4af7efdc0bc Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Thu, 4 Jul 2013 15:32:57 -0700 Subject: [PATCH] Implement !restarthelp --- config/commands.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config/commands.js b/config/commands.js index 9f2d7425cc..d517b28006 100644 --- a/config/commands.js +++ b/config/commands.js @@ -525,6 +525,17 @@ var commands = exports.commands = { ''); }, + restarthelp: function(target, room, user) { + if (room.id === 'lobby' && !this.can('lockdown')) return false; + if (!this.canBroadcast()) return; + this.sendReplyBox('The server is restarting. Things to know:
' + + '- We wait a few minutes before restarting so people can finish up their battles
' + + '- The restart itself will take around 0.6 seconds
' + + '- Your ladder ranking and teams will not change
' + + '- We are restarting to update Pokémon Showdown to a newer version' + + ''); + }, + rule: 'rules', rules: function(target, room, user) { if (!this.canBroadcast()) return;