Another multipurpose Discord bot.
- Configure secrets inside
.env
, use.env.example
as a template - Optionally you can configure
config.toml
, useconfig.default.toml
as a template - Run
pnpm install
to install dependencies - Run
pnpm prebuild
to setup the database - Run
pnpm build
to transpile the project
Run pnpm start
to start
start
- Starts the builded bot (runnignode .
directly is slightly more effective), use withNODE_ENV=production
in production
prebuild
- Sets up database with Prisma and builds the Prisma clientbuild
- Transpiles Typescript
-
watch
- Transpiles Typescript with source maps and re-transpiles on changes -
dev
- Start the bot in development mode (uses source maps, use concurrently withwatch
; note that you have to restart this script manually on changes to prevent hitting rate-limit from Discord) -
dev:dry
- Start the bot in dry development mode; no transpilation, automatic restarts, but won't sign in to Discord. -
check
- Checks source code typings with TSC -
lint
- Lints source code with Eslint -
format
- Formats source code with Prettier
generateDocs
- Auto-generates command list in docs/modules/ folder