-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
30 lines (25 loc) · 962 Bytes
/
main.py
File metadata and controls
30 lines (25 loc) · 962 Bytes
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
from Handlers import MessageHandler, EventHandler
import settings, discord
from Commands import Informations, Tools
from Utilities import Utilities, GoniecHelpCommand
from discord.ext import commands
import asyncio
logger = settings.logging.getLogger("bot")
messageEventHandler = None
defined_not_important_roles = ["Świeżak", "GameDev", "dupa"]
all_roles = []
all_server_text_channels_object = []
async def run():
global bot
intents = discord.Intents.default()
intents.message_content = True
intents.members = True
bot = commands.Bot(command_prefix="$",intents=intents)
await bot.add_cog(Informations.Informations(bot))
await bot.add_cog(Tools.Tools(bot))
await bot.add_cog(Utilities.Utilities(bot))
await bot.add_cog(EventHandler.EventHandlers(bot))
await bot.add_cog(GoniecHelpCommand.GoniecHelp(bot))
if __name__ == "__main__":
asyncio.run(run())
bot.run(settings.DISCORD_API_SECRET, root_logger=True)