Guest User

Untitled

a guest
Sep 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. {
  2. "name": "npm",
  3. "permissions": "NONE",
  4. "restriction": "4",
  5. "_id": "UwRCF",
  6. "actions": [
  7. {
  8. "info": "0",
  9. "infoIndex": "1",
  10. "storage": "1",
  11. "varName": "moduleName",
  12. "name": "Store Command Params"
  13. },
  14. {
  15. "channel": "0",
  16. "varName": "",
  17. "message": "Attempting to install node module: ${tempVars(\"moduleName\")}",
  18. "storage": "0",
  19. "varName2": "",
  20. "name": "Send Message"
  21. },
  22. {
  23. "behavior": "1",
  24. "interpretation": "0",
  25. "code": "\nvar moduleName = tempVars(\"moduleName\");\n\ntry{ \nrequire.resolve(moduleName)\nmsg.channel.send(\"Module '\"+ moduleName + \"' is already installed!\"); \n\n}catch(err){\nmsg.channel.send(\"Installing/Updating node module '\"+ moduleName + \"'\"); \n\nvar theModule = this.getWrexMods().require(moduleName);\n\nif(theModule){\n msg.channel.send(\"\"+ moduleName + \" was installed to the bot!\"); \n}else{\n msg.channel.send(\"Error! Module NOT \"+ moduleName + \" installed to the bot!\"); \n}\n\n}\n\n\n\n \n",
  26. "storage": "0",
  27. "varName": "",
  28. "name": "Run Script"
  29. },
  30. {
  31. "channel": "0",
  32. "varName": "",
  33. "message": "**NPM_INSTALL**: ${tempVars(\"installMessage\")}",
  34. "storage": "0",
  35. "varName2": "",
  36. "name": "Send Message"
  37. }
  38. ],
  39. "comType": "0",
  40. "_aliases": []
  41. }
Add Comment
Please, Sign In to add comment