升级到我们的 Platinum 服务并让我们建立您的机器人给你
Bot Libre Forum : run a script in a greeting

RE: run a script in a greeting

通过 admin 发布 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
发布: Oct 4 2018, 9:17
答复: 0
的风景: 1021, 今天: 3, 周: 7, 一个月: 38
我敢肯定
标志后的进攻,或者在违反规则网站