Skip to content

Clean and simple Discord bot template designed for beginners who want to learn bot development. Comes with slash commands already set up, modular file structure for easy management, and detailed comments explaining how everything works. Perfect starting point for your own Discord bot.

License

Notifications You must be signed in to change notification settings

HaskaZuki/TemplateBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TemplateBot

We keep it simple. Here are the core packages driving this bot:

  • discord.js (v14): The main library for interacting with the Discord API.
  • dotenv: Keeps your secrets (like tokens) safe and out of your code.
  • nodemon (Dev): Automatically restarts your bot whenever you save a file, so you don't have to do it manually.

⚡ How to Get Started

Getting this up and running takes about 2 minutes.

1. Grab the Code

Clone this repo to your machine:

git clone https://github.com/HaskaZuki/TemplateBot.git
cd TemplateBot

2. Install Dependencies

Run this command to install the packages listed above:

npm install

3. Set Your Secrets

You'll see a file called .env.example. Rename it to just .env and paste your bot token and client ID inside.

DISCORD_TOKEN=your_token_goes_here
CLIENT_ID=your_client_id_goes_here

Note: Never share your .env file with anyone!

4. Register Commands

Before you start, you need to tell Discord about your slash commands. We have a script for that:

npm run deploy

5. Launch 🚀

You're ready to go.

npm start

Working on new features? Use npm run dev to watch for changes automatically.

📂 Where things live

  • commands/: Drop your new command files here. We use subfolders (like utility) to keep things organized.
  • events/: Listen for things like ready or interactionCreate here.
  • index.js: The entry point. It handles the dynamic loading magic.

🛠 Support & Contact

If you encounter any issues or want to reach out directly, feel free to join our community or add me on Discord.

Discord Support Discord

Discord Username: zuki96_

About

Clean and simple Discord bot template designed for beginners who want to learn bot development. Comes with slash commands already set up, modular file structure for easy management, and detailed comments explaining how everything works. Perfect starting point for your own Discord bot.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published