> do have one for question though. Is it possible to get it to say something different depending on what the time of day it is?
Sure, there are several ways of doing that, depending on what you want to do.
For one, if you want a custom sentence, either write multiple handlers (e.g. on doMorning(), doAfternoon(), and doEvening()), then call them separately from the idle handler (or cron), or you could add logic to the 'sayHi()' handler, like:
<pre class=command>on sayHi()
-- this returns a number (0 - 23) indicating the current hour:
set currentHour to hours of (get current date)
if currentHour < 12 then
say "Good morning"
else if currentHour < 17 then
say "Good afternoon"
else
say "Good evening"
end if
end sayHi</pre>