-
Notifications
You must be signed in to change notification settings - Fork 6
/
main.py
73 lines (59 loc) · 2.08 KB
/
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
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# * IMPORTING
# Local Files
import bot_token
# Cogs
# TODO import cogs.message_commands.fancify as fancify
# ? reconsider/rework this: import cogs.commands.eliminate as eliminate
import cogs.commands.folderstructure as folderstructure
import cogs.commands.help as help
import cogs.commands.info as info
import cogs.commands.invite as invite
import cogs.commands.method as method
import cogs.commands.packformat as packformat
import cogs.commands.ping as ping
import cogs.commands.resource as resource
import cogs.commands.syntax as syntax
import cogs.commands.template as template
import cogs.commands.highlighter as highlighter_command
import cogs.commands.vanilla as vanilla
import cogs.listeners.on_button_click as on_button_click
import cogs.listeners.on_guild_join as on_guild_join
import cogs.listeners.on_guild_remove as on_guild_remove
import cogs.listeners.on_message as on_message
import cogs.listeners.on_ready as on_ready
# Other Stuff
import disnake
from disnake.ext import commands
# * SETUP BOT
# Set Intents
intents = disnake.Intents.default()
intents.message_content = True
# Set Activity Status
activity = disnake.Activity(
name="out for your commands",
type=disnake.ActivityType.watching,
)
# Initialize
bot = commands.Bot(command_prefix="?", intents=intents, activity=activity)
# * ADD COGS
# Slash Commands
bot.add_cog(syntax.SyntaxCommand(bot))
bot.add_cog(method.MethodCommand(bot))
bot.add_cog(folderstructure.FolderStructureCommand(bot))
bot.add_cog(invite.InviteCommand(bot))
bot.add_cog(packformat.PackFormatCommand(bot))
bot.add_cog(info.InfoCommand(bot))
bot.add_cog(template.TemplateCommand(bot))
bot.add_cog(help.HelpCommand(bot))
bot.add_cog(ping.PingCommand(bot))
bot.add_cog(resource.ResourceCommand(bot))
bot.add_cog(highlighter_command.HighlighterCommand(bot))
bot.add_cog(vanilla.VanillaCommand(bot))
# Listeners
bot.add_cog(on_message.OnMessage(bot))
bot.add_cog(on_button_click.OnButtonClick(bot))
bot.add_cog(on_guild_join.OnGuildJoin(bot))
bot.add_cog(on_guild_remove.OnGuildRemove(bot))
bot.add_cog(on_ready.OnReady(bot))
# * RUN BOT
bot.run(bot_token.token)