bot discord python

Do you want to know the details about “bot discord python”. If yes, you’re in the correct tutorial.

bot discord python

await self.change_presence(activity = discord.Game("<inser text>")) 
import discord
from discord.ext import commands

client = commands.Bot(command_prefix=".")

async def on_ready():
import discord

class MyClient(discord.Client):
    async def on_ready(self):
        print('Logged on as', self.user)

    async def on_message(self, message):
        # don't respond to ourselves
        if == self.user:

        if message.content == 'ping':

client = MyClient()'token')

Final Thoughts

I hope this post helps you to know about “bot discord python”. If you have any queries regarding this post please let us know via the comment section. Share this post with your friends and family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment