-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
24 lines (19 loc) · 893 Bytes
/
config.py
File metadata and controls
24 lines (19 loc) · 893 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
import yaml
import os
config_path = os.getenv('CONFIG_PATH', 'config.yml')
_config = yaml.safe_load(open(config_path, 'r'))
WEBSITE_URL = "https://web.enginetribe.gq/"
BOT_TOKEN = _config['bot']['token']
GUILD_IDS = _config['bot']['guild_ids']
LOCALE_IDS = _config['bot']['locale_ids']
LEVEL_POST_CHANNEL_ID = _config['bot']['level_post_channel_id']
BOOSTER_ROLE_ID = _config['bot']['booster_role_id']
STAGE_MODERATOR_ROLE_ID = _config['bot']['stage_moderator_role_id']
MEMBER_ROLE_ID = _config['bot']['member_role_id']
RICH_PRESENCE_ENABLED = _config['bot']['rich_presence']['enabled']
RICH_PRESENCE_ACTIVITIES = _config['bot']['rich_presence']['activities']
API_HOST = _config['enginetribe_api']['host']
API_KEY = _config['enginetribe_api']['api_key']
API_TOKENS = _config['enginetribe_api']['tokens']
WEBHOOK_HOST = _config['webhook']['host']
WEBHOOK_PORT = _config['webhook']['port']