aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config.py')
-rw-r--r--config.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/config.py b/config.py
new file mode 100644
index 0000000..a403db0
--- /dev/null
+++ b/config.py
@@ -0,0 +1,13 @@
1# https://docs.python.org/3/library/configparser.html
2
3import configparser
4config = configparser.ConfigParser()
5config.read("config.ini")
6
7BOT_TOKEN = config["DEFAULT"]["BOT_TOKEN"]
8FSQ_API_KEY = config["DEFAULT"]["FOURSQUARE_API_KEY"]
9
10TOOT_API_BASE_URL = config["TOOT"]["API_BASE_URL"]
11TOOT_CLIENT_ID = config["TOOT"]["CLIENT_ID"]
12TOOT_CLIENT_SECRET = config["TOOT"]["CLIENT_SECRET"]
13TOOT_ACCESS_TOKEN = config["TOOT"]["ACCESS_TOKEN"]
Powered by cgit v1.2.3 (git 2.41.0)