|
|
||
|---|---|---|
| .github/workflows | ||
| .husky | ||
| assets | ||
| prisma | ||
| src | ||
| .gitignore | ||
| bun-types.d.ts | ||
| bunfig.toml | ||
| eslint.config.js | ||
| flake.nix | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
TTY Discord Bot
[🇫🇷 Version française ci-dessous | French version below]
English
TTY is a Discord bot developed with Bun, designed to provide custom features for your Discord servers.
This project is ideal for learning, experimenting, or enhancing your Discord experience with custom commands.
Main Features
- Custom commands
- Easily extensible
- Fast, thanks to Bun
Requirements
- Bun installed (v1.0 or later)
- Node.js (if required by Bun)
- A Discord bot token (see Discord's documentation)
Installation
Clone the repository and install dependencies with Bun:
git clone https://github.com/EniumRaphael/TTY.git
cd TTY
bun install
Configuration
Before running the bot, create a .env file at the root of the project and add your Discord token:
DSC_TOKEN='Your discord bot token'
DATABASE_URL="url of your database"
CLIENT_ID=Your client ID
Add other environment variables if needed (e.g. PREFIX, etc.).
Development Usage
To run the bot in development mode (hot reload):
bun run dev
Build and Run in Production
To build the project to JavaScript:
bun run build
Then run the built bot:
node dist/index.js
Contributing
Contributions are welcome!
Feel free to open an issue or pull request to suggest an improvement or report a bug.
License
GNU Affero General Public License v3.0
🇫🇷 Français
TTY est un bot Discord développé avec Bun, conçu pour offrir des fonctionnalités personnalisées sur vos serveurs Discord.
Ce projet est idéal pour apprendre, expérimenter ou enrichir votre expérience Discord avec des commandes personnalisées.
Fonctionnalités principales
- Commandes personnalisées
- Facilement extensible
- Rapide grâce à Bun
Prérequis
- Bun installé (version 1.0 ou supérieure)
- Node.js recommandé (si Bun le requiert)
- Un token de bot Discord (documentation Discord pour créer un bot)
Installation
Clonez le dépôt, puis installez les dépendances avec Bun :
git clone https://github.com/EniumRaphael/TTY.git
cd TTY
bun install
Configuration
Avant de lancer le bot, créez un fichier .env à la racine du projet et ajoutez votre token Discord :
DSC_TOKEN='Ton discord Token'
DATABASE_URL="Ton lien de ta base de donnee"
CLIENT_ID=L'identifiant de ton client
Ajoutez d’autres variables d’environnement si besoin (par exemple PREFIX, etc.).
Utilisation en développement
Pour lancer le bot en mode développement (hot reload) :
bun run dev
Build et lancement en production
Pour compiler le projet en JavaScript :
bun run build
Puis pour lancer le bot compilé :
node dist/index.js
Contribution
Les contributions sont les bienvenues !
N’hésitez pas à ouvrir une issue ou une pull request pour proposer une amélioration ou signaler un bug.
Licence
GNU Affero General Public License v3.0