Answer the question
In order to leave comments, you need to log in
Discord.py how to display the number of servers on which the bot is located in the status of the bot?
This code does not update the number in the bot status, but how can I do something when adding my bot to the server, the number in the bot status changes?
#подключение
@client.event
async def on_ready():
guilds = await client.fetch_guilds(limit = None).flatten()
await client.change_presence(status = discord.Status.idle, activity= discord.Activity(name=f'за {len(guilds)} серверами.', type= discord.ActivityType.watching))
print( 'Bot connected' )
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