egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Channel announce on !trigger for pisg/eggdrop

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Sz
Voice


Joined: 04 Dec 2007
Posts: 1

PostPosted: Tue Dec 04, 2007 6:16 am    Post subject: Channel announce on !trigger for pisg/eggdrop Reply with quote

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
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Jan 03, 2008 6:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Thu Jan 03, 2008 6:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber