Honestly the most pointless script I have ever made (which is saying something). It lets people type !cotd (even in query ;D) to see the "Challenge of the day." type /cotd to set the challenge of the day. By the way, the * wildcard is so people with color scripts can still use it. It's not that significant though.
on *:text:*!cotd:?:{
if (%cotd == $null) || if (!%cotd) {
notice $nick No challenge today, sorry :(
}
else {
notice $nick Challenge of the day: %cotd
echo -a 2Cotd sent to $nick $+ .
}
}
alias cotd {
set %cotd $$?=Challenge of the day:
}
You text event can be:
on *:text:!cotd:?:{
notice $nick $iif(!%cotd,No challenge today $+ $chr(44) sorry,Challenge of the day: %cotd)
echo -a 2Cotd sent to $nick $+ .
}
Which saves about 20 bytes. Also, you should always be aware that such script runs the risk of being spammed or flooded. You should implement a trigger control just to be on the safe side.