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 

perform on connect
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Sun Jan 29, 2006 8:41 pm    Post subject: perform on connect Reply with quote

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.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Jan 29, 2006 9:04 pm    Post subject: Reply with quote

From eggdrop.conf:
Code:
# 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.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Sun Jan 29, 2006 9:20 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Mon Jan 30, 2006 12:54 am    Post subject: Reply with quote

Code:

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] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Tue Jan 31, 2006 2:22 pm    Post subject: Reply with quote

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


Joined: 28 Jul 2005
Posts: 47

PostPosted: Tue Jan 31, 2006 3:59 pm    Post subject: Reply with quote

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


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Tue Jan 31, 2006 4:09 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Jan 31, 2006 11:32 pm    Post subject: Reply with quote

replace #room with %
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Wed Feb 01, 2006 12:49 am    Post subject: Reply with quote

I tried it all these ways before bugging you again lol

Code:

bind join - {% %} foo
bind join - {%} foo
bind join - {%%} foo
bind join - {% } foo
bind join - { %} foo


Tried all those ways Sad

There isn't any errors in putty.
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Thu Feb 02, 2006 2:53 am    Post subject: Reply with quote

Hey demond, do you have anything else I can try? Confused
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Feb 02, 2006 2:57 am    Post subject: Reply with quote

nope Smile
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Thu Feb 02, 2006 3:08 am    Post subject: Reply with quote

Ok thanks for trying to help Very Happy
Back to top
View user's profile Send private message
Alchera
Revered One


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

PostPosted: Thu Feb 02, 2006 10:01 am    Post subject: Reply with quote

Code:
bind join - * foo

_________________
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
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Thu Feb 02, 2006 12:32 pm    Post subject: Reply with quote

Thanks, that worked Very Happy
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Feb 02, 2006 11:49 pm    Post subject: Reply with quote

Alchera wrote:
Code:
bind join - * foo

that's equivalent to:
Code:

bind join - {% %} foo

_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 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