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.

On startup

Help for those learning Tcl or writing their own scripts.
Post Reply
l
l.kleijn
Voice
Posts: 33
Joined: Sun May 18, 2014 10:02 am

On startup

Post by l.kleijn »

Hi,

i want a timer on a script that the eggdrop connect to a znc.
example: bind cron - */1 znc:do

proc znc:do {} {
putserv "QUOTE pass /User/passwd"
}
But this is not working.

The error i get: Tcl error [znc:do]: wrong # args: should be "znc:do"

Anyone ?
User avatar
ComputerTech
Master
Posts: 399
Joined: Sat Feb 22, 2020 10:29 am
Contact:

Post by ComputerTech »

um well do you want the script to work when the bot joins the server or you type a command to login into the znc?

i'm going to bed now will help more tomorrow :P
ComputerTech
l
l.kleijn
Voice
Posts: 33
Joined: Sun May 18, 2014 10:02 am

Post by l.kleijn »

When the bot starts so it can connect to a znc
User avatar
ComputerTech
Master
Posts: 399
Joined: Sat Feb 22, 2020 10:29 am
Contact:

Post by ComputerTech »

Ok, so once your bot has connected to the ZNC, it will issue this command,
the "init-server" is a block on the eggdrop.conf, that basically runs commands when the bot joins a server, (e.g) identify to nickserv.

Code: Select all

set init-server {  
putquick "QUOTE pass user/network:password"
}
ComputerTech
Post Reply