A
A
Andrey2021-01-09 11:33:41
Python
Andrey, 2021-01-09 11:33:41

How to make a bot that selects a chat member?

I would like to make a bot, which, for example, to the team! Deer day, will randomly select one of the already existing chat participants and save this data so that, at the command! Deer, the entire list of everyone who was randomly selected by the bot (this year, specifically) is displayed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor, 2021-01-09
@php1995

if(msg=="!хрень") {
       $res = query("SELECT * FROM `oleni` WHERE `oleni`.`олель_выбран`=true)
       print("$res")
}

exemplary algorithm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question