First, clone the repository:
git clone https://github.com/Conrad306/bot-template.git
Install dependencies, fill env (see .env.example) and update botconfig information
yarn install
The current file structure is as follows:
project-root
- src/
- client/
- events/
- buttons/
- slashCommands/
- textCommands/
- selectMenus/
if you wish to change these, follow these steps:
- To add/remove folders between
src
and your interaction folders, edit theload
function inlib/common/loader/BaseInteractionLoader.ts
and theloadEvents
function oflib/common/ExtendedClient.ts
- To change the title of a directory (e.g., "slashCommands" to "commands"), edit the string in the
load
function oflib/common/loader/[FolderToReplace].ts
(for my earlier example, it would beSlashCommandLoader.ts
)
Progress:
- Interaction handlers for every class
- Buttons
- Autocomplete
- Modals
- User Context
- Message Context
- Select Menus
- Slash Commands
- Message Commands
- JSDoc
- Dockerize
- Strong-set permission system.
Planned Features:
- Support / development server linking, and channel logging on-error.
- Auto-paginated "help" command, which loads from
<Client>.slashCommands
- Fastify connection for web data.
- Ratelimiting / Cooldowns.