Bot Development
need some help if possible, I've set up a bot using Discord API, invited it to my server but haven't been able to set up basic commands yet. how do i do this?
pip install -U discord.py import discord
intents = discord.Intents.default()
intents.message_content = True
from discord.ext import commands
bot = commands.Bot(command_prefix='Your prefix, :, ?...', intents=intents)
@bot.command()
async def ping(ctx):
await ctx.send('Pong!')

import discord
intents = discord.Intents.default()
intents.message_content = True
from discord.ext import commands
bot = commands.Bot(command_prefix='Your prefix, :, ?...', intents=intents)
@bot.command()
async def ping(ctx):
await ctx.send('Pong!')