| View previous topic :: View next topic |
| Author |
Message |
Sz Voice
Joined: 04 Dec 2007 Posts: 1
|
Posted: Tue Dec 04, 2007 6:16 am Post subject: Channel announce on !trigger for pisg/eggdrop |
|
|
I've been messing around with some TCL guides and manuals, but I'm still a bit in the beginner's area with this..
I got a eggdrop one a few channels - It's logging files down which I got pisg to read and handle every 10 minutes - However, while all this is automatic, I'm looking for a way for people to do !stats on a channel, where the bot would link them to the stats page - This in itself is easy enough to make, but I need it to be channel specific.
I got pisg creating for channel #Channel1, #Channel2 and #Channel3.
So what I'd like to have is so that if a person writes !stats in #Channel1, it posts a link for http://site.com/ircstats/Channel1.html, and if a guy in #Channel3 writes !stats, it will post a http://si../ircstats/Channel3.html there!
So yeah, that's my problem! |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Thu Jan 03, 2008 6:01 pm Post subject: |
|
|
Search the Tcl Archive using "pisg" as your keyword. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Thu Jan 03, 2008 6:35 pm Post subject: |
|
|
| Code: |
bind pub - !trigger proc:trigger
proc proc:trigger {n u h c t} {
if {$c == "#channel1"} {
puthelp "PRIVMSG $c :Whatever you want to say on #channel 1"
} elseif {$c == "#channel2"} {
puthelp "PRIVMSG $c :Whatever you want to say on #channel2"
} elseif {$c == "#channel3"} {
#etc
} else {
#default/optional
}
}
|
Something like that.. |
|
| Back to top |
|
 |
|