Answer the question
In order to leave comments, you need to log in
How to do something to the console displayed messages about the launch of the bot?
Hello, I need something when I run a bot in Python, messages are displayed in the console. I can't think of a way to do all this.
Thus everything works without errors
import discord
client = discord.Client()
async def on_ready():
print('Бот успешно запущен!')
client.run('')
from discord.ext import commands
bot = commands.Bot(command_prefix='!')
@bot.command()
async def test(ctx):
print('Бот успешно запущен!')
bot.run('')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question