silverwolf is very hot.
git clone https://github.com/Mewtwo2387/silverwolf.git
git pull origin master
npm installCreate a .env file and add the following:
CLIENT_ID=your-discord-bot-client-id
TOKEN=your-discord-bot-token
GEMINI_TOKEN=your-gemini-token
ALLOWED_USERS=discord-user-ids-of-devs,separated,by,commas
GUILD_ID=discord-server-ids,separated,by,commas
For dev (with nodemon):
npm run devFor prod:
npm run startTo list all issues:
npm run lintTo fix all fixable issues:
npm run lint:fixThis only fixes stuff like indentations and line breaks, so good luck with the rest.
To list issues by rule:
./eslint-by-rule.sh <rule-name> [directory-or-file]If you don't have jiaoqiu jq installed, install it with:
sudo apt-get update
sudo apt-get install jqIf you get a required file not found error on Linux, try running:
dos2unix eslint-by-rule.shYea this repo is CRLF, uh.
Github Actions should automatically deploy to the VM when you push to master.
