Python

How to make a Discord Bot using Python 2020! (Discord.py)



In this video, we will learn how to setup a discord bot in python using discord.py v1.4.1 (rewrite) in 2020

If you have any suggestions for future videos, leave it in the comments below.

Some Useful Links –

Python:
Sublime Text:
My Discord Server-
Discord.py Documentation:
My Twitter –

 How to make a Discord Bot using Python…

Similar Posts

26 thoughts on “How to make a Discord Bot using Python 2020! (Discord.py)
  1. For certificate error at the end. follow these steps (on windows 10, not sure about mac and older windows)
    1. Go to start, type internet explorer. Run as admin.

    2. Go do https://discord.com click on the padlock icon next to the search bar.

    3. Click view certificates

    4. Click install certificates, choose either user or local machine.

    5. Click Place all certificates in the following store

    6. Click browse and choose Trusted Root Certification Authorities

    7. Enjoy.

  2. it says '"pip" is not recognized as an internal or external command,

    operable program or batch file.'…. So basically i cant do anything lol. Is there a different thing to do?

  3. help

    C:UsersDanishDesktopteenbotbot>bot.py

    Traceback (most recent call last):

    File "C:UsersDanishDesktopteenbotbotbot.py", line 4, in <module>

    client = commands.bot(command_prefix=">")

    TypeError: 'module' object is not callable

  4. In python, I'm getting an error saying, discord imported but unused.
    Then when I run it in Command Prompt, it just opens the file.
    Can I get help ?

  5. Python 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32

    Type "help", "copyright", "credits" or "license()" for more information.

    >>>

    =============== RESTART: C:UserssamimDownloadsScriptixbot.py ==============

    Traceback (most recent call last):

    File "C:UserssamimDownloadsScriptixbot.py", line 1, in <module>

    import discord

    ModuleNotFoundError: No module named 'discord'

    >>>

    help me please!!!

  6. hi there is an error in my program . i have installed discord from the command prompt. but while i write the whole program and try to run it , it says this error: ModuleNotFoundError: No module named 'discord'

    the program i wrote is :

    import discord

    from discord.ext import commands

    client = commands.bot(command_prefix=",")

    @client.event

    async def on_ready():

    print("Bot is ready")

    @client.command()

    async def hello(ctx):

    await ctx.send("hi")

    client.run(efhuefusfheGIU4UR84shfdsfFrffure8b.rgrjTdhduyz.wklptonenxhseaDEDu FUFQ8RWEDI8Ii8ei)

    can anyone pls help me solve if there is any error in this code.

Leave a Reply to Nipun Cancel reply

Your email address will not be published. Required fields are marked *