aboutsummaryrefslogblamecommitdiff
blob: 2469d0ff9b1b0bfb7a2eea88321d4073208af67f (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                     
                   
 

                                    
 

                                                     




                                                    
# 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)