Code a Discord Bot with Python - Host for Free in the Cloud

Code a Discord Bot with Python – Host for Free in the Cloud

Learn how to code a Discord bot using Python and host it for free in the cloud using Along the way, you will learn to use’s built-in database and create a Discord bot that uses webhooks to connect with GitHub.

This course was developed by Beau Carnes.

🔗 Online code editor:
🔗 Discord Home Page:
🔗 Discord Developer Portal:

💻 Python server code for bot:
💻 Full code on

⭐️ Course Contents ⭐️
⌨️ (00:00) Introduction
⌨️ (01:18) Creating a Discord Server
⌨️ (01:52) Creating a Bot User
⌨️ (06:05) Starting a Project in
⌨️ (09:33) Coding a Basic Discord Bot
⌨️ (20:14) Improving the Bot
⌨️ (33:35) Using the Database to Store Bot Settings
⌨️ (56:09) Testing the Bot
⌨️ (58:42) Creating a Web Server for the Bot
⌨️ (1:03:36) Connecting Uptime Robot So Bot Runs Continuously
⌨️ (1:05:21) Creating a GitHub Discord Bot Using Webhooks

Special thanks to for providing a grant that made this course possible.

Learn to code for free and get a developer job:

Read hundreds of articles on programming:

And subscribe for new videos on technology every day:

49 thoughts on “Code a Discord Bot with Python – Host for Free in the Cloud

  1. I would really appreciate if you guys could extend this with steps on how to use the VoiceChannel functions for the Discord Bot.
    Like let the bot enter a voice channel and play a sound or use TextToSpeech to greet someone.

  2. Great video always been interested in this, I do recommend that you preview the functions available in the Discord library before jumping into the code. It will clear up some confusion in the beginning.

  3. Hi, i have a problem, when i write import discord at the beginning it doesnt download the things it should and it says theres a bad input in line 1, pls help

    The official documentation is sooo bad and everything in the internet is about the old version of the discord API which is completely different.

  5. The keep alive bit so you dont have to type it:

    from flask import Flask
    from threading import Thread

    app = Flask('')

    def home():
    return"Hello. I am alive!"

    def run() ='', port = 8080)

    def keep_alive():
    t = Thread(target = run)

  6. lol I built a really simple bot (repeats what you say) ~5 hours ago and now they released a tutorial about it. Is YT recommending personalised ideas to YouTubers or something?

  7. Soooo… the server I hang out is normally never (with seriousness) toxic. However… Knowing this crew… I'm sure that allowing them to add their own words of 'encouragement' is really really going to turn out to be hilariously not encouraging. haha.

Leave a Reply

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