blob: 2469d0ff9b1b0bfb7a2eea88321d4073208af67f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# https://docs.python.org/3/library/configparser.html
import configparser
config = configparser.ConfigParser()
config.read("config.ini")
BOT_TOKEN = config["DEFAULT"]["BOT_TOKEN"]
FSQ_API_KEY = config["DEFAULT"]["FOURSQUARE_API_KEY"]
TOOT_API_BASE_URL = config["TOOT"]["API_BASE_URL"]
TOOT_CLIENT_ID = config["TOOT"]["CLIENT_ID"]
TOOT_CLIENT_SECRET = config["TOOT"]["CLIENT_SECRET"]
TOOT_ACCESS_TOKEN = config["TOOT"]["ACCESS_TOKEN"]
|