diff options
author | clarkzjw <[email protected]> | 2023-02-20 13:49:51 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-20 13:49:51 -0800 |
commit | f927324709d639adfcd5487c7740e3d60f2246b8 (patch) | |
tree | 125b6ec833af57b2ec1813309506dbe6b791b35f /config.py | |
parent | a099e6cf153ae7155957bb16bc56233d2420288c (diff) | |
parent | f7f99f41e768e6740adbf2ee708488b29fe6265a (diff) | |
download | swarm2fediverse-f927324709d639adfcd5487c7740e3d60f2246b8.tar.gz |
basic features
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 13 |
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 | |||
3 | import configparser | ||
4 | config = configparser.ConfigParser() | ||
5 | config.read("config.ini") | ||
6 | |||
7 | BOT_TOKEN = config["DEFAULT"]["BOT_TOKEN"] | ||
8 | FSQ_API_KEY = config["DEFAULT"]["FOURSQUARE_API_KEY"] | ||
9 | |||
10 | TOOT_API_BASE_URL = config["TOOT"]["API_BASE_URL"] | ||
11 | TOOT_CLIENT_ID = config["TOOT"]["CLIENT_ID"] | ||
12 | TOOT_CLIENT_SECRET = config["TOOT"]["CLIENT_SECRET"] | ||
13 | TOOT_ACCESS_TOKEN = config["TOOT"]["ACCESS_TOKEN"] | ||