A Discord bot template using discord.js, Commando, and TypeScript. Supports auto-compilation.
- Automatic compilation and restarting with Nodemon. When edits are saved, Nodemon will automatically recompile your code and restart your bot.
- SQLite database support with Commando's SQLite adapter.
- A good start for new TypeScript developers, or those needing a quick boilerplate for a speedy deployment.
ts-discord-bot-template
makes good use of NPM scripts, so make sure you check out the goodies inside package.json
. Despite this, the only thing
you need to do to get a debug session started is run npm run debug
in your favourite shell (in the root directory), and Nodemon will start with the proper configuration.
Feel free to change the scripts inside package.json
should you need to change Nodemon, TSC, or NPM's runtime flags.
- Click 'Use this template' in the top-right of this repository.
- Fill out the name of your new repository, and pick the location.
- Clone the repository to your computer.
- Make sure TypeScript is installed on your computer. You can do this by running
npm i -g typescript
from your favourite shell. - Install the dependencies. You can do this by running
npm i
from your favourite shell. - Update the configuration inside
config.json
with your Discord bot details, preferred command prefix, and support server invite. The last one is optional. - Start a debug session with
npm run debug
. - Edit to your heart's content, and watch Nodemon automatically recompile and restart your app when changes are detected.
Authorization of Derivative Works
Derivative works, including forks, bots, applications, and services, are not subject to any license, restrictions, requirements or specifications. A license is not needed, but a credit might be nice ;)
Protection of Original Assets
Otherwise, this repository and assets are copyright © 2018-2021 Abyssal under the MIT License.