Code: Select all
Tcl error [x:xlogin]: invalid command name "x:xlogin"
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 }
Code: Select all
Tcl error [x:xlogin]: syntax error in expression "$nick == $bot(name)" || $nick == $botnick ": extra tokens at end of expression
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)"
}
}