Implement !restarthelp

This commit is contained in:
Guangcong Luo
2013-07-04 15:32:57 -07:00
parent 6684f1613e
commit e2da249cbb

View File

@@ -525,6 +525,17 @@ var commands = exports.commands = {
'</div>');
},
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:<br />' +
'- We wait a few minutes before restarting so people can finish up their battles<br />' +
'- The restart itself will take around 0.6 seconds<br />' +
'- Your ladder ranking and teams will not change<br />' +
'- We are restarting to update Pokémon Showdown to a newer version' +
'</div>');
},
rule: 'rules',
rules: function(target, room, user) {
if (!this.canBroadcast()) return;