mirror of
https://github.com/arthur-pbty/discord.js-bot.git
synced 2026-06-03 23:36:33 +02:00
2.4 KiB
2.4 KiB
Discord.js Bot
An advanced Discord bot designed to offer a wide range of interactive and management features for online communities.
Table of Contents
Installation
To get started with discord.js-bot, follow these steps:
-
Clone the repository:
git clone https://github.com/arthur-pbty/discord.js-bot.git cd discord.js-bot -
Install dependencies:
npm install -
Set up environment variables:
-
Create a
.envfile in the root directory. -
Add your Discord bot token:
TOKEN=your_discord_bot_token_here
-
Usage
Development Mode
Start the bot with automatic restart using nodemon:
npm run dev
Production Mode
Build and start the bot:
npm start
Deploy Commands
Update Discord bot commands (slash commands):
npm run deploy
Commands
- npm run build: Compile TypeScript to JavaScript.
- npm run prettier: Format code using Prettier.
- npm run prettier-check: Check code formatting without modification.
Contributing
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE for more information.
Contact
Arthur PBTY - GitHub
Project Link: https://github.com/arthur-pbty/discord.js-bot