We <3 corrections and improvements
- Node.js >= v16.9.
- Yarn
- A Discord bot application.
-
Clone the repo with
git clone [email protected]:sovereign-guides/sovbot.git
-
Fill in the env variables with
cd src && mv config.json.example config.json && nano config.json
. -
Install packages with
yarn install
-
Run
pm2 start ecosystem.config.js
to start the bot service.
📝
When updating, you can use the bash update.sh
script.
📝
View logs with pm2 logs ecosystem.config.js
Remember to always lint your edits/additions before making a commit to ensure everything's lined up and consistent with the rest of the bot. I use ESLint and have a package.json script for linting JS files.
yarn run lint