import tomllib import nerimity import pylast import bot with open("config.toml", "rb") as f: config = tomllib.load(f) # last.fm client network = pylast.LastFMNetwork( api_key = config['api_key'], api_secret = config['api_secret'] ) # nerimity client bot = bot.Bot( token=config['token'], prefix='!' ) bot.load_commands("commands") @bot.listen("on_ready") async def on_ready(params): print(f"Logged in as {bot.account.username}") bot.run()