-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
48 lines (35 loc) · 1023 Bytes
/
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
from commands.open_ticket import open_ticket
from commands.set_moderate_tag import set_moderate_tag
from commands.set_ticket_channel import set_ticket_channel
from commands.welcome_channel import welcome_channel
from commands.welcome_message import welcome_message
from core.bot import GDSCBot
from events.on_member_join import on_member_join
from events.on_ready import on_ready
bot = GDSCBot()
bot.event(on_ready)
bot.event(on_member_join)
bot.command(
name='welcomeChannel',
help='Change the channel for the welcome message'
)(welcome_channel)
bot.command(
name='welcomeMessage',
help='Change the welcome message'
)(welcome_message)
bot.command(
name='openTicket',
help='Open a ticket'
)(open_ticket)
bot.command(
name='setTicketChannel',
help='Set the channel for the ticket button'
)(set_ticket_channel)
bot.command(
name='setModerateTag',
help='Set the tag for the ticket button'
)(set_moderate_tag)
def main():
bot.run()
if __name__ == '__main__':
main()