1 2 3 4 5 6 7 8
from configparser import ConfigParser config = ConfigParser() config.read('config.ini') discord = config['discord'] token = discord['token']