Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- currentsuspects: 'suspect',
- suspects: 'suspect',
- suspect: function (target, room, user) {
- if (!this.canBroadcast()) return;
- target = toId(target);
- var buffer = "";
- var matched = false;
- if (target === 'all' && this.broadcasting) {
- return this.sendReplyBox("You cannot broadcast information about suspect tests in all tiers at once.");
- }
- if (!target || target === 'all') {
- matched = true;
- buffer += "You can do /suspect and then an optional tier to see all of the current suspect tests. For example, /suspect ou.";
- buffer += "- Ubers: None";
- buffer += "- <a href=\"http://www.smogon.com/forums/threads/np-oras-ou-suspect-process-round-3-wandering-ghosts.3536089/\">OU: Aegislash</a>";
- buffer += "- UU: None";
- buffer += "- RU: None";
- buffer += "- NU: None";
- buffer += "- LC: None";
- buffer += "- Doubles OU: None";
- }
- if (target === 'all' || target === 'ubers' || target === 'uber') {
- matched = true;
- buffer += "There is currently nothing being suspected in Ubers.";
- }
- if (target === 'all' || target === 'overused' || target === 'ou') {
- matched = true;
- buffer += "- <a href=\"http://www.smogon.com/forums/threads/np-oras-ou-suspect-process-round-3-wandering-ghosts.3536089/\">Aegislash</a>";
- }
- if (target === 'all' || target === 'underused' || target === 'uu') {
- matched = true;
- buffer += "There is currently nothing being suspected in UU.";
- }
- if (target === 'all' || target === 'rarelyused' || target === 'ru') {
- matched = true;
- buffer += "There is currently nothing being suspected in RU.";
- }
- if (target === 'all' || target === 'neverused' || target === 'nu') {
- matched = true;
- buffer += "There is currently nothing being suspected in NU.";
- }
- if (target === 'all' || target === 'littlecup' || target === 'lc') {
- matched = true;
- buffer += "There is currently nothing being suspected in LC.";
- }
- if (target === 'all' || target === 'doublesou' || target === 'doubles' || target === 'smogondoubles') {
- matched = true;
- buffer += "There is currently nothing being suspected in Doubles OU.";
- }
- if (!matched) {
- return this.sendReply("The Suspect entry '" + target + "' was not found. Try /suspect for general help.");
- }
- this.sendReplyBox(buffer);
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement