Answers for "self bot discord.py"

1

discord self bot python

#Discord self bot python:

from discord.ext import commands

bot = commands.Bot(">>>", self_bot=True)

@bot.event
async def on_ready():
    print("Bot presence t u r n e d on ( ͡° ͜ʖ ͡°)")

@bot.command()
async def test(ctx):
    await ctx.send("oof")

bot.run("my token", bot=False)
Posted by: Guest on July-09-2021

Python Answers by Framework

Browse Popular Code Answers by Language