-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
86 lines (77 loc) · 2.59 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
74
75
76
77
78
79
80
81
82
83
84
85
86
import os
from keep_alive import keep_alive
import disnake as discord
from disnake.ext import tasks, commands
from disnake.ext.invitetracker import InviteLogger
# from disnake import FFmpegPCMAudio , PCMVolumeTransformer
# from youtube_dl import YoutubeDL
from imports.events.start import *
from imports.events.message import *
from imports.events.reaction import *
from imports.events.voice import *
from imports.events.member import *
from imports.events.slash_commands import *
from imports.events.scheduled_event import *
from imports.events.thread import *
from imports.slash_commands.info import *
from imports.slash_commands.guide import *
from imports.slash_commands.message import *
from imports.slash_commands.reaction import *
# from imports.slash_commands.voice import *
# from imports.slash_commands.audio import *
from imports.slash_commands.member import *
from imports.slash_commands.role import *
from imports.slash_commands.scheduled_event import *
from imports.slash_commands.extra.fun import *
from imports.slash_commands.channel import *
from imports.slash_commands.category import *
from imports.slash_commands.thread import *
from imports.slash_commands.bot import *
from imports.slash_commands.community import *
from temporary import *
# from imports.slash_commands.extra.quran import *
intents = discord.Intents.all()
bot = commands.InteractionBot(intents = intents)
invite = InviteLogger(bot)
params = {
'invite': invite,
'bot': bot,
'discord': discord,
'tasks': tasks,
'commands': commands,
# 'YoutubeDL': YoutubeDL,
# 'FFmpegPCMAudio': FFmpegPCMAudio,
# 'PCMVolumeTransformer': PCMVolumeTransformer,
}
def init_events():
init_events_start(params)
init_events_message(params)
init_events_reaction(params)
init_events_voice(params)
init_events_member(params)
init_events_slash_commands(params)
init_events_scheduled_event(params)
init_events_thread(params)
def init_slash_commands():
init_slash_commands_info(params)
init_slash_commands_guide(params)
init_slash_commands_message(params)
init_slash_commands_reaction(params)
# init_slash_commands_voice(params)
# init_slash_commands_audio(params)
init_slash_commands_member(params)
init_slash_commands_role(params)
init_slash_commands_scheduled_event(params)
init_slash_commands_channel(params)
init_slash_commands_category(params)
init_slash_commands_thread(params)
init_slash_commands_bot(params)
init_slash_commands_community(params)
init_slash_commands_fun(params)
# init_slash_commands_quran(params)
init_events()
init_slash_commands()
if os.getenv("testing") == "1":
init_temporary(params)
keep_alive()
bot.run(os.getenv("token"))