| View previous topic :: View next topic |
| Author |
Message |
zetanton NewBot

Joined: 23 Oct 2009 Posts: 1
|
Posted: Mon Oct 26, 2009 4:04 am Post subject: Specific Greetings for Holidays |
|
|
Hello to all,
I am new to Verbots but find the possibilities very promising. I was wondering if anyone has found, or has an idea, how to make your verbot give a specific greeting on startup based on the date. for example, Saying, " Happy Halloween" on October 31. |
|
| Back to top |
|
 |
Somniator MightyBot

Joined: 17 Jul 2006 Posts: 173
|
Posted: Mon Oct 26, 2009 7:19 am Post subject: |
|
|
In your knowledgebase is a rule called _startup.
Open the rule and add a new output text:
Happy Halloween!
In the condition line write:
| Code: | | vars["_dayofmonth"]=="31" && vars["_month"]=="October" |
In the same way you can insert other special greeting outputs for Christmas, new year and so on.
Finally I would insert a condition in the standard output of _startup that prevents a reaction when other outputs should fire. This "exclusion condition" looks like that:
| Code: | | (vars["_dayofmonth"]!="31" && (vars["_month"]!="October") && (vars["_dayofmonth"]!="1" && (vars["_month"]!="January") && (vars["_dayofmonth"]!="24" && (vars["_month"]!="December") |
... and so on. |
|
| Back to top |
|
 |
POWERPLAY07 PowerBot

Joined: 27 Feb 2009 Posts: 127 Location: Adelaide, South Australia
|
Posted: Sun Nov 01, 2009 1:02 am Post subject: |
|
|
Hi Sominator
Thats a good idea holiday greetings, thanks for explaining how to do it, for all users
Seeya
Tom |
|
| Back to top |
|
 |
|