-
Notifications
You must be signed in to change notification settings - Fork 1
/
runtimeConfig.py
51 lines (40 loc) · 1.03 KB
/
runtimeConfig.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
from flask import Flask
import redis as _redis
from pymongo import MongoClient
# Configuration
# MongoDB connection URI.
# From: configReader.py
mongodb_connection_string: str = ""
mongodb_database_name: str = ""
mongodb_user_collection_name: str = ""
mongodb_client: MongoClient = None
mongodb_database = None
mongodb_user_collection = None
# Redis connection host and port
# From: configReader.py
redis_options = {
"host": "localhost",
"port": 6347
}
redis: _redis.Redis = None
pubsub: _redis.client.PubSub = None # noqa
# Cogs to load on startup.
# From: configReader.py
initial_cogs: list[str] = None
# Flask app.
# From: app.py
app: Flask = None
# All loaded cogs, in format {"path": cog}.
# From: app.py
loaded_cogs: dict = None
# Discord config values
# From configReader.py
discord_oauth: dict = None
discord_guild_id: int = None
webhooks: dict = None
# Allowed domains for cors-protected endpoints
# From configReader.py
cors_host: str = "*"
# Path to static data directory
# From configReader.py
static_base_url: str = ""