November 20, 2022

How to Build Your Own Discord Bots For Free in 5 Minutes

Think Discord is just a chat app? Think again! With these amazing tools and tutorials, you'll be able to build bots for your Discord server in 5 minutes! It doesn't matter if you've never coded before, now there's no excuse for not having a fully automated and customized Discord server.


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)


Verify URL -[Client ID]&permissions=[Permission Integer]&scope=bot


import discord

import os

from keep_alive import keep_alive

client = discord.Client()


async def on_ready():

    print('We have logged in as {0.user}'.format(client))


async def on_message(message):

    if == client.user:


    if message.content.startswith('ping'):



Written by Sushanth, personal technology columnist and founder of Logical Bee. You can follow him on the social web or sign up for the email newsletter for your daily dose of how-to guides and video tutorials.