#подключение
@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' )