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.

IRC commands after bot connects...

Old posts that have not been replied to for several years.
Locked
S
Squirre1
Voice
Posts: 14
Joined: Thu Jul 18, 2002 12:49 am

IRC commands after bot connects...

Post by Squirre1 »

I connect my bot to a server that has some hellish commands to authenticate and other BS.. Is there a script or just any other way I can force my bot to run PRIVMSGs after a successful connection to a server.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Follow the example as given in the config file.

Look for "set init-server"
S
Squirre1
Voice
Posts: 14
Joined: Thu Jul 18, 2002 12:49 am

Post by Squirre1 »

Can you use that multiple times...
for ex.

set init-server {putserv "MODE $botnick +i-ws"}
set init-server {putserv "PRIVMSG AuthServ etc.."}
set init-server {putserv "PRIVMSG ChanServ etc.."}
I
Ian-Highlander
Op
Posts: 165
Joined: Mon Sep 24, 2001 8:00 pm
Location: Ely, Cambridgeshire

Post by Ian-Highlander »

Yes but not like that, use it in the following format:

Code: Select all

set init-server {
putserv "MODE $botnick +i-ws"
putserv "PRIVMSG AuthServ etc.."
putserv "PRIVMSG ChanServ etc.."
}
HTH

Regards

Ian-Highlander
"Insanity Takes Its Toll, Please Have Exact Change"
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

The init-server setting has a limited string size, thus, the more complex your script gets, the easier it will overload it.

You can do somthign like the following to fix that

Code: Select all

set init-server {my-init-server}
proc my-init-server {} {
  commands here
  rather than in
  the init-server setting
}
g
guppy
eggdrop engineer
Posts: 199
Joined: Mon Sep 24, 2001 8:00 pm
Location: Canada
Contact:

Post by guppy »

Or just use the new fangled evnt bind and never worry about other scripts overwriting your init-server variable

Code: Select all

bind evnt - init-server evnt:my-initserver

proc my-initserver {type} {
  command1
  command2
  etc
}
Locked