A common feature of Discord bots is a currency system.
Install dependencies
npm install
Available scripts
npm start
- Start in productionnpm run dev
- Start in developmentnpm run lint
- Lint filesnpm run deploy-commands
- Registers slash(/) commands
Database
Execute node dbInit.js
to create the database tables. Unless you make a change to the models, you'll never need to touch the file again. If you change a model, you can execute node dbInit.js --force
or node dbInit.js -f
to force sync your tables. It's important to note that this will empty and remake your model tables.