[Python] How to make bot status say member count for all the servers that its in (discord.py)

Discussão em 'Python' iniciado por Stack, Agosto 7, 2025.

  1. Stack

    Stack Membro Participativo

    Sorry for the long title. I want my bot to tell me how many members that my bot is in a server with in the bot's status. In other words, I want my bot's statues to say Watching [member count] people and [server count] servers, but I don't know how. Can anyone help?

    @client.event
    async def on_ready():
    print('Potato Cat is ready :D')
    await client.change_presence(
    activity=discord.Activity(
    type=discord.ActivityType.watching,
    name=f'{len(client.guilds)} servers and {len(client.members)} people'))

    Continue reading...

Compartilhe esta Página