https://github.com/ouosama/discord-bot-bun-ts
Discord bot with TypeScript and Bun
https://github.com/ouosama/discord-bot-bun-ts
bun discord-bot discord-js discord-template-bot javascrip typescript
Last synced: 3 months ago
JSON representation
Discord bot with TypeScript and Bun
- Host: GitHub
- URL: https://github.com/ouosama/discord-bot-bun-ts
- Owner: OuOSama
- License: mit
- Created: 2025-02-03T18:27:09.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-02-08T04:00:29.000Z (5 months ago)
- Last Synced: 2025-03-29T22:42:46.707Z (3 months ago)
- Topics: bun, discord-bot, discord-js, discord-template-bot, javascrip, typescript
- Language: TypeScript
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ⚙️ Discord TypeScript Bot Starter
A modern Discord bot template built with **TypeScript** and powered by [Bun](https://bun.sh) runtime.
[](https://bun.sh)
[](https://www.typescriptlang.org/)## ✨ Features
- Type-safe Discord.js interactions
- Hot-reloading development setup
- Modern Bun runtime performance
- Environment configuration support
- Slash commands ready
- Event handler system
- Modular code structure
- Deploy and Remove Commands to global## 🚀 Quick Start
### Prerequisites
- [Bun](https://bun.sh) v1.2.2 or newer
- Discord application token ([get one here](https://discord.com/developers/applications))### Installation
```bash
# Clone repository
git clone https://github.com/OuOSama/discord-bot-bun-ts.git my-bot
cd my-bot# Install dependencies
bun install
```## ⚙️ Configuration ( rename from .env.example to .env )
``` bash
APPLICATION_ID =
TOKEN =
GUILD_ID =
```## 🧪 Development
``` bash
# Start development server (hot reload)
bun run dev# Run production
bun start
```## 📁 Project Structure
``` bash
📦 Discord-bot-bun-ts
┣ 📂.vscode
┃ ┗ 📜snippets.code-snippets
┣ 📂src
┃ ┣ 📂Commands
┃ ┃ ┗ 📜ping.ts
┃ ┣ 📂Events
┃ ┃ ┗ 📂Bot
┃ ┃ ┃ ┗ 📜Ready.ts
┃ ┣ 📂handlers
┃ ┃ ┣ 📜CommandsHandlers.ts
┃ ┃ ┗ 📜EventHandlers.ts
┃ ┣ 📂lib
┃ ┃ ┗ 📜loadTsFilesPath.ts
┃ ┣ 📂scripts
┃ ┃ ┣ 📜deploy-commands.ts
┃ ┃ ┗ 📜remove-commands.ts
┃ ┣ 📂types
┃ ┃ ┗ 📜index.d.ts
┃ ┗ 📜app.ts
┣ 📜.dockerignore
┣ 📜.env
┣ 📜.gitignore
┣ 📜.prettierrc
┣ 📜bun.lock
┣ 📜Dockerfile
┣ 📜eslint.config.js
┣ 📜LICENSE
┣ 📜package.json
┣ 📜README.md
┗ 📜tsconfig.json
```
## 📄 License
MIT License - see LICENSE for detailsMade with ❤️ by [OuOSama](https://github.com/OuOSama) | Powered by [Bun](https://bun.sh) ⚡️