prereqs:
- https://nodejs.org/en/ (tested on version v8.11.3)
- https://sqlitebrowser.org/ (optional database viewer)
- http://pm2.keymetrics.io/ (optional process manager)
setup:
- in one of the bot's folders make a copy of config_example.json and name it config.json
- edit config.json with the details of your bot( userid can be found in account-> referrals )
- in a terminal navigate to one of the bot's folders.
- type 'npm install'
- type 'node nameofbot.js' to launch the bot
if using pm2:
-
(optional) 'pm2 start nameofbot.js' start your bot and give it to pm2
-
(optional) 'pm2 list' shows all your bots
-
(optional) 'pm2 logs 1' view logs of your bot ( list shows the id ex: 1, 2, 3... )