Manual:Verbot Editor Internal Variables
From VerbotWiki
| Table of contents |
Internal Variables
Assuming you've read the Variables section, you already know that Variables are used to capture information from within an Input as well as display that captured information later. Internal Variables are built in functions which can be used to prevent information within a response.
Pardon me do you have the time? (Time Variables)
The Date and Time Internal Variables allow the Verbot to present the time, date, year, and more within a response. Listed here are the different Time Variable's and a description of what they present:
- [_time]
- [_time24]
- [_date]
- [_month]
- [_dayofmonth]
- [_year]
- [_dayofweek]
|
Tag: (Used within Verbot Output)
|
Output Format:
|
Example Output:
|
Example Verbot Output:
|
|
<a name="_time"></a>[_time]
|
h:mm tt
|
The time is [_time]
|
"The time is 4:20 PM"
|
|
<a name="_time24"></a>[_time24]
|
HH:mm
|
Wake up soldier it's [_time24]
|
"Wake up soldier it's 16:20"
|
|
<a name="_date"></a>[_date]
|
MMM. d, yyyy
|
Today is [_date]
|
"Today is Jan. 3, 2010"
|
|
<a name="_month"></a>[_month]
|
MMMM
|
Another beautiful [_month]
|
"Another beautiful January"
|
|
<a name="_dayofmonth"></a>[_dayofmonth]
|
d
|
Today is day [_dayofmonth]
|
"Today is day 3"
|
|
<a name="_year"></a>[_year]
|
yyyy
|
The year is [_year]
|
"The year is 2010"
|
|
<a name="_dayofweek"></a>[_dayofweek]
|
dddd
|
Today is [_dayofweek]
|
"Today is Saturday"
|
What did I say? You said [_input]!
[_input]
<a name="_input"></a>[_input]
Prints last User Input within the Verbot response. This tag can also be used to save User Input to other variables.
Rule Name: What did I say?
Input: What did I say?
Output: You said: [_input]
Ex.
Sample Conversation
User Input: "What did I say?"
Verbot Output: "You said: What did I say?"
What did I say? You said [_lastinput].
[_lastinput]
Prints User's last input before the current input.
Ex.
Rule Name: What did I say?
Input: What did I say?
Output: You said: [_lastinput]
Sample Conversation
User Input: "How old are you?"
Verbot Output: "I'm 5 years old."
User Input: "What did I say?"
Verbot Output: "You said: How old are you?"
What did you say? I said [_lastoutput]!
[_lastoutput]
Prints last Verbot response.
Ex.
Rule Name: What did you say?
Input: What did you say?
Output: I said: [_lastoutput]
Sample Conversation
User Input: "How old are you?"
Verbot Output: "I'm 5 years old."
User Input: "What did you say?"
Verbot Output: "I said: I'm 5 years old."

