Navigate Select ESC Close

How to Build a Discord Bot With Python - Full Tutorial 2025+

2025-04-22 Education
196.1k
4.9k
254
Tech With Tim
Tech With Tim
2.0m subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

👉 Try Junie, smart coding agent: https://jb.gg/try-junie Download PyCharm and use it for free forever with one month of Pro included: https://www.jetbrains.com/pycharm/ In this video, I'll be showing you how to build a custom discord bot using Python. This isn't super complicated. It's going to be relatively fast, and we're going to do this in about 100 lines of code. I'm going to show you how to set this up, how to connect to discord, how to get all of the tokens. And then I'll show you various different things you can do with this bot. Want to make real money with coding? I share high-signal insights on careers, monetization, and leverage in my free newsletter. Join here and get my guide How to Make Money With Coding instantly: https://techwithtim.net/newsletter 🎞 Video Resources 🎞 Code in this Video: https://github.com/techwithtim/Python-Discord-Bot/tree/main Discord Developer Account: https://discord.com/developers/applications/ Discord Py Docs: https://discordpy.readthedocs.io/en/stable/ ⏳ Timestamps ⏳ 00:00 | Discord Bot Demo 01:49 | Discord.py Docs 02:54 | Code Setup 05:39 | Discord Bot Configuration 08:09 | Intents 10:06 | Installing the Bot 13:09 | Discord.py Setup 17:54 | Handling Events 25:19 | Adding Commands 26:41 | Assigning & Removing Roles 35:09 | Sending a DM 36:05 | Replying 37:04 | Poll/Embed & Reactions 39:48 | Deploying the Bot (Render) Hashtags #Discord #Python #Bots

Top Comments (10)

@TechWithTim 2025-04-22

👉 Try Junie, smart coding agent: https://jb.gg/try-junie Download PyCharm and use it for free forever with one month of Pro included: https://www.jetbrains.com/pycharm/

18 11 replies
@Hello_-_-_-_ 2025-04-23

Great timing and video. Was just making a bot for the first time today on discord lol

23
@just_nothing-0101 2025-04-22

I was just trying to learn how to build a discord bot using python days ago and you appeared today! Thanks sir

34
@quedoom 2026-01-19

Instead of render, you could also buy a raspberry pi and run it on there. That's what I'm going to do! Great tutorial!

2
@bazbrad 2025-07-18

Thank bro! I just built a test bot and it works great, now im going to build one specifically for my tinned fish fan discord!

2
@angaramessi-p1f 2025-07-24

I watch your videos since 2019.Your videos are better than everybody who makes Python videos.Thank you very much u beatiful angel.

0
@MikoskarJakowski 2026-05-17

Amazing tutorial to showcase the discord library! But I think that using an array for the swear word censoring would be a better implementation. Great Vid. 😁

0
@lone_cloud319 2025-09-20

Understood everything easily, thanks for the tutorial!

0
@swordlightningg 2025-06-17

Awesome video, helped me understand the basics of discord library

0
@xd3athskn1ghtx 2025-07-24

Amazing tutorial. Thanks so much, this got me super excited to create my own bot!

0

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot