Adding project

This commit is contained in:
chrisbell committed 2026-11-10 17:40:24 -05:00
commit 3bd18050cb
9 files changed
+730

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
import discord
from discord.ext import commands
import config
EXTENSIONS = [
"cogs.roles",
"cogs.channels",
"cogs.countdown",
]
class Bot(commands.Bot):
def __init__(self):
super().__init__(
command_prefix=commands.when_mentioned,
intents=discord.Intents.default(),
)
async def setup_hook(self):
for ext in EXTENSIONS:
await self.load_extension(ext)
await self.tree.sync(guild=config.GUILD)
async def on_ready(self):
print(f"Logged in as {self.user} (id {self.user.id})", flush=True)
Bot().run(config.TOKEN)