Skip to content
/ drpg-template Public template

Template Discord Bot, with example Ping, Button, and Help commands!

Notifications You must be signed in to change notification settings

Bejasc/drpg-template

Repository files navigation

Discord Sapphire Bot Template

Features

  • Typescript
  • Sapphire Framework
  • Excelent tooling and processes that make development fast and easy!
    • tscwatch to quickly reload changes as you save them
    • Prettier and ESLint configured to help you write cleaner code with less traps for you to fall into
    • Husky to stop you committing bad code
  • DRPG Logger (custom logging to replace console.log spam).
    • The docs (and install method) on this are a little out of date, but the npm page will give you a good idea of it's over-all functionality.

Getting Started

  1. Clone the repo
  2. run npm install
  3. Copy .env.example and rename it to .env (this will store all your sensitive config info, and will be ignored by Git)
  4. Provide your Bot Token, Owner ID, and Log Channel, options in your new env file
  5. run npm run dev
  6. Work and wait for the magic to happen!

Commands

By default, a couple of commands are provided, with several aliases for each

  • ^ping hails a cab duh
  • ^help views the custom IDrpgCommandOptions decorator on each object. Provide a command name or alias
  • ^buttontest embeds and buttons, with a random number generator baked into it as an example

Other info

  • You may see several references to 'Drpg' - Discord RPG Community. This is a sort of "brand"/community that I've created - mostly for myself, that follow this same framework and patterns, and has shared common utilities (DRPG-Logger and DRPG-Utils).

About

Template Discord Bot, with example Ping, Button, and Help commands!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •