No description
Ethan Lane
cdf689f1c5
All checks were successful
Test / build (push) Successful in 13s
- Add command to configure the auto kick function - Added ability to run functions on a cron job - Added a cron job every hour to check if a user has had a role for a configured amount of time and kick them if they have - The function also optionally sends a notice embed at a configured time before the kick #485 Reviewed-on: #502 Reviewed-by: VylpesTester <tester@vylpes.com> Co-authored-by: Ethan Lane <ethan@vylpes.com> Co-committed-by: Ethan Lane <ethan@vylpes.com> |
||
---|---|---|
.forgejo/workflows | ||
.gitea | ||
.github | ||
data | ||
database | ||
docs | ||
scripts | ||
src | ||
tests | ||
.dockerignore | ||
.drone.yml | ||
.env.example | ||
.gitignore | ||
.gitlab-ci.yml | ||
docker-compose.yml | ||
jest.config.json | ||
jest.setup.js | ||
LICENSE | ||
package.json | ||
README.md | ||
renovate.json | ||
tsconfig.json | ||
yarn.lock |
VylBot App
Discord bot for Vylpes' Den Discord Server.
Installation
Download the latest version from the releases page.
Copy the config template file and fill in the strings.
Requirements
- NodeJS v16
- Yarn
Usage
Install the dependencies and build the app:
yarn install
yarn build
Setup the database (Recommended to use the docker-compose file)
docker-compose up -d
Copy and edit the settings files
cp .env.template .env
# Edit the .env file
cp ormconfig.json.template ormconfig.json
# Edit the ormconfig.json file
NOTE: Make sure you do not check in these files! These contain sensitive information and should be treated as private.
Start the bot
yarn start
Alternatively, you can start the bot in development mode using:
yarn start --dev
Dev mode ensures that the default prefix is different to the production mode, in case you have both running in the same server.