Pobierz otwarty kod źródłowy bota Libre ogólny wydanie i zainstaluj bota Libre na własny serwer
Bot Libre Forum : run a script in a greeting

RE: run a script in a greeting

w admin wysłany Oct 10 2018, 13:28

So a "redirect" send the redirect text as a message to the bot and returns the response.

For example if a bot had a script that had the pattern "hello" and returned "hello world", then in a Template redirect("hello") would return "hello world".

In my example "script_greeting" was an example message, you need a script that accepts this pattern and return your desired response. If you have no response for "script_greeting", then your bot would use its default response.


Identyfikator: 24327957
Wysłany: Oct 10 2018, 13:28
Odpowiedzi: 0
Widok: 3125, dziś: 8, tydzień: 18, miesiąc: 8
0 0 0.0/5