| View previous topic :: View next topic |
| Author |
Message |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Sun Jan 29, 2006 8:41 pm Post subject: perform on connect |
|
|
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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Jan 29, 2006 9:04 pm Post subject: |
|
|
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 |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Sun Jan 29, 2006 9:20 pm Post subject: |
|
|
| 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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Mon Jan 30, 2006 12:54 am Post subject: |
|
|
| 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 |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Tue Jan 31, 2006 2:22 pm Post subject: |
|
|
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 |
|
 |
CrazyEgg Halfop
Joined: 28 Jul 2005 Posts: 47
|
Posted: Tue Jan 31, 2006 3:59 pm Post subject: |
|
|
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 |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Tue Jan 31, 2006 4:09 pm Post subject: |
|
|
| 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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Jan 31, 2006 11:32 pm Post subject: |
|
|
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 |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Wed Feb 01, 2006 12:49 am Post subject: |
|
|
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
There isn't any errors in putty. |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Thu Feb 02, 2006 2:53 am Post subject: |
|
|
Hey demond, do you have anything else I can try?  |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Feb 02, 2006 2:57 am Post subject: |
|
|
nope  _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Thu Feb 02, 2006 3:08 am Post subject: |
|
|
Ok thanks for trying to help  |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Thu Feb 02, 2006 10:01 am Post subject: |
|
|
_________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Thu Feb 02, 2006 12:32 pm Post subject: |
|
|
Thanks, that worked  |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Feb 02, 2006 11:49 pm Post subject: |
|
|
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 |
|
 |
|