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.

Invite System - Link?

Help for those learning Tcl or writing their own scripts.
Post Reply
Z
Zorb
Voice
Posts: 22
Joined: Tue Oct 17, 2006 8:14 am

Invite System - Link?

Post by Zorb »

I've already written the invite part so it does join a channel on invite.

On the server the bot is on it only allows you to be on 30 channels. So if the bot is on 30 channels I'd like it to tell the other bot to join the invited channel.

Now I'm not sure if you're suppose to link all the eggdrops up to achieve this or just use a notice or whatever.

If anybody knows could they please let me now in here.

Thanks.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

You can notice the other bot, with a specific keyword, notc, privmsg (bind msgm) with some specific keywords, and match that in the other bots tcl script, those keywords and the arguments after the keywords can be used for the channel name and argument of what to do, supposingly, "join" "part" "cycle" whatever.

Basically it can function as a relay bot. I made a basic script for a spam relay bot very long ago, not the best ones out there, but you can have a look at it, search "Private Spam" in the tcl section on egghelp.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Z
Zorb
Voice
Posts: 22
Joined: Tue Oct 17, 2006 8:14 am

Post by Zorb »

How do I know when I'm on 30 channels to notice the bot?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

You will get a raw msg from the server, saying something like:

"Error: Too many channels" or
"Cannot join more channels"

Can be anything similar to this, depending upon your IRC network. Then you have to check your ircd, find the raw number for this numeric and script a code for that numeric, if the bind on that raw number activates, you send a notc or privmsg to some other bot, with your keywords and arguments and then, that bot will process it further (join, part channels).

For that you bind on notc, privmsg check and split the args properly and then
#channel add $arg
#channel remove $arg

and so on..
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Post Reply