from discord.ext import commands import data CONFIG = data.load_json("config") bot = commands.Bot() cogs_list = [ 'basic', ] for cog in cogs_list: bot.load_extension(f'cogs.{cog}') bot.run(CONFIG["token"])