from dotenv import dotenv_values from discord.ext import commands import discord import os config = { **dotenv_values(".env"), **os.environ, } intents = discord.Intents.default() intents.message_content = True bot = commands.Bot(command_prefix="Sigmar! ", intents=intents) @bot.command() async def ping(ctx): await ctx.send("pong") bot.run(config['token'])