This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

script sends to the channel a command

Old posts that have not been replied to for several years.
Locked
s
st33l
Voice
Posts: 4
Joined: Thu Jun 23, 2005 6:16 am

script sends to the channel a command

Post by st33l »

I need script which in 00:00 hours will send a command !off to the channel, and at 10:00 will send a command !on.
10x
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

set commandchan "#channel"
bind time - * send:command

proc send:command {min hour args} {
 if {$min == 00 && $hour == 10} {
  puthelp "PRIVMSG $::commandchan :!on"
 } elseif {$min == 00 && $hour == 00} {
  puthelp "PRIVMSG $::commandchan :!off"
 }
}
Locked