Files
alp-bot/bot/__main__.py
T
2026-11-10 17:40:24 -05:00

30 lines
616 B
Python

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)