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