-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
43 lines (35 loc) · 1.48 KB
/
config.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
# Set API_TOKEN to the AI Arena token from https://aiarena.net/profile
# Set APPLICATION_ID to the application id of the Discord bot from https://discord.com/developers/applications/<bot-application-id>/information
# Set TOKEN to the token of the Discord bot from https://discord.com/developers/applications/<bot-application-id>/bot
# Set SEASON to the id of a competition in AI Arena
# Can be multiple prefixes, like this: ("!", "?")
BOT_PREFIX = ("!")
OWNERS = [1234]
BLACKLIST = []
BOT_DISCORD_ID = 1234
AUTH = {'Authorization': f'Token {API_TOKEN}'}
STARTUP_COGS = [
"cogs.help", "cogs.ladder", "cogs.urls"
]
REPLAYS_DIR = "replays/"
# urls
LADDER_RANKS = f"https://aiarena.net/api/competition-participations/?competition={SEASON}&ordering=-elo"
BOT_INFO = "https://aiarena.net/api/bots/"
USER_INFO = "https://aiarena.net/api/users/"
DISCORD_USER_INFO = "https://aiarena.net/api/discord-users/"
RESULTS = "https://aiarena.net/api/results/"
MATCHES = "https://aiarena.net/api/matches/"
MATCH_PARTICIPATION = "https://aiarena.net/api/match-participations/"
# role ids
AA_GUILD_ID = 430111136822722590
AA_BOT_AUTHOR_ID = 555372163788570635
AA_DONATOR_ID = 610982126669660218
SC2AI_GUILD_ID = 350289306763657218
SC2_BOT_AUTHOR_ID = 495250360055889946
SC2_DONATOR_ID = 912775653013741639
ROLES_IDS = {AA_GUILD_ID: [AA_BOT_AUTHOR_ID, AA_DONATOR_ID], SC2AI_GUILD_ID: [SC2_BOT_AUTHOR_ID, SC2_DONATOR_ID]}
# emojis
HOURGLASS_EMOJI = u"\u231b"
GOOD_EMOJI = u"\u2611"
FAILED_EMOJI = u"\u274C"
SMILEY = u"\u263A"