A simple Discord bot template written in JavaScript to help you kickstart your own Discord bot project. This template provides a foundation for building a bot with basic functionality.
- Command Handling: Easily add and handle commands.
- Event System: Manage & respond to Discord events effortlessly.
- JavaScript: Written in JavaScript for ease of use and quick development.
- Clean Code: Code is clean and commented for understandability of what the code does.
Before you start, ensure you have the following installed:
- Node.js and npm
- Discord.js library
- Your Bot Token
-
Clone the repository:
git clone https://github.com/OfficialCodeSpiral/discord-bot-base-js.git
-
Install dependencies:
cd discord-bot-base-js npm install
-
Configure your bot:
- Rename
.example.env
to.env
. - Replace
BOT_TOKEN
with your actual bot token in.env
. - Replace
CLIENT_ID
with your actual bot id in.env
.
- Rename
-
Run your bot:
npm run start
- Add your commands in the
commands
directory. - Add your events in the
events
directory. - Customize and extend the bot as per your requirements.
This project is maintained by meFqulted and contributors.
For any questions or issues, please create an issue in the repository.
This Discord Bot Template is under the MIT License.