You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with open("./data/config.json", "r") as configjsonFile:
configData = json.load(configjsonFile)
TOKEN = configData["token"]
PREFIX = configData["prefix"]
intents = discord.Intents.all()
bot = commands.Bot(command_prefix=PREFIX, description="My first bot!", activity=discord.Game(name="Do !help"), intents=intents) # if you have a custom help command add help_command=None
@bot.event
async def on_command_error(ctx, error):
pass
@bot.event
async def on_ready():
print("Loaded")
@bot.command()
async def ping(ctx):
await ctx.send(value=str(f"My ping is: {round(bot.latency * 10)}ms")