T
T
the_extreames2018-09-22 22:35:25
Python
the_extreames, 2018-09-22 22:35:25

How to make the bot respond only to the admin?

How to make the bot perform an action, let's say /kick only from the admin, and tell ordinary users that you do not have enough rights.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Michael Galyuk, 2018-09-22
@robux

You need to define the user:
1) by account id
2) by IP from which the request is made
3) ask to enter [name and] password.
It is clear that these parameters must be set in the bot in advance so that the bot knows how to distinguish an admin user from a regular user.

T
the_extreames, 2018-09-23
@the_extreames

Michael Galyuk , but how to make it perform the action of the /kick command, only to a person with a certain ID?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question