Z
Z
Zef1rich2020-07-01 16:42:56
Python
Zef1rich, 2020-07-01 16:42:56

How to make 2 owners for a bot (without using for or if)?

I want to create a python bot with a friend, but we don’t know how to make two owners without using for or if (because I’m too lazy)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2020-07-01
@anerev

Well, I don’t know how without if, of course. But the easiest way is to create a set () set and add the user ID to it, and check each time if there is a user in the set

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question