aboutsummaryrefslogblamecommitdiff
blob: a403db0c8f43ed37493a062b4a1cd05d91d31958 (plain) (tree)
1
2
3
4
5
6
7
8

                                                     


                                    
 

                                                     




                                                    
# 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"]
Powered by cgit v1.2.3 (git 2.41.0)