Advertisement
Tuzzillo

Untitled

Nov 13th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. {
  2. "name": "emolets",
  3. "permissions": "NONE",
  4. "restriction": "0",
  5. "_id": "YIZPO",
  6. "actions": [
  7. {
  8. "source": "Tzyqf",
  9. "type": "true",
  10. "name": "Call Command/Event"
  11. },
  12. {
  13. "condition": "0",
  14. "comparison": "0",
  15. "value": "0",
  16. "iftrue": "2",
  17. "iftrueVal": "6",
  18. "iffalse": "0",
  19. "iffalseVal": "",
  20. "name": "Check Parameters"
  21. },
  22. {
  23. "info": "1",
  24. "infoIndex": "1",
  25. "storage": "1",
  26. "varName": "words",
  27. "name": "Store Command Params"
  28. },
  29. {
  30. "behavior": "0",
  31. "interpretation": "0",
  32. "code": "var words = tempVars(\"words\");\n\nif(!words) {words = \"emolets\"}\n\nlet word = \"\";\n\nfunction GetCharacter(input){ \n if((\"abcdefghijklmnopqrstuvwxyz\").includes(input)){\n return ':regional_indicator_' + input + \":\";\n }else{ \n switch (input) {\n case \"0\":\n return ':zero:'\n break;\n case \"1\":\n return ':one:'\n break;\n case \"2\":\n return ':two:'\n break;\n case \"3\":\n return ':three:'\n break;\n case \"4\":\n return ':four:'\n break;\n case \"5\":\n return ':five:'\n break;\n case \"6\":\n return ':six:'\n break;\n case \"7\":\n return ':seven:'\n break;\n case \"8\":\n return ':eight:'\n break;\n case \"9\":\n return ':nine:'\n break;\n case \"!\":\n return ':grey_exclamation:'\n break;\n case \"<\":\n return ':arrow_backward:'\n break;\n case \">\":\n return ':arrow_forward:'\n break;\n case \",\":\n return ','\n break;\n case \".\":\n return '.'\n break;\n case \"@\":\n return '@'\n break;\n case \"?\":\n return ':question:'\n break;\n default:\n return ' ' \n break;\n }\n }\t\n}\n\nwords.toLowerCase().split('').forEach(function(char){ word += char ? GetCharacter(char) : \" \"})\n\nif(word && word.length < 1999){\n msg.channel.send(word)\n}else{\n msg.channel.send('A palavra não pode passar de 1999 caracteres. =/')\n}",
  33. "storage": "0",
  34. "varName": "",
  35. "name": "Run Script"
  36. },
  37. {
  38. "name": "End Action Sequence"
  39. },
  40. {
  41. "channel": "0",
  42. "varName": "",
  43. "message": "** :x: Forneça uma frase válida.**",
  44. "storage": "0",
  45. "varName2": "",
  46. "iffalse": "0",
  47. "iffalseVal": "",
  48. "name": "Send Message"
  49. }
  50. ],
  51. "comType": "0",
  52. "_timeRestriction": 3
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement