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.

Channel announce on !trigger for pisg/eggdrop

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
S
Sz
Voice
Posts: 1
Joined: Tue Dec 04, 2007 6:07 am

Channel announce on !trigger for pisg/eggdrop

Post by Sz »

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!
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Search the Tcl Archive using "pisg" as your keyword.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Code: Select all

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..
Post Reply