Regardless of my message, the bot would first write the template. How?

  • 0
    Let's say this is some kind of bot that communicates with you online in private messages and what method can be used to make sure that, regardless of the user's message, the bot first displays a template like "Alexander handsome is real" and only after this template the bot would started reading commands and answering hi etc.

    Probably a lot of water, I'll tell you with an example:

    (User): Hello Bot
    (Bot): Alexander the handsome is real
    (User): Hello Bot
    (Bot): Hello, how are you?

    For more details please, if not difficult. I'm just a kettle. Thanks for your understanding.
    JavaScript Adeline Norman, Jul 4, 2019

  • 1 Answers
  • 0
    As an option for a start.

    Anastasia Robbins

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!