6
Q:

install discord.py

py -3 -m pip install -U discord.py
5
py -3 -m pip install -U discord.py
0
import discord
from discord.ext import commands

client=commands.Bot(command_prefix="your bot's prefix")

@client.event
async def on_ready():
  print("I am online")

@client.command()
async def ping(ctx):
  await ctx.send(f"Pong! {client.latency}")

client.run('Your Token')
4
pip install discord.py
0
import discord
1
# discord.py is the package you are looking for if you want to make a discord bot using python.
# Install it by typing this in shell/bash:
pip install discord.py
0

New to Communities?

Join the community