This project is a base framework for developing Discord bots using TypeScript. It provides essential features like user locales and a WebSocket server to control the bot, such as starting or stopping it. This base is designed to help other developers quickly get started with their own bots.
- Locales: Multi-language support for users, allowing you to easily add and manage different languages.
- WebSocket Server: Control the bot remotely, with features like stopping and starting the bot.
- Modular Structure: Organized code structure to easily manage events, commands, and more.
-
Clone this repository or download the zip:
git clone https://github.com/MrBlackReal/discord-base.git
-
Navigate to the project directory:
cd discord-base -
Install the necessary dependencies:
npm install
-
Setup env variables: Create a new ".env" file and configure it.
-
Start the bot:
npm run start
Create a .env file in the root directory with the following variables:
BOT_TOKEN="bot token"
BOT_ID="bot id"
GUILD_ID="test guild id"
PORT="socket port"Additional configuration can be added to the .env file as needed.
Once the bot is running, you can interact with it through Discord using slash commands as well as through the WebSocket server for remote control.
/ping - A basic command to check if the bot is online.
You can control the bot through the WebSocket server by sending commands such as "stop" or "start".
This project is licensed under a Creative Commons Attribution License. You are free to modify and distribute this project as long as you give credit to the original author.
Contributions are welcome! Please feel free to submit a Pull Request or open an Issue to discuss what you would like to see in the project.