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.
Help for those learning Tcl or writing their own scripts.
whittinghamj
Op
Posts: 103 Joined: Sun May 21, 2006 4:50 pm
Post
by whittinghamj » Sun Jun 04, 2006 12:19 pm
works fine for me
here is the working code
Code: Select all
bind pub o|v !sections pub:sections
setudef flag inc
proc pub:sections {nick uhost hand chan arg} {
set chan [string tolower $chan]
if {[channel get $chan inc]} {
putserv "PRIVMSG $chan :what ever you waht to say here"
}
}
putlog "!SECTIONS"
then in the console / idx window.
thats all you need buddy should work just fine.
NTHosts
Op
Posts: 100 Joined: Mon Oct 10, 2005 9:57 pm
Location: UK
Contact:
Post
by NTHosts » Sun Jun 04, 2006 7:34 pm
What happend to the 'sajoin' bit, thats the bit that caught my eye.
DragnLord
Owner
Posts: 711 Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA
Post
by DragnLord » Sun Jun 04, 2006 8:08 pm
replace
putserv "PRIVMSG $chan :what ever you waht to say here"
with
putserv "sajoin $nick #help"
#help is used as a reference only, any channel here will work
NTHosts
Op
Posts: 100 Joined: Mon Oct 10, 2005 9:57 pm
Location: UK
Contact:
Post
by NTHosts » Mon Jun 05, 2006 4:57 pm
Works perfect thanks..
One more thing though, how can i set this so only users with a certain flag on my bot can use it 2 enter a channel ?
Thing is i need 2 limit a channels access to only a few users but i don't wanna use keys or whatever, so if this could be done would be great
DragnLord
Owner
Posts: 711 Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA
Post
by DragnLord » Mon Jun 05, 2006 5:13 pm
change the bind flags
bind pub o|o !cmd proc
the flags in that example requires the requester to either have global ops or ops on the channel the request is made on (this means attribute flags in the bot userfile)
NTHosts
Op
Posts: 100 Joined: Mon Oct 10, 2005 9:57 pm
Location: UK
Contact:
Post
by NTHosts » Mon Jun 05, 2006 5:30 pm
I just tried to set it to
bind pub o|d
then gave the user +d on the bot, didnt' work though, am I doing it right ? :S
DragnLord
Owner
Posts: 711 Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA
Post
by DragnLord » Mon Jun 05, 2006 5:34 pm
NTHosts wrote: I just tried to set it to
bind pub o|d
then gave the user +d on the bot, didnt' work though, am I doing it right ? :S
You need to learn about eggdrop's default flags.
.help whois
Eggdrop allows for user-specified flags using 0-9 and A-Z (uppercase).
NTHosts
Op
Posts: 100 Joined: Mon Oct 10, 2005 9:57 pm
Location: UK
Contact:
Post
by NTHosts » Mon Jun 05, 2006 6:46 pm
I see my fault.. Thanks for yah help dood