| View previous topic :: View next topic |
| Author |
Message |
xamrex Voice
Joined: 28 Sep 2008 Posts: 13
|
Posted: Wed Nov 12, 2008 4:11 pm Post subject: Messages on select channels. |
|
|
Hi
I need a script.
Bot should every 120 mins write on my channel, and my mate channel "Hello, I am here
Can someone write me this script:D
PLEASE |
|
| Back to top |
|
 |
user

Joined: 18 Mar 2003 Posts: 1452 Location: Norway
|
Posted: Wed Nov 12, 2008 5:01 pm Post subject: |
|
|
| Code: | bind time - 00* everyHour
proc everyHour {mm hh args} {
if {[scan $hh %d]%2} return;# skip odd hours
foreach chan {#yourchan #friendschan} {
puthelp "PRIVMSG $chan :\002Hello, I am here"
}
} |
_________________ Have you ever read "The Manual"? |
|
| Back to top |
|
 |
xamrex Voice
Joined: 28 Sep 2008 Posts: 13
|
Posted: Fri Nov 14, 2008 9:31 am Post subject: |
|
|
| user wrote: | | Code: | bind time - 00* everyHour
proc everyHour {mm hh args} {
if {[scan $hh %d]%2} return;# skip odd hours
foreach chan {#yourchan #friendschan} {
puthelp "PRIVMSG $chan :\002Hello, I am here"
}
} |
|
If I change this script:
| Code: | bind time - 00* everyHour
proc everyHour {mm hh args} {
if {[scan $mm %d]%20} return;# skip odd hours
foreach chan {#yourchan #friendschan} {
puthelp "PRIVMSG $chan :\002Hello, I am here"
}
} |
Bot will write this msg every 20 mins?? |
|
| Back to top |
|
 |
user

Joined: 18 Mar 2003 Posts: 1452 Location: Norway
|
Posted: Fri Nov 14, 2008 10:05 am Post subject: |
|
|
| xamrex wrote: | | Bot will write this msg every 20 mins?? |
No... because the bind will only trigger the proc every hour (when the minutes are "00"). You need to change the bind mask to * (every minute) or ?0* (every 10 minutes) _________________ Have you ever read "The Manual"? |
|
| Back to top |
|
 |
|