Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.
/ bot Public archive

🎲 A general purpose utility bot, with an economy, games, and lots of other features.

License

Notifications You must be signed in to change notification settings

dice-discord/bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dice

Build Status XO code style codecov

A total rewrite of the Dice Discord bot in TypeScript using the Akairo framework.

Developers

File naming scheme

Commands

Commands should be under their category's subfolder (ex. commands/admin for the admin category).

Command filenames should exactly match their ID.

Listeners

Commands should be under their category's subfolder (ex. listeners/client for the client category). The category should exactly match their emitter name.

Listener filenames should exactly match their event name (ex. commandStarted.ts for the commandStarted event).

Inhibitors

Inhibitor filenames should exactly match their ID.

Prequisites

This project uses Node.js 12 to run.

This project uses Yarn to install dependencies, although you can use another package manager like npm or pnpm.

yarn install
# or `npm install`
# or `pnpm install`

Building

Run the build script to compile the TypeScript into the tsc_output folder. This will compile the src and the test directory, so be careful not to upload the whole folder as a published package.

Style

This project uses Prettier and XO.

You can run Prettier in the project with this command:

yarn run style

You can run XO with this command:

yarn run lint

Note that XO will also error if you have TypeScript errors, not just if your formatting is incorrect.

Linting

This project uses XO (which uses ESLint and some plugins internally) to perform static analysis on the TypeScript. It reports things like unused variables or not following code conventions.

yarn run lint

Note that XO will also error if you have incorrect formatting, not just if your TypeScript code has errors.