-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
29 lines (23 loc) · 792 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import discord
from discord.ext import commands
import config
from cogs.admin_commands import AdminCommands
from cogs.user_commands import UserCommands
from cogs.chat import Chat
from utils.logging_setup import setup_logging
intents = discord.Intents.default()
intents.message_content = True
class AlphaLLMBot(commands.Bot):
def __init__(self):
super().__init__(command_prefix='§', intents=intents)
async def setup_hook(self):
await self.add_cog(AdminCommands(self))
await self.add_cog(UserCommands(self))
await self.add_cog(Chat(self))
await self.tree.sync()
async def on_ready(self):
print(f'{self.user} est connecté et prêt!')
bot = AlphaLLMBot()
if __name__ == '__main__':
setup_logging()
bot.run(config.TOKEN)