-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsynanit.py
40 lines (31 loc) · 1.04 KB
/
synanit.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
30
31
32
33
34
35
36
37
38
39
40
# import json
# import os
# import asyncio
# from aiohttp import ClientSession
import logging
# from typing import Optional
# import os
# from discord.app_commands import CommandTree
# from discord import Interaction
# from discord import app_commands
from discord.ext.commands import Bot
import discord
# from discord.ext import commands
from libs import secrets
# pip install -r requirements.txt
class Synanit(Bot):
def __init__(self):
super().__init__(command_prefix=",", intents=discord.Intents.default())
# self.initial_extensions = ["cogs.admin", "cogs.devUtil", "cogs.todo", "cogs.utilities"]
self.initial_extensions = ["cogs.admin", "cogs.devUtil", "cogs.utilities"]
async def setup_hook(self):
for ext in self.initial_extensions:
await self.load_extension(ext)
async def on_ready(self):
print("Ready!")
client = Synanit()
client.run(
secrets.TOKEN
# log_level=logging.DEBUG
# log_handler = logging.FileHandler(filename='discord.log', encoding='utf-8', mode='w')
)