Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- todayd = Date.today()
- month = 12;
- day = 25;
- if todayd.mon() == month && todayd.day == day
- command( format( "say ![bc03]Merry ![c04]Christmas!![o]" ) )
- return XCHAT_EAT_ALL
- elsif todayd.mon() >= month && todayd.day > day
- days_to_christmas = Date.parse("#{month}/#{day}/#{todayd.year + 1}") - todayd
- else
- days_to_christmas = Date.parse("#{month}/#{day}/#{todayd.year}") - todayd
- end
- command( format("say @#{triggerUser}: It is ![bc04]#{days_to_christmas}![bc] days until Christmas!"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement