Skip to content

Mewtwo2387/silverwolf

Repository files navigation

Silverwolf Bot

silverwolf is very hot.

image

Setup

git clone https://github.com/Mewtwo2387/silverwolf.git
git pull origin master
npm install

Create 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

Run

For dev (with nodemon):

npm run dev

For prod:

npm run start

Lint

To list all issues:

npm run lint

To fix all fixable issues:

npm run lint:fix

This 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 jq

If you get a required file not found error on Linux, try running:

dos2unix eslint-by-rule.sh

Yea this repo is CRLF, uh.

Deploy

Github Actions should automatically deploy to the VM when you push to master.

About

silverwolf bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages