| View previous topic :: View next topic |
| Author |
Message |
pipo Voice
Joined: 18 Nov 2006 Posts: 16
|
Posted: Sat Nov 18, 2006 3:04 pm Post subject: change echo line |
|
|
When a new upload is announce on my sitechannel, my bot is echo-ing it to my friends channel.
Now I want to change the line that the bot is echo-ing
Sitebot announce like this:
[NEW][SECTION] New Upload: releasename.group by user
I want to echo it like this:
[NEW] New Upload: releasename.group by user [SECTION]
The code I use:
| Code: |
bind pubm - {#channel1 [NEW]*] echo
proc echo {nick uhost handle channel text} {
if {($nick == "nick")} {
putserv "privmsg #channel2 :$text"
}
}
|
Thanks |
|
| Back to top |
|
 |
Justdabomb2 Voice
Joined: 29 Sep 2006 Posts: 37 Location: United States of America
|
Posted: Sun Nov 19, 2006 9:47 pm Post subject: |
|
|
what is up with this?
bind pubm - {#channel1 [NEW]*] echo _________________ Yeah! |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Nov 19, 2006 10:59 pm Post subject: |
|
|
| Code: | bind pubm - {#channel1 [NEW]*} echo
proc echo {nick uhost handle channel text} {
if {($nick == "nick")} {
set text [regsub {^\[NEW\]} $text ""]
set sect [lindex [split $text] 0]
set text [join [lrange [split $text] 1 end]]
putserv "privmsg #channel2 :\[NEW\] $text $sect"
}
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
pipo Voice
Joined: 18 Nov 2006 Posts: 16
|
Posted: Mon Dec 25, 2006 10:37 am Post subject: |
|
|
Ok that works, thanks
Now is it possible to echo new uploads that starts for example with VA in the announce line to a second channel?
example sitebot announce:
[NEW][SECTION] New Upload: releasename.group by user
Gets echo-ed to #channel2 only
[NEW][SECTION] New Upload: VA.releasename.group by user
gets echo-ed to #channel2 and #channel3
Thanks |
|
| Back to top |
|
 |
|