Skip to content

Founder-phasezero/Python-Discord-Bot-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”§ Discord Bot Template

A clean and expandable Python Discord bot template using discord.py with support for automatic cog loading.

πŸš€ Features

  • Easy-to-edit bot structure

  • Automatic loading of cogs from the ./cogs folder

  • Example cog included

  • Commands:

    • !ping β€” Check bot latency
    • !uptime β€” Shows how long the bot has been online

πŸ“ Project Structure

πŸ“¦ your-bot
β”œβ”€β”€ main.py
β”œβ”€β”€ cogs
β”‚   β”œβ”€β”€ 1.py
β”‚   └── (add more cogs here)
└── Requirements.txt

2. Add your bot token

Inside main.py:

TOKEN = "YOUR_BOT_TOKEN_HERE"

▢️ Running the bot

Run the main script:

python main.py

🧩 Creating a Cog

Put a file inside the cogs folder:

from discord.ext import commands

class Example(commands.Cog):
    def __init__(self, bot):
        self.bot = bot

    @commands.command()
    async def hello(self, ctx):
        await ctx.send("Hello from a cog!")

async def setup(bot):
    await bot.add_cog(Example(bot))

πŸ’¬ Support

If you want more commands, features, or help setting up hosting, just ask!


⭐ Like this project?

Star it, share it, or expand it with your own cogs!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages