Initial commit

This commit is contained in:
2026-08-24 12:52:52 +12:00
commit 0cc0b814fa
12 changed files with 460 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
import asyncio
import discord
from discord.ext import commands
from app.cfg import DSC_TOKEN
class DiscordApp(commands.Bot):
def __init__(self):
intents = discord.Intents.default()
intents.message_content = True
super().__init__(command_prefix = "!", intents = intents)
async def setup_hook(self):
await self.load_extension('ext.aurochs')
print("Cogs loaded.")
async def on_ready(self):
print(f"Logged in as {self.user}. Ready!")
async def close(self):
await super().close()
async def main():
bot = DiscordApp()
async with bot:
await bot.start(DSC_TOKEN)
if __name__ == "__main__":
print("Starting...")
try:
asyncio.run(main())
except KeyboardInterrupt:
print("\nInterrupt recieved. Stopping...")