https://github.com/111tokyo/ts-discordbot-boilerplate
🤖 A simple and modular TypeScript boilerplate for building Discord bots with basic setup, logging, and command handling.
https://github.com/111tokyo/ts-discordbot-boilerplate
discord discordapi discordbot typescript
Last synced: 2 months ago
JSON representation
🤖 A simple and modular TypeScript boilerplate for building Discord bots with basic setup, logging, and command handling.
- Host: GitHub
- URL: https://github.com/111tokyo/ts-discordbot-boilerplate
- Owner: 111tokyo
- Created: 2025-03-29T12:44:14.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2025-03-29T12:56:08.000Z (2 months ago)
- Last Synced: 2025-03-29T13:36:40.840Z (2 months ago)
- Topics: discord, discordapi, discordbot, typescript
- Language: TypeScript
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🤖 Discord Bot Boilerplate
This is a boilerplate for creating a Discord bot using TypeScript, based on `ts-quickstart-boilerplate`.
## 🚀 Features
- **TypeScript Support**: Fully typed for a better development experience
- **Modular Structure**: Easy to maintain and scale
- **Environment Variables**: Uses `dotenv` for secure configuration
- **Basic Command Handler**: Easily add new commands
- **Logging System**: Preconfigured logging for debugging## 📦 Installation
1. Clone the repository:
```sh
git clone https://github.com/your-repo/discord-bot-boilerplate.git
cd discord-bot-boilerplate
```2. Install dependencies:
```sh
npm install
```3. Copy the `.env.example` file and rename it to `.env`, then fill in the required values:
```sh
cp .env.example .env
```## ⚙️ Configuration
Edit the `.env` file and provide your bot token:
```
DISCORD_TOKEN=your-bot-token-here
```## 🚀 Running the Bot
To start the bot in development mode with live reload:
```sh
npm run dev
```To build and run in production:
```sh
npm run build
npm start
```## 📜 License
This project is licensed under the MIT License.