Answers for "how to make a discord bot python discord.py in prcham"

14

bot discord python

import discord
from discord.ext import commands

bot = commands.Bot(command_prefix="!", description="The description")

@bot.event
async def  on_ready():
    print("Ready !")

@bot.command()
async def ping(ctx):
    await ctx.send('**pong**')

bot.run("enter the token here between the quotes")
Posted by: Guest on January-02-2021

Code answers related to "how to make a discord bot python discord.py in prcham"

Python Answers by Framework

Browse Popular Code Answers by Language