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.

TCL Script Advice Requested

Old posts that have not been replied to for several years.
Locked
User avatar
mcdarby
Halfop
Posts: 69
Joined: Tue Jul 16, 2002 7:46 pm
Location: Bangor, Pennsylvania
Contact:

TCL Script Advice Requested

Post by mcdarby »

Right now, I am trying to figure out what tcl command that I have to put in the .chanet need-op line that the bot would use to tell ChanServ to reop it in the event of it being deoped, and I have tried using msg, messages, and putdcc idx text to try to get it to msg text to ChanServ to get it reopped in the event it was deopped.

And I am also looking for a TCL script that I can use that will have the bot send a couple of /notice's to the channel when someone joins the channel (for the channel the /notice's are about only and different /notice's for when I want to do the same setting for another channel) regardless whether or not they are on the bot's userlist.

If you can help me out, please let me know.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

There are many serives scripts available in the Tcl atchive that can do this.

As for the on-join message, there are also many that can do this too.

Have you even looked?

For the on-join messages, they normaly do it via a PRIVMSG, though it's very simple to do a search and replace from "PRIVMSG" to "NOTICE".
User avatar
mcdarby
Halfop
Posts: 69
Joined: Tue Jul 16, 2002 7:46 pm
Location: Bangor, Pennsylvania
Contact:

TCL Varible Error

Post by mcdarby »

ppslim wrote:There are many serives scripts available in the Tcl atchive that can do this.

As for the on-join message, there are also many that can do this too.

Have you even looked?

For the on-join messages, they normaly do it via a PRIVMSG, though it's very simple to do a search and replace from "PRIVMSG" to "NOTICE".
Well, I'll look to see if there are any TCL Scripts in the Archieve that are for posting a notice to a user who joins the channel.

And, after I went through a ChanServ message, I found 'putserv "PRIVMSG ChanServ :OP #MyChannel"' works in that ".chanset need-op" line. But, there is still a problem, it won't work in another channel the bot is in and on the AOP List in ChanServ for that channel when the bot gets deopped.

When I tried to use 'putserv "PRIVMSG ChanServ :OP $channel"' in that line instead, it gives the error.

"Tcl error in script for 'need-op': can't read "channel": no such variable".

Could you tell me what is wrong here?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

As it says, $channel does not exist.

You will need to hardcode the channel name in replacment for this variable.
User avatar
mcdarby
Halfop
Posts: 69
Joined: Tue Jul 16, 2002 7:46 pm
Location: Bangor, Pennsylvania
Contact:

Post by mcdarby »

ppslim wrote:As it says, $channel does not exist.

You will need to hardcode the channel name in replacment for this variable.
Not sure what you mean, but the channel wildcard is needed for the bot to regain its OPs on deop in other channels besides my channel that it is sitting in. And I am wanting to know what is wrong with that varible.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

mcdarby wrote:
ppslim wrote:As it says, $channel does not exist.

You will need to hardcode the channel name in replacment for this variable.
Not sure what you mean, but the channel wildcard is needed for the bot to regain its OPs on deop in other channels besides my channel that it is sitting in. And I am wanting to know what is wrong with that varible.
Both I and the Tcl error message clearly stated what was wrong with it. It does not exist

Eggdrop is not mIRC, it does not have the use of the identifiers anywhere int he script.

I also stated, that you should hardcode the channel name into it
And, after I went through a ChanServ message, I found 'putserv "PRIVMSG ChanServ :OP #MyChannel"' works in that ".chanset need-op" line.
The $channel variable isn't used here, so why did you try using it. THis was hardcoded in, at least it looks it from you post. Try hardcodeing it in your version.

Either that, or explain what you are trying and where you are trying it?
User avatar
mcdarby
Halfop
Posts: 69
Joined: Tue Jul 16, 2002 7:46 pm
Location: Bangor, Pennsylvania
Contact:

Post by mcdarby »

ppslim wrote:
mcdarby wrote:
ppslim wrote:As it says, $channel does not exist.

The $channel variable isn't used here, so why did you try using it. THis was hardcoded in, at least it looks it from you post. Try hardcodeing it in your version.

Either that, or explain what you are trying and where you are trying it?
I was trying it in the .chanset need-op command in DCC to make the bot send a message to ChanServ to reop it if it was deopped. And, I got the script and the variable from a TCL script that I found from within the TCL Scripts on this site.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Then simply replace $channle, with the channel name, of the channel you are typing .chaset for.

The reasont hsi scripts uses it, is because it's been designed to make the $channel variable exist.

It is likely, that it is in a loop fasion, so it can set all channels (looping through each channel). Though this variable will only exist during this setup phase.
Locked