Answer the question
In order to leave comments, you need to log in
PHP. How to implement "admin mode" in a chat bot?
Good afternoon. I'm trying to implement "admin mode" in a chat bot.
The chat bot is implemented on the simplest php and js.
The scheme is something like this:
-First I log in with the bot (it asks for a password)
-And then IF the password is correct, then I enter the so-called admin mode. That is, the rest of the script, as it were, freezes, and I work inside this cycle, as it were, until I write Exit, for example.
I tried to experiment with do while, but somehow unsuccessfully.
Any ideas comrades?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question