Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. A never run Node stuff or NPM as root. It has EACCESS errors. If traditional "npm install" does not workin in a package root...
  2. it's because the DEV is lazy and/or the package is broken or our of date.
  3.  
  4. However... you can view the dependency list, and install each dependency manually. Some you will need to install globally with "npm install -g". As noted in the Node docs etc.
  5.  
  6. Otherwise...
  7.  
  8. 1) Install RethinkDB
  9. 2) Install libtool, buildessential and make tools.
  10. 3) apt-get install node-gyp - needed for this particular bot and NPM dependencies
  11. 4) mkdir /bots
  12. 5) cd /bots
  13. 6) git clone https://github.com/BitQuote/TSQB.git ticket
  14. 7) cd /bots/ticket
  15. 8) npm install
  16. 9) npm install bufferutil erlpack eslint eslint-plugin-import eslint-plugin-jsx-a11y libsodium-wrappers node-opus opusscript sodium uws
  17. 10) npm install
  18. 11) Change the bot's config.js file to add your token and clientID from Discord DEV.
  19.  
  20. Then you need to fire up RethinkDB (yes a stupid DB without a daemon process). I use "screen -dmS rethinkDB rethinkdb", this will start it and send to a screen called "rethinkDB"
  21. that you can later access with "screen -x rethinkDB".
  22.  
  23. After that, simply go into the bot directory, and run "npm start".
  24.  
  25. Done.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement