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.

2 second answer [ solved ]

Help for those learning Tcl or writing their own scripts.
w
whittinghamj
Op
Posts: 103
Joined: Sun May 21, 2006 4:50 pm

Post by whittinghamj »

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.

Code: Select all

.chanset #channel +inc
thats all you need buddy should work just fine.
N
NTHosts
Op
Posts: 100
Joined: Mon Oct 10, 2005 9:57 pm
Location: UK
Contact:

err

Post by NTHosts »

What happend to the 'sajoin' bit, thats the bit that caught my eye. ;)
www.NT-Hosts.Net - More than just a host
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

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
N
NTHosts
Op
Posts: 100
Joined: Mon Oct 10, 2005 9:57 pm
Location: UK
Contact:

perfect

Post by NTHosts »

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 :D
www.NT-Hosts.Net - More than just a host
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

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)
N
NTHosts
Op
Posts: 100
Joined: Mon Oct 10, 2005 9:57 pm
Location: UK
Contact:

erm

Post by NTHosts »

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
www.NT-Hosts.Net - More than just a host
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Re: erm

Post by DragnLord »

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).
N
NTHosts
Op
Posts: 100
Joined: Mon Oct 10, 2005 9:57 pm
Location: UK
Contact:

hehe

Post by NTHosts »

I see my fault.. Thanks for yah help dood :D
www.NT-Hosts.Net - More than just a host
Post Reply