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.

nonexistant bot?

Old posts that have not been replied to for several years.
Locked
b
brandnew

nonexistant bot?

Post by brandnew »

I'm sure it's been covered here before, but I don't know what I'm doing wrong. The bot was fine until I made it leave a channel. Now when I .rehash, I'm getting this message:

<NAiou> [12:29] Tcl error in script for 'init-server':
<NAiou> [12:29] couldn't read file "logon": no such file or directory
<NAiou> [12:29] Userfile loaded, unpacking...
<NAiou> [12:29] joined #thischannel but didn't want to!
<NAiou> [12:29] #thischannel: mode change '+o NAiou' by Taboo!Taboo@Bot.irc.chat.tv
<NAiou> [12:29] * Mode change on #thischannel for nonexistant NAiou!


What on earth have I done? Please, go easy on me. I've been looking at help files for two days now.

N.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Paste the code for "init-server". Your problem seems to start there.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
b
brandnew

Post by brandnew »

Where how do I find that Alchera? In the config. file it says: set init-server { source logon }

N.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

There's your problem
source logon
Does that file even exist in the main eggdrop folder?

This is the default for eggdrop.conf:

Code: Select all

# This is a Tcl script to be run immediately after connecting to a server.
bind evnt - init-server evnt:init_server

proc evnt:init_server {type} {
  global botnick
  putquick "MODE $botnick +i-ws"
}
You can find auto identify scripts for eggdrop in the TCL Archive
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
b
brandnew

Post by brandnew »

Okay, this is what is going on. The bot is actually on the network and it will come in one room, but not the other where I want it to be. The identify script that I have is this:

## start ##
bind raw * NOTICE raw:id
proc raw:id {from key arg} {
set parm(7) [lindex $arg 7]
set parm(8) [lindex $arg 8]
set parm(9) [lindex $arg 9]
set parm(10) [lindex $arg 10]
#if {$parm(8) == "NickServ"} {
#if {$parm(9) == "IDENTIFY"} {
putserv "PRIVMSG NickServ :IDENTIFY ********"
#}
#}
return 0
}
## second part ##
bind raw * NOTICE raw:cserv
proc raw:cserv {from key arg} {
set parm(1) [lindex $arg 1]
set parm(2) [lindex $arg 2]
#if {$parm(1) == ":Permission"} {
#if {$parm(2) == "denied."} {
putserv "PRIVMSG NickServ :IDENTIFY ********"
#}
#}
return 0
}
## end ##


I know, I'm "brandnew" and not sure how to learn except by making mistakes and I also know I've made some mistakes here but not sure what mistakes they are or how to fix them. I've read help files all over, and an acquaintance gave me her config. file to learn from, so I took that and modified it to include things like the network I'm on etc. I've been to help channels but found little actual help. :) It kinda seems like something everybody knows already, but they musta learned somewhere. Anyway, here I am - trying to learn how to get around in the shell and dcc. Any - every help is MUCH appreciated by this poor ignorant person.

Thanks,
N.

(I don't even know how to read the README in the shell!)
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Ok .. simply replace this:

Code: Select all

set init-server { source logon }
With:

Code: Select all

# This is a Tcl script to be run immediately after connecting to a server.
bind evnt - init-server evnt:init_server

proc evnt:init_server {type} {
  global botnick
  putquick "MODE $botnick +i-ws"
  putquick "PRIVMSG NickServ :IDENTIFY <nickpass>"
}
Then simply rehash your bot.

As i said in the previous post, you'll find a far better solution in the TCL Archive. Try searching for either nickserv or auto identify. :)

Editors on shells are usually one of either pico or vi depending on the setup. If you use Windows you may find it more convenient to edit scripts etc using EditPlus or some other editor that can use Unix format and then upload to your shell when done. :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Most of the NickServ scripts on egghelp.org infact all are binded on notice (notc). As most of the NickServ's on networks commonly interact through notices. :P

The init-server one will only trigger once the bot has just connected to the server, after that it will remain idle, untill the bot reconnects to the irc server. :wink:

Code: Select all

#I think you should change this bind to the new notc bind.
bind raw "*" NOTICE raw:cserv 

#The bind which will trigger on a notice
bind notc - "*" raw:cserv

also use string matching:

#To check if the notice is sent to the bot and not to a channel as bind
#notice can trigger on channel notices as well as private notices.
if {([string equal -nocase $botnick $dest])} {
or
if {([isbotnick $dest])} {

Be sure to use the correct number of parameters for the bind notc procedure as they will be different from bind raw procedure.
As you are new. I would prefer you keep the tcl manual on your harddisk download it, as well as keeping looking at tcl-commands.doc in the eggdrop TAR package. These are both very helpful documents to use while scripting!

The new notc bind, will give you easily more efficiency. For example you will get the variables, nick, uhost, hand, text, dest and in raw you don't get the nick variable you have to split the argument as well to get it. :mrgreen:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
b
brandnew

Post by brandnew »

Cool, thanks for suggestions....but it still doesn't want to join the room. I type .+chan #channelname and it joins but sends me the message:

joined #channelname but didn't want to!

What's so bad about this one room? It joins the other fine.

N.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Do you have that channel added in the .conf file? like:

Code: Select all

channel add #blabla { #settings here }
If not, then add it in the dynamic settings, that should work.
The bot never leaves dynamic channels even if you want to make it .-chan. :mrgreen:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked