C
C
CeYummy2020-06-17 19:59:56
Python
CeYummy, 2020-06-17 19:59:56

How to find out how many servers have discord python bot?

I need to calculate how many servers my discord bot, written in the Python programming language, sits on. The library is discord.py.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-06-18
@Alexandre888

if message.content.startswith('^botservers'):
  await client.send_message(message.channel, "Количество серверов, на которых я есть: " + str(len(client.servers)) + " servers!")

@client.command(pass_context=True)
async def botservers(ctx):
    await client.say("Количество серверов, на которых я есть: " + str(len(client.servers)) + " servers")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question