-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.py
55 lines (41 loc) · 1.31 KB
/
index.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import disnake
from disnake.ext import commands
import variables
# intents
intents = disnake.Intents.default()
intents.message_content = True
client = commands.InteractionBot(
intents=intents,
activity=disnake.Activity(
name="out for your commands",
type=disnake.ActivityType.watching,
)
)
# Commands
from cogs.commands.link import LinkCommand
client.add_cog(LinkCommand(client))
from cogs.commands.template import TemplateCommand
client.add_cog(TemplateCommand(client))
from cogs.commands.info import InfoCommand
client.add_cog(InfoCommand(client))
from cogs.commands.folderstructure import FolderStructureCommand
client.add_cog(FolderStructureCommand(client))
from cogs.commands.vanilla import VanillaCommand
client.add_cog(VanillaCommand(client))
from cogs.commands.packformat import PackFormatCommand
client.add_cog(PackFormatCommand(client))
from cogs.commands.help import HelpCommand
client.add_cog(HelpCommand(client))
from cogs.commands.dpwiki import DPWikiCommand
client.add_cog(DPWikiCommand(client))
# Events
@client.event
async def on_ready():
print("Bot is ready!")
from cogs.events.on_message import OnMessage
client.add_cog(OnMessage(client))
# Misc Cogs
from cogs.misc.admin import AdminCommands
client.add_cog(AdminCommands(client))
# Run the bot
client.run(variables.TOKEN)