V
V
ValeraShprot2020-02-26 02:19:19
Python
ValeraShprot, 2020-02-26 02:19:19

How to make the User id appear in the admins variable after writing the !admin command?

I want the user id to appear in the admins variable, if the command! admin * id is written by the user from the variable, please help me implement it.

admins = [1, 2, 3] # Numeric admin IDs

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2020-02-26
@anerev

if "!админ" in text and 1+1 == 2:
    admins.append(int(text.replace('!админ', '')))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question