GitHunt
CO

commandrod/example-bot

A template for creating Discord bots using TypeScript and Discord.js

Example Bot

Example Bot is a project that I created to make the process of creating discord bot easier for me.
To create a new Discord Bot, I simply clone this repository which includes Command and Listener handling, utility classes, and more.

Dependencies:

  • yarn - My preferred package manager, used as an npm alternative.
  • typescript - Needed to run TypeScript (since discord.js isn't supported by deno).
  • ts-node - Helps me test the bot without needing to build it. Only used in testing, not in production.
  • discord.js - Used for easily interacting with Discord's API using OOP.

How to use:

  • Clone the repository.
  • Run yarn install or npm install to install the dependencies.
  • Change the token in config.json with your bot token.
  • Run yarn dev or npm run dev when testing, and yarn start or npm run start in production.

Languages

TypeScript100.0%

Contributors

MIT License
Created July 14, 2022
Updated May 16, 2024
commandrod/example-bot | GitHunt