**This website will be shutdown permanently soon**

This website and apps are for sale. Only serious offers will be considered. Contact [email protected]

** Server is current under maintenance, any changes will be lost **

Bot Libre Forum : run a script in a greeting

RE: run a script in a greeting

durch admin gepostet Oct 4 2018, 9:17

To run code in a greeting there are 2 options, use a Template, or use a redirect.

For example, for a Template you can use something like:

Template("{var hour = Date.get(Date.date(), #hour); if (hour < 10) { "Good morning." } else if (hour > 18) { "Good evening." } else { "Good day." } }")

For a redirect, you use a Template in your greeting that does a redirect to a response that is handled by a script.

Template("{ redirect("script_greeting") }")


Id: 23885490
Gepostet: Oct 4 2018, 9:17
Antworten: 0
Ansichten: 1891, heute: 3, Woche: 6, Monat: 14
0 0 0.0/5