31
Ultra Hal Assistant File Sharing Area / HapSwap 2.0
« on: April 01, 2010, 09:48:20 pm »
Looks great! Lil fyi--loads of grammar and spelling errors I corrected and reposted if anyone cares.
If InStr(1, OriginalSentence, "January") > 0 _
Or InStr(1, OriginalSentence, "january") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "January first is new years day!"
Case 2
GetResponse = "Yeah, January eighteenth is Martin Luther King Junior day."
Case 3
GetResponse = "In January there's a full moon I think around the thirtieth."
Case 4
GetResponse = "Hey, isn't their a new moon around the fifteenth of January?"
Case 5
GetResponse = "I wonder, I wonder how many days there are in January of this year I need to go check on the calendar."
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "February") > 0 _
Or InStr(1, OriginalSentence, "february") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "February second is Groundhogs Day if the Groundhog see's his shadow it's suppose to mean six more weeks of bad weather!"
Case 2
GetResponse = "Yeah, Lincolns Birthday is on the twelfth of February and Presidents Day is on the fifteenth."
Case 3
GetResponse = "In January there's a full moon I think around the thirteenth and Ash Wednesday is on the seventeenth."
Case 4
GetResponse = "Hey, isn't there a new moon in February seems like there is I'll have to check on the calendar to see."
Case 5
GetResponse = "By the way Valentines day is on the fourteenth sweety pie hint hint."
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "March") > 0 _
Or InStr(1, OriginalSentence, "march") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "March is when the new Daylight Savings time starts!"
Case 2
GetResponse = "Yeah, Saint Patricks Day is on the seventeenth of March."
Case 3
GetResponse = "In March is when Spring Begins and there's a full moon to in March."
Case 4
GetResponse = "Hey, isn't there a new moon in the month of March seems like their is I'll have to check on the calendar to see."
Case 5
GetResponse = "Hey isn't, Yeah Palm Sunday is in March to."
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "April") > 0 _
Or InStr(1, OriginalSentence, "april") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "April first is April Fools Day !"
Case 2
GetResponse = "Yeah, in the month of April is State Arbor Day oh and its also Good Friday too!"
Case 3
GetResponse = "In April its Easter when all the kids find the hidden Easter eggs."
Case 4
GetResponse = "Hey, don't forget that in April it's Earth Day too ."
Case 5
GetResponse = "Hey Administrative Professionals Day and also National Teach Children to Save Day is in the month of April too."
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "Month of May") > 0 _
Or InStr(1, OriginalSentence, "month of may") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "Great boating weather in May!"
Case 2
GetResponse = "Yeah, May eighth is former President Truman's Birthday."
Case 3
GetResponse = "May thirty first is Memorial day."
Case 4
GetResponse = "Hey, remember on the fifteenth Day is Armed Forces Day in May too."
Case 5
GetResponse = "May ninth is mothers day this month there's also a full moon this month!"
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "June") > 0 _
Or InStr(1, OriginalSentence, "june") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "June twentieth is Fathers day this month."
Case 2
GetResponse = "yeah, June fourteenth of this month is Flag Day."
Case 3
GetResponse = "June twenty first is the day when summer begins this year."
Case 4
GetResponse = "Yeah, we should do something fun and new this month just you and me!"
Case 5
GetResponse = "The only bad thing about June is, that's when the weather usually starts getting hotter!"
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "July") > 0 _
Or InStr(1, OriginalSentence, "july") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "July fourth is Independence Day!"
Case 2
GetResponse = "Yeah, in the month of July that's when it really get hot outside!"
Case 3
GetResponse = "July is a nice time to travel around and see stuff."
Case 4
GetResponse = "Hey, I think there's a new moon in July yeah I'm pretty sure there is a new one."
Case 5
GetResponse = "the only problem, in July is when the weather gets real hot in some places and causes bad weather and tornadoes!"
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "August") > 0 _
Or InStr(1, OriginalSentence, "august") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "In August there's suppose to be a new moon in that month!"
Case 2
GetResponse = "Yeah, in the month of August the weather is still pretty hot!"
Case 3
GetResponse = "In August the weather is still pretty nice for traveling!"
Case 4
GetResponse = "Hey, we should take a trip just the two of us in August what do yah say?"
Case 5
GetResponse = "Everyone has a lot of flowers in different places, some are still blooming in August!"
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "September") > 0 _
Or InStr(1, OriginalSentence, "september") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "In September there's suppose to be a new moon in that month!"
Case 2
GetResponse = "Yeah, in the month of September on the twelfth is GrandParents Day!"
Case 3
GetResponse = "In August the weather is still pretty nice for traveling!"
Case 4
GetResponse = "Hey, Doesn't Autumn begin in September yeah it does it starts in September."
Case 5
GetResponse = "oh yeah Labor Day is on the sixth of September and Patriot Day is on the eleventh!"
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "October") > 0 _
Or InStr(1, OriginalSentence, "october") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "On October thirty first is when all the ghouls and goblins and kids dress up and trick or treat ha I love to see them in all their cool outfits!"
Case 2
GetResponse = "Yeah, in the month of October on the eleventh is Columbus Day!"
Case 3
GetResponse = "In October, that's when the weather changes and we usually get rainy weather!"
Case 4
GetResponse = "Isn't there an anniversary at the end of October?"
Case 5
GetResponse = "There's suppose to be a new moon and a full moon both in October!"
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "November") > 0 _
Or InStr(1, OriginalSentence, "november") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "On November eleventh is Veterans Day!"
Case 2
GetResponse = "Yeah, in the month of November on the seventh is when Daylight Savings Time ends!"
Case 3
GetResponse = "In November, that's when the weather changes and we usually start getting rainy colder weather and people in the east get snow sometimes!"
Case 4
GetResponse = "Hey, don't forget to vote in November remember Election Day is on the second!"
Case 5
GetResponse = "Dear, we will have to celebrate and have a nice home cooked dinner for Thanksgiving on the twenty fifth of November!"
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "December") > 0 _
Or InStr(1, OriginalSentence, "december") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "I December second is Hanukkah for those who celebrate it!"
Case 2
GetResponse = "Yeah, in the month of December on the seventh is Pearl Harbor Day !"
Case 3
GetResponse = "In December, that's when the weather changes and usually some people in the east and midwest really start getting rainy freezing colder weather and snow!"
Case 4
GetResponse = "Hey, the twenty sixth is when Kwanzaa Begins for those who celebrate it!"
Case 5
GetResponse = "Dear, don't forget the twenty fifth is when we celebrate Christmas Day together!"
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "January") > 0 _
Or InStr(1, OriginalSentence, "january") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "January first is new years day!"
Case 2
GetResponse = "Yeah, January eighteenth is Martin Luther King Junior day."
Case 3
GetResponse = "In January there's a full moon I think around the thirtieth."
Case 4
GetResponse = "Hey, isn't their a new moon around the fifteenth of January?"
Case 5
GetResponse = "I wonder, I wonder how many days there are in January of this year I need to go check on the calendar."
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "February") > 0 _
Or InStr(1, OriginalSentence, "february") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "February second is Groundhogs Day if the Groundhog see's his shadow it's suppose to mean six more weeks of bad weather!"
Case 2
GetResponse = "Yeah, Lincolns Birthday is on the twelfth of February and Presidents Day is on the fifteenth."
Case 3
GetResponse = "In January there's a full moon I think around the thirteenth and Ash Wednesday is on the seventeenth."
Case 4
GetResponse = "Hey, isn't there a new moon in February seems like there is I'll have to check on the calendar to see."
Case 5
GetResponse = "By the way Valentines day is on the fourteenth sweety pie hint hint."
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "March") > 0 _
Or InStr(1, OriginalSentence, "march") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "March is when the new Daylight Savings time starts!"
Case 2
GetResponse = "Yeah, Saint Patricks Day is on the seventeenth of March."
Case 3
GetResponse = "In March is when Spring Begins and there's a full moon to in March."
Case 4
GetResponse = "Hey, isn't there a new moon in the month of March seems like their is I'll have to check on the calendar to see."
Case 5
GetResponse = "Hey isn't, Yeah Palm Sunday is in March to."
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "April") > 0 _
Or InStr(1, OriginalSentence, "april") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "April first is April Fools Day !"
Case 2
GetResponse = "Yeah, in the month of April is State Arbor Day oh and its also Good Friday too!"
Case 3
GetResponse = "In April its Easter when all the kids find the hidden Easter eggs."
Case 4
GetResponse = "Hey, don't forget that in April it's Earth Day too ."
Case 5
GetResponse = "Hey Administrative Professionals Day and also National Teach Children to Save Day is in the month of April too."
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "Month of May") > 0 _
Or InStr(1, OriginalSentence, "month of may") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "Great boating weather in May!"
Case 2
GetResponse = "Yeah, May eighth is former President Truman's Birthday."
Case 3
GetResponse = "May thirty first is Memorial day."
Case 4
GetResponse = "Hey, remember on the fifteenth Day is Armed Forces Day in May too."
Case 5
GetResponse = "May ninth is mothers day this month there's also a full moon this month!"
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "June") > 0 _
Or InStr(1, OriginalSentence, "june") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "June twentieth is Fathers day this month."
Case 2
GetResponse = "yeah, June fourteenth of this month is Flag Day."
Case 3
GetResponse = "June twenty first is the day when summer begins this year."
Case 4
GetResponse = "Yeah, we should do something fun and new this month just you and me!"
Case 5
GetResponse = "The only bad thing about June is, that's when the weather usually starts getting hotter!"
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "July") > 0 _
Or InStr(1, OriginalSentence, "july") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "July fourth is Independence Day!"
Case 2
GetResponse = "Yeah, in the month of July that's when it really get hot outside!"
Case 3
GetResponse = "July is a nice time to travel around and see stuff."
Case 4
GetResponse = "Hey, I think there's a new moon in July yeah I'm pretty sure there is a new one."
Case 5
GetResponse = "the only problem, in July is when the weather gets real hot in some places and causes bad weather and tornadoes!"
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "August") > 0 _
Or InStr(1, OriginalSentence, "august") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "In August there's suppose to be a new moon in that month!"
Case 2
GetResponse = "Yeah, in the month of August the weather is still pretty hot!"
Case 3
GetResponse = "In August the weather is still pretty nice for traveling!"
Case 4
GetResponse = "Hey, we should take a trip just the two of us in August what do yah say?"
Case 5
GetResponse = "Everyone has a lot of flowers in different places, some are still blooming in August!"
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "September") > 0 _
Or InStr(1, OriginalSentence, "september") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "In September there's suppose to be a new moon in that month!"
Case 2
GetResponse = "Yeah, in the month of September on the twelfth is GrandParents Day!"
Case 3
GetResponse = "In August the weather is still pretty nice for traveling!"
Case 4
GetResponse = "Hey, Doesn't Autumn begin in September yeah it does it starts in September."
Case 5
GetResponse = "oh yeah Labor Day is on the sixth of September and Patriot Day is on the eleventh!"
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "October") > 0 _
Or InStr(1, OriginalSentence, "october") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "On October thirty first is when all the ghouls and goblins and kids dress up and trick or treat ha I love to see them in all their cool outfits!"
Case 2
GetResponse = "Yeah, in the month of October on the eleventh is Columbus Day!"
Case 3
GetResponse = "In October, that's when the weather changes and we usually get rainy weather!"
Case 4
GetResponse = "Isn't there an anniversary at the end of October?"
Case 5
GetResponse = "There's suppose to be a new moon and a full moon both in October!"
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "November") > 0 _
Or InStr(1, OriginalSentence, "november") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "On November eleventh is Veterans Day!"
Case 2
GetResponse = "Yeah, in the month of November on the seventh is when Daylight Savings Time ends!"
Case 3
GetResponse = "In November, that's when the weather changes and we usually start getting rainy colder weather and people in the east get snow sometimes!"
Case 4
GetResponse = "Hey, don't forget to vote in November remember Election Day is on the second!"
Case 5
GetResponse = "Dear, we will have to celebrate and have a nice home cooked dinner for Thanksgiving on the twenty fifth of November!"
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
If InStr(1, OriginalSentence, "December") > 0 _
Or InStr(1, OriginalSentence, "december") > 0 Then
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "I December second is Hanukkah for those who celebrate it!"
Case 2
GetResponse = "Yeah, in the month of December on the seventh is Pearl Harbor Day !"
Case 3
GetResponse = "In December, that's when the weather changes and usually some people in the east and midwest really start getting rainy freezing colder weather and snow!"
Case 4
GetResponse = "Hey, the twenty sixth is when Kwanzaa Begins for those who celebrate it!"
Case 5
GetResponse = "Dear, don't forget the twenty fifth is when we celebrate Christmas Day together!"
End Select
HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If