mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-10-03 06:36:55 -05:00
Implement !restarthelp
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user