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 

Bot only responds to owner, even with public commands

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
quantum0726
Voice


Joined: 03 Mar 2006
Posts: 9

PostPosted: Fri Mar 03, 2006 9:44 pm    Post subject: Bot only responds to owner, even with public commands Reply with quote

Hi, I just set up eggdrop and have been playing with some tcl scripts I found. I then decided to have a friend try to access the bot and discovered that the bot isn't listening/responding to commands from anyone but it's owner. Several of the tcl scripts I have support public commands, but the bot won't respond to any of them unless the command is sent by the owner.

I tried making a simple tcl script with the line:

bind pub -|- !rules rules_pub

and a procedure (rules_pub) that spams out some random text.

This works for the owner but not for anyone else (makes me think this is a conf file issue and not with the individual scripts).

Any ideas what I need to change for this? I want several of the scripts to be available to anyone in the channel (they are trivia and game scripts mostly).

Thanks much!
Back to top
View user's profile Send private message
Alchera
Revered One


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

PostPosted: Sat Mar 04, 2006 12:53 am    Post subject: Reply with quote

Users have to be added to the bot and scripts then check for their respective access via matchattr.

From tcl-commands.doc:
Quote:
matchattr <handle> <flags> [channel]
Returns: 1 if the specified user has the specified flags; 0 otherwise
Module: core

_________________
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
quantum0726
Voice


Joined: 03 Mar 2006
Posts: 9

PostPosted: Sun Mar 05, 2006 4:21 am    Post subject: Reply with quote

Is there any way then to make a command fully public, so that any user can access it? Or some way to add all users to the bot but only for certain commands?
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Sun Mar 05, 2006 5:34 pm    Post subject: Reply with quote

bind pub -|- !rules rules_pub <~ that's public!
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
quantum0726
Voice


Joined: 03 Mar 2006
Posts: 9

PostPosted: Sun Mar 05, 2006 5:44 pm    Post subject: Reply with quote

That is the command that I'm using, but only the owner gets a response from that command. Is there something in the conf. file that needs to be set to listen for these public commands?
Back to top
View user's profile Send private message
Alchera
Revered One


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

PostPosted: Sun Mar 05, 2006 6:58 pm    Post subject: Reply with quote

Alchera wrote:
.. scripts then check for their respective access via matchattr

Nothing to do with bot configuration files. Find an appropriate Tcl script to fit your needs.
_________________
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
Ian-Highlander
Op


Joined: 24 Sep 2001
Posts: 165
Location: Ely, Cambridgeshire

PostPosted: Mon Mar 06, 2006 7:33 am    Post subject: Reply with quote

The "rules_pub" procedure that bind is calling must have other verification somewhere in the procedure, that bind is set for ANYONE to use it, known or not. Post that procedure up.
_________________
"Insanity Takes Its Toll, Please Have Exact Change"
Back to top
View user's profile Send private message Send e-mail
quantum0726
Voice


Joined: 03 Mar 2006
Posts: 9

PostPosted: Tue Mar 07, 2006 6:19 pm    Post subject: Reply with quote

Figured out what the problem was. Turned out not to be a script error or an eggdrop error (as was ruled out earlier). My bot resides on irc.freenode.net, which does not allow private messages unless at least one of the nicks is registered. Since my bot didn't have a registered nick, it could only send a private message to the owner, which did have a registered nick. Using a Guest??? nick or anything else would result in nothing from the bot since it couldn't send a privmsg.

Thanks for all your help and suggestions! Now to put up a post to see if anyone knows of an easy way to have my bot respond to NickServ...and turns out searching the forums solves that problem.
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 -> Eggdrop Help 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