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.

Basic Actions... please I'm hopeless...

Old posts that have not been replied to for several years.
Locked
Z
Zaiks

Basic Actions... please I'm hopeless...

Post by Zaiks »

Hello,

I searched a lot of engines for this tcl but i'm looking for a TCL for queit a long time, and I still hadn't found it.
I don't know TCL language so maybe someone would help me for this...
In this example 'Eggdrop' is the eggdrop's nick, and X is an other bot's nick.


1. If Eggdrop JOIN a channel, if X is on this channel, then do this : /msg X CSAUTH Eggdrop password

2. Or If X JOINS a channel, then do this : /msg X CSAUTH Eggdrop password

And that's all!

The 'joinactions.tcl' may start like that :

### What is the name of the bot to identify to on join?
set bot_name "X"

### Set the password the Eggdrop uses on X with CSAUTH X PASSWORD
set bot_pass "password"

If anyone can help me!
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

### What is the name of the bot to identify to on join?
set bot(name) "X"

### Set the user of the Eggdrop that will use for CSAUTH
set bot(user) "Eggdrop"

### Set the password of the Eggdrop that will use for CSAUTH
set bot(pass) "password"

bind join * * x:xlogin

proc x:login {nick uhost handle channel} {
global bot
if {$nick == $bot(name)" || $nick == $botnick } {
putserv "PRIVMSG $bot(name) :CSAUTH $bot(user) $bot(pass)"}
return 1 }
Once the game is over, the king and the pawn go back in the same box.
Z
Zaiks

Post by Zaiks »

Thanks a lot !

So this code make what I described higher ?

The Bot's JOIN and the Eggdrop's join ?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

It's exactly what you've asked for.
Once the game is over, the king and the pawn go back in the same box.
Z
Zaiks

Post by Zaiks »

All right, I will test this, thanks very much !!!

If one day I can do something for you tell me !

Thank you very very much !!! :D

####

I tested it, I named it csauth.tcl I added it into source/scripts/csauth.tcl
But when Eggdrop JOIN channel he doesn't send any '/MSG X CSAUTH Eggdrop pass' to X

And the same when X JOINS the channel... I had done a mistake maybe ?

I pasted the code into a NotePad Document then I renamed it into *.tcl

I don't see what can I do caesar... maybe because I test it on a Windrop before put in on my Eggdrop ? :oops:
Z
Zaiks

Post by Zaiks »

Caesar please help me please!

I have this error, on JOIN :

Code: Select all

Tcl error [x:xlogin]: invalid command name "x:xlogin"
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

bind join * * x:xlogin
proc x:login {nick uhost handle channel} {


name the proc x:xlogin like so:

proc x:xlogin {nick uhost handle channel} {
photon?
Z
Zaiks

Post by Zaiks »

Yes I have done it, and what you tell me to do is not stupid, but now with this TCL code :

Code: Select all

### What is the name of the bot to identify to on join? 
set bot(name) "Vegeta" 

### Set the user of the Eggdrop that will use for CSAUTH 
set bot(user) "FreeBSD" 

### Set the password of the Eggdrop that will use for CSAUTH 
set bot(pass) "haha" 

#######################################################


bind join * * x:xlogin 

proc x:xlogin {nick uhost handle channel} { 
global bot 
if {$nick == $bot(name)" || $nick == $botnick } { 
putserv "PRIVMSG $bot(name) :CSAUTH $bot(user) $bot(pass)"} 
return 1 }
I have this error message on JOINS

Code: Select all

Tcl error [x:xlogin]: syntax error in expression "$nick == $bot(name)" || $nick == $botnick ": extra tokens at end of expression
caesar made the code he may say but he seems to would not help me any more...

Thank you all I'm sure someone is going to find it out !
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

Code: Select all

### What is the name of the bot to identify to on join? 
set bot(name) "Vegeta" 

### Set the user of the Eggdrop that will use for CSAUTH 
set bot(user) "FreeBSD" 

### Set the password of the Eggdrop that will use for CSAUTH 
set bot(pass) "haha" 

####################################################### 


bind join * * x:xlogin 

proc x:xlogin {nick uhost handle channel} { 
  global bot botnick
  if {$nick == $bot(name) || $nick == $botnick } { 
    putserv "PRIVMSG $bot(name) :CSAUTH $bot(user) $bot(pass)"
  } 
}
Elen sila lúmenn' omentielvo
Z
Zaiks

Post by Zaiks »

It workkkkkkkkksssssssss thanks a lot !!!!!!!!!!!! :) :) :)
Locked