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 

2 second answer [ solved ]
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Sun Jun 04, 2006 12:19 pm    Post subject: Reply with quote

works fine for me

here is the working code

Code:

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:

.chanset #channel +inc


thats all you need buddy should work just fine.
Back to top
View user's profile Send private message
NTHosts
Op


Joined: 10 Oct 2005
Posts: 100
Location: UK

PostPosted: Sun Jun 04, 2006 7:34 pm    Post subject: err Reply with quote

What happend to the 'sajoin' bit, thats the bit that caught my eye. Wink
_________________
www.NT-Hosts.Net - More than just a host
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Sun Jun 04, 2006 8:08 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
NTHosts
Op


Joined: 10 Oct 2005
Posts: 100
Location: UK

PostPosted: Mon Jun 05, 2006 4:57 pm    Post subject: perfect Reply with quote

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 Very Happy
_________________
www.NT-Hosts.Net - More than just a host
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Mon Jun 05, 2006 5:13 pm    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
NTHosts
Op


Joined: 10 Oct 2005
Posts: 100
Location: UK

PostPosted: Mon Jun 05, 2006 5:30 pm    Post subject: erm Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Mon Jun 05, 2006 5:34 pm    Post subject: Re: erm Reply with quote

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).
Back to top
View user's profile Send private message
NTHosts
Op


Joined: 10 Oct 2005
Posts: 100
Location: UK

PostPosted: Mon Jun 05, 2006 6:46 pm    Post subject: hehe Reply with quote

I see my fault.. Thanks for yah help dood Very Happy
_________________
www.NT-Hosts.Net - More than just a host
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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