Vebot 4.0 Verbot Community
Home | About Us | Products Overview | Verbot Standard Edition | Verbots Online | Downloads | Community | Wiki | SDK
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Specific Greetings for Holidays

 
Post new topic   Reply to topic    Verbots Forum Index -> Scripting
View previous topic :: View next topic  
Author Message
zetanton
NewBot
NewBot


Joined: 23 Oct 2009
Posts: 1

PostPosted: Mon Oct 26, 2009 4:04 am    Post subject: Specific Greetings for Holidays Reply with quote

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
View user's profile Send private message
Somniator
MightyBot
MightyBot


Joined: 17 Jul 2006
Posts: 173

PostPosted: Mon Oct 26, 2009 7:19 am    Post subject: Reply with quote

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
View user's profile Send private message
POWERPLAY07
PowerBot
PowerBot


Joined: 27 Feb 2009
Posts: 127
Location: Adelaide, South Australia

PostPosted: Sun Nov 01, 2009 1:02 am    Post subject: Reply with quote

Hi Sominator

Thats a good idea holiday greetings, thanks for explaining how to do it, for all users


Seeya Wink Cool Idea
Tom
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Verbots Forum Index -> Scripting All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum