Create a Server

Create Your Own Discord Bot in Python 3.12 Tutorial

Create Your Own Discord Bot in Python 3.12 Tutorial (2024 Edition)

#Create #Discord #Bot #Python #Tutorial

“Indently”

Today we will be learning how we can create a Discord Bot from scratch in Python. We will host it on a local server and it will be able to respond to users in less than 20 minutes! A perfect tutorial for getting started with Discord Bots in 2024.

▶ Become job-ready with Python:

▶ Follow me on Instagram:

Developer Portal:

00:00 Intro
00:15 PyCharm
00:25 Pip install
01:05 Project files
02:15 Bot setup
06:36 Imports
08:19 Handling intents
09:26 Message functionality
13:24 Adding responses
15:29 Improve your Python skills
16:08 Bot startup
16:40 Handling incoming messages
18:22 Almost done
18:54 Running our bot
19:18 Fixing our mistake
19:52 It’s alive!
20:42 You can edit it
21:27 Hosting your bot
21:46 See you in the next video!

source

 

To see the full content, share this page by clicking one of the buttons below

Related Articles

14 Comments

  1. Hi! Really love the tutorial. Was just wondering, cause when I try to run the script I get a error message saying "asyncio.run() cannot be called from an running event loop", I just can't figure out what is causing this error.

  2. Great video and bot!

    If your bot is not working, you can do this:
    1) Open Terminal
    2) Put this command: /Applications/Python 3.12/Install Certificates.command
    3) Put this command: pip3 install –upgrade certifi
    4) Run your bot again

    Requirements
    1) Mac OS X
    2) Python 3.12

Leave a Reply