1
1
1nqi2021-12-23 17:47:14
Python
1nqi, 2021-12-23 17:47:14

Who can make the discord bot randomly select two people from the voice channel?

For example, the user writes the command "!rndm" to the chat, and the bot will randomly select two people from the voice channel in which the person who wrote the command sits and write their nicknames in the chat. How can I do that?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
d-sem, 2021-12-23
@d-sem

First Google result https://stackoverflow.com/questions/65703852/take-... Do
the same for the channel.

B
Bogdan Nikolenko, 2021-12-23
@ayabondid

use a loop to loop through all the people from the voice channel, adding them to the list, and then select 2 people from this list and write their nicknames

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question