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.
Old posts that have not been replied to for several years.
Squirre1
Voice
Posts: 14 Joined: Thu Jul 18, 2002 12:49 am
Post
by Squirre1 » Thu Jul 18, 2002 11:07 am
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.
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Thu Jul 18, 2002 11:27 am
Follow the example as given in the config file.
Look for "set init-server"
Squirre1
Voice
Posts: 14 Joined: Thu Jul 18, 2002 12:49 am
Post
by Squirre1 » Thu Jul 18, 2002 12:18 pm
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.."}
Ian-Highlander
Op
Posts: 165 Joined: Mon Sep 24, 2001 8:00 pm
Location: Ely, Cambridgeshire
Post
by Ian-Highlander » Thu Jul 18, 2002 1:50 pm
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"
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Fri Jul 19, 2002 5:23 am
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
}
guppy
eggdrop engineer
Posts: 199 Joined: Mon Sep 24, 2001 8:00 pm
Location: Canada
Contact:
Post
by guppy » Fri Jul 19, 2002 1:03 pm
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
}