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.

perform on connect

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

perform on connect

Post by cache »

I've done a search for an option perform on connect but can't find anything - unless it's called something else lol..

I need a script to perform a MSG command on connect/ join of room.

Once it connects it'll /msg me something.

Thanks.
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

From eggdrop.conf:

Code: Select all

# This is a Tcl script to be run immediately after connecting to a server.
bind evnt - init-server evnt:init_server

proc evnt:init_server {type} {
  global botnick
  putquick "MODE $botnick +i-ws"
}
Add whatever you want in that proc.
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Is there anyone to make it do it after it joins room? seems what I want to do won't work untill bot joins room first.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

bind join - {#room %} foo
proc foo {n args} {
   if [isbotnick $n] {putserv "privmsg goober :hi there"}
}
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Hey demond - that script works but only if the bot is in 1 room, can I add multiple channels to it so it works in each room it joins? Or at least get it to work when bot is in more then 1 room?

Thanks
C
CrazyEgg
Halfop
Posts: 47
Joined: Thu Jul 28, 2005 4:02 pm

Post by CrazyEgg »

1st you say perform:
sir_fz answer for that

2nd you ask to do something and demond told you.

both answers require to read about tcl commands on /doc folder.

i propose something else:

find out the dcc or telnet command .+chan and try to find what makes.

after that ask something but be specificate.
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Yes I know that, I did have to edit demonds to get it to work as I read the help doc, but im stuck at trying to get it to work in all rooms - for now it works when in 1 room.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

replace #room with %
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

I tried it all these ways before bugging you again lol

Code: Select all

bind join - {% %} foo 
bind join - {%} foo 
bind join - {%%} foo 
bind join - {% } foo 
bind join - { %} foo 
Tried all those ways :(

There isn't any errors in putty.
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Hey demond, do you have anything else I can try? :?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

nope :)
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Ok thanks for trying to help :D
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Code: Select all

bind join - * foo
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Thanks, that worked :D
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Alchera wrote:

Code: Select all

bind join - * foo
that's equivalent to:

Code: Select all

bind join - {% %} foo
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
Post Reply