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 

On startup

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
l.kleijn
Voice


Joined: 18 May 2014
Posts: 24

PostPosted: Fri May 22, 2020 5:38 pm    Post subject: On startup Reply with quote

Hi,

i want a timer on a script that the eggdrop connect to a znc.

Quote:
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 ?
Back to top
View user's profile Send private message
ComputerTech
Op


Joined: 22 Feb 2020
Posts: 106
Location: Ireland

PostPosted: Fri May 22, 2020 10:09 pm    Post subject: Reply with quote

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 Razz
_________________
Think Positive
Back to top
View user's profile Send private message Send e-mail Visit poster's website
l.kleijn
Voice


Joined: 18 May 2014
Posts: 24

PostPosted: Sat May 23, 2020 1:53 am    Post subject: Reply with quote

When the bot starts so it can connect to a znc
Back to top
View user's profile Send private message
ComputerTech
Op


Joined: 22 Feb 2020
Posts: 106
Location: Ireland

PostPosted: Sat May 23, 2020 7:31 am    Post subject: Reply with quote

I'm assuming you have the znc server address in the bots server asection on the eggdrop config, if you have it there try this code.

Code:

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


this should work since there is a line just almost like this in the eggdrop config. Cool
_________________
Think Positive
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
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