Advertisement
Langur

Untitled

Apr 18th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1.  
  2.  
  3. currentsuspects: 'suspect',
  4. suspects: 'suspect',
  5. suspect: function (target, room, user) {
  6. if (!this.canBroadcast()) return;
  7. target = toId(target);
  8. var buffer = "";
  9. var matched = false;
  10.  
  11. if (target === 'all' && this.broadcasting) {
  12. return this.sendReplyBox("You cannot broadcast information about suspect tests in all tiers at once.");
  13. }
  14.  
  15. if (!target || target === 'all') {
  16. matched = true;
  17. buffer += "You can do /suspect and then an optional tier to see all of the current suspect tests. For example, /suspect ou.";
  18. buffer += "- Ubers: None";
  19. buffer += "- <a href=\"http://www.smogon.com/forums/threads/np-oras-ou-suspect-process-round-3-wandering-ghosts.3536089/\">OU: Aegislash</a>";
  20. buffer += "- UU: None";
  21. buffer += "- RU: None";
  22. buffer += "- NU: None";
  23. buffer += "- LC: None";
  24. buffer += "- Doubles OU: None";
  25. }
  26. if (target === 'all' || target === 'ubers' || target === 'uber') {
  27. matched = true;
  28. buffer += "There is currently nothing being suspected in Ubers.";
  29. }
  30. if (target === 'all' || target === 'overused' || target === 'ou') {
  31. matched = true;
  32. buffer += "- <a href=\"http://www.smogon.com/forums/threads/np-oras-ou-suspect-process-round-3-wandering-ghosts.3536089/\">Aegislash</a>";
  33. }
  34. if (target === 'all' || target === 'underused' || target === 'uu') {
  35. matched = true;
  36. buffer += "There is currently nothing being suspected in UU.";
  37. }
  38. if (target === 'all' || target === 'rarelyused' || target === 'ru') {
  39. matched = true;
  40. buffer += "There is currently nothing being suspected in RU.";
  41. }
  42. if (target === 'all' || target === 'neverused' || target === 'nu') {
  43. matched = true;
  44. buffer += "There is currently nothing being suspected in NU.";
  45. }
  46. if (target === 'all' || target === 'littlecup' || target === 'lc') {
  47. matched = true;
  48. buffer += "There is currently nothing being suspected in LC.";
  49. }
  50. if (target === 'all' || target === 'doublesou' || target === 'doubles' || target === 'smogondoubles') {
  51. matched = true;
  52. buffer += "There is currently nothing being suspected in Doubles OU.";
  53. }
  54. if (!matched) {
  55. return this.sendReply("The Suspect entry '" + target + "' was not found. Try /suspect for general help.");
  56. }
  57. this.sendReplyBox(buffer);
  58. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement