Create Your Own Discord Bot in Python 3.10 Tutorial (2022 Edition)

preview_player
Показать описание
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 15 minutes! A perfect tutorial for getting started with Discord Bots in 2022.

▶ Become job-ready with Python:

▶ Follow me on Instagram:

Developer Portal:

00:00 Demo
01:30 Getting started
04:16 New project
04:49 Creating responses
07:03 Discord bot functionality
09:25 Inviting the bot to our server
10:52 Finishing our bot
13:15 Running the bot
Рекомендации по теме
Комментарии
Автор

I've noticed that they had a recent update in Discord. If your code is missing intents, try creating some:

intents = discord.Intents.default()
intents.message_content = True
client =

Also remember to go on the developer website and under the "BOT" section you can toggle a new "MESSAGE CONTENT INTENT" switch.

For the 2024 version + source code:

Indently
Автор

client = I had to add this to the program to get it to work

diegobonaventura
Автор

I might be able to create a custom bot that i need for a client thanks to this video. Making bots is not my area of work, but this video has helped a lot. Thank you

orlandodgpim
Автор

*for private bots*
select 'none' for 'default authorisation link'
otherwise it wont let you make it private

jgplayz
Автор

amazing video bro thanks for the help got my bot running
just had to do the intents change in the code and the bot as well thanks to everyone else as well who pointed it out in the chat

ishaannaolekar
Автор

So happy that I took 2hrs to make and fix and watched 16 extra tuts and still did not work, thanks alot!

Hazzy
Автор

dude, I just discovered your channel. You have the best voice for teaching.

Pytho_n
Автор

if somebody is facing any problem with intents please substitute client for this: client =

BnRstats
Автор

Thanks a lot. Your video was very good to follow along while coding.

Luchsevans
Автор

simple and easy to understand thanks for the basics

ek
Автор

godly tutorial btw, straight to the point and I now know all the basics to make a discord bot

god bless🙏

thesaltyspoon
Автор

Open source just changes the game, now it's only something everyone has until something new is released but yeah version 3.10 seems to ease copy and paste and adds more fun for us in the loop world.

gotmiurgos_
Автор

i have a problem when I was importing discord module into project. I installed it, but somehow Pycharm didn't find this module. How can I fix that?

DebiiLich
Автор

AMAZING! Clear, informative and python noob friendly!

Going to use this as a base to make a bot now!

THANK YOU!

Jamaipanese
Автор

For people who need the tick, here ---> `
:)

Tak_TakPhobia
Автор

I need help I cant run it it says "AttributeError: module 'bot' has no attribute 'run_discord_bot' " what do I do I really need that bot help me plzz

luxe
Автор

6:27 isn't that character a back tick? also known as a grave. `. it's usually right above the tab key and beside the 1 key. pressing it while holding shift gives a tilde ~.

lordender_kitty_official
Автор

It keeps saying no module named discord can someone help

commanderwaffle
Автор

Nice tutorial. The user_message value doesn't work though, why?

ido_cohen
Автор

Thanks for this. Helped me with my project.

fahnub