1 2 3 4 5 6 7 8 9 10 11 12 13 14
from configparser import ConfigParser config = ConfigParser() config.read('config.ini') discord = config['discord'] token = discord['token'] jdoodle = config['jdoodle'] jdoodle_secret = jdoodle['secret'] jdoodle_id = jdoodle['id']