TypeScript Discord Bot Template
Welcome to the TypeScript Discord Bot Template! This repository serves as a foundation for creating Discord bots using TypeScript, powered by the discord.js API. Get started quickly with a basic structure.
Features:
- discord.js: Utilize the powerful discord.js library to interact with the Discord API and build your bot's functionality.
- dotenv: Manage your bot's configuration settings using environment variables with the dotenv package.
- TypeScript: Develop your bot in TypeScript for type safety and an enhanced development experience.
Getting Started:
-
Clone the Repository: Clone this repository to your local machine using the following command: git clone https://github.com/Daniel-Manea/TypeScript-Discord-Bot.git
-
Navigate to Directory: Move into the cloned directory: cd TypeScript-Discord-Bot
-
Install Dependencies: Install the required dependencies using npm or yarn: npm install
yarn install
-
Configure Your Bot: Create a .env file in the root of the project and provide your bot's token: DISCORD_TOKEN=your_bot_token_here
-
Build and Run: Build and run the bot using these commands:
- To build and start the bot: npm run build npm start
- To run the bot in development mode: npm run dev
Contributing:
- Contributions Welcome! If you find issues, want to add improvements, or have suggestions, feel free to create a pull request. Follow the project's coding style and guidelines.
License:
- This project is licensed under the MIT License.
Note: This template provides a basic structure for your TypeScript Discord bot. Customize and expand it to match your bot's unique requirements and functionalities.