| View previous topic :: View next topic |
| Author |
Message |
marvz Halfop
Joined: 18 Jun 2010 Posts: 64
|
Posted: Fri Jun 18, 2010 3:08 pm Post subject: Eggdrop help please. Config file not found |
|
|
So I'm trying to setup my eggdrop but when it comes to starting the bot for the first time I get this when i type in the startup command in terminal. ./eggdrop -m beersnob.conf
| Code: | Eggdrop v1.6.19+ctcpfix (C) 1997 Robey Pointer (C) 2008 Eggheads
[11:49] --- Loading eggdrop v1.6.19+ctcpfix (Fri Jun 18 2010)
[11:49] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
|
I went through the config file and renamed it. As far as I can tell I did what the instructions told me. Any help is greatly appreciated! I'm on osx 10.6.3 if that helps. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Jun 18, 2010 3:17 pm Post subject: |
|
|
Please doublecheck that the config-file resides in the directory where you installed your eggdrop, and that the filename matches to the letter and case. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
marvz Halfop
Joined: 18 Jun 2010 Posts: 64
|
Posted: Fri Jun 18, 2010 3:40 pm Post subject: |
|
|
The config file is located in the correct place and case match. I tried one more time and got this
| Code: | Eggdrop v1.6.19+ctcpfix (C) 1997 Robey Pointer (C) 2008 Eggheads
[12:38] --- Loading eggdrop v1.6.19+ctcpfix (Fri Jun 18 2010)
[12:38] Module loaded: blowfish
[12:38] Module loaded: dns
[12:38] Module loaded: channels
[12:38] Tcl error in file 'beersnob.conf':
[12:38] no such channel record
while executing
"channel set #spf +enforcebans +dynamicbans +userbans +dynamicexempts"
(file "beersnob.conf" line 645)
[12:38] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR) |
Looks like it sees it now but there is an issue now. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Jun 18, 2010 3:41 pm Post subject: |
|
|
When adding channels through your config-file, use "channel add", not "channel set". _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
marvz Halfop
Joined: 18 Jun 2010 Posts: 64
|
Posted: Fri Jun 18, 2010 3:44 pm Post subject: |
|
|
This is what I have set. All I did was change the chan name and remove the hash tags. The rest is the default on the config file
| Code: | # There are many different options for channels which you can
# define. They can be enabled or disabled using the channel set command by a
# plus or minus in front of them.
#
channel set #spf +enforcebans +dynamicbans +userbans +dynamicexempts
channel set #spf +userexempts +dynamicinvites +userinvites +protectops
channel set #spf +protectfriends +statuslog +revenge -protecthalfops
channel set #spf +revengebot +dontkickops +autovoice -autoop -autohalfop
channel set #spf -bitch -secret -shared -greet +cycle |
Am I supposed to use this instead of removing the hash marks like I did above?
| Code: | #
# Here is a shorter example:
#
# channel add #botcentral {
# chanmode "+mntisl 1"
# idle-kick 1
# }
# channel set #botcentral +bitch +enforcebans -greet +revenge
|
|
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Jun 18, 2010 4:03 pm Post subject: |
|
|
Yes. You can use the "channel set" command once the channel has been added using "channel add" though. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
marvz Halfop
Joined: 18 Jun 2010 Posts: 64
|
Posted: Fri Jun 18, 2010 4:11 pm Post subject: |
|
|
Ok, I did that and its connected but I don't see it in the Chan or server.
| Code: | ./eggdrop -m beersnob.conf
Eggdrop v1.6.19+ctcpfix (C) 1997 Robey Pointer (C) 2008 Eggheads
[13:04] --- Loading eggdrop v1.6.19+ctcpfix (Fri Jun 18 2010)
[13:04] Module loaded: blowfish
[13:04] Module loaded: dns
[13:04] Module loaded: channels
[13:04] Module loaded: server
[13:04] Module loaded: ctcp
[13:04] Module loaded: irc
[13:04] Module loaded: notes (with lang support)
[13:04] Module loaded: console (with lang support)
[13:04] Module loaded: uptime
[13:04] GetOps v2.3c loaded.
[13:04] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).
[13:04] use '.help userinfo' for commands.
[13:04] Creating channel file
STARTING BOT IN USERFILE CREATION MODE.
Telnet to the bot and enter 'NEW' as your nickname.
OR go to IRC and type: /msg beersnob hello
This will make the bot recognize you as the master.
[13:04] === beersnob: 1 channels, 0 users.
Launched into the background |
Sorry for all the questions. I'm just new to this. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Jun 18, 2010 4:28 pm Post subject: |
|
|
Stop the bot from running, and restart it with this command:
| Code: | | ./eggdrop -ntm beersnob.conf |
If you now see your bot online, you've most likely got an issue with threaded tcl (you'll find numerous posts regarding this on the forum). _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
marvz Halfop
Joined: 18 Jun 2010 Posts: 64
|
Posted: Sat Jun 19, 2010 12:00 am Post subject: |
|
|
| It worked and the bot showed up in the chan and let me set myself up as the master acct. But now I tried loading it again via the terminal command and it doesn't load. it says that the location/eggdrop is a directory... |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sat Jun 19, 2010 1:24 pm Post subject: |
|
|
Then you are most likely trying to start it from the wrong directory..
try cd eggdrop; ./eggdrop beersnob.conf or such... _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
marvz Halfop
Joined: 18 Jun 2010 Posts: 64
|
Posted: Sat Jun 19, 2010 1:25 pm Post subject: |
|
|
Ok, I did the tcl mod to the config.h doc.
The thing that I find odd is that the config.h file was in the downloads folder rather than in the eggdrop directory. Would this be a problem that is causing this? I'm still unable to load the bot in any of the modes.
I read the threads that I found through search and did the mods that you suggested. I'm begining to thing that the problem may be the directory being wrong? Maybe I'm missing some files somewhere. Its just odd to me that the bot ran when I did what you told me to do in the previous post but now its not even loading. Should I just start again from scratch and save the copies of the modified conf.h and config files? |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sat Jun 19, 2010 1:31 pm Post subject: |
|
|
The config.h file is a "header" or "include"-file, which is only used during compilation. That is why you only find it in the source location, not the directory where you later installed the eggdrop.
Thus, if you edit this file, you'll have to recompile (make confing; make) and reinstall (make install) your eggdrop. Be adviced that you should not run the ./configure-script after you've edited this file though, as it'll overwrite any changes you've done.
As for locations, the source usually unpacks into a directory called "eggdrop1.6.19" (depending on the version number), while the compiled binary gets installed in "~/eggdrop" unless you specify a different location. You are probably trying to start your eggdrop from "~/" (your home directory), and hence "eggdrop" is indeed a directory, not an executable file. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
marvz Halfop
Joined: 18 Jun 2010 Posts: 64
|
Posted: Sat Jun 19, 2010 2:54 pm Post subject: |
|
|
Ok, I did the mod and the bot is in irc. The only way I can get the bot to run is like this:
| Code: | Marvin-Gomezs-MacBook:eggdrop1.6.19 marvingomez$ make config
Checking for removed modules.................... done.
Detecting modules.................... done.
Calculating dependencies................... done.
Building ./src/mod/Makefile... done.
Configuring module 'compress'.
configure: loading cache ../../../config.cache
checking for gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for gzopen in -lz... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for zlib.h... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
Configuring module 'dns'.
configure: loading cache ../../../config.cache
checking for gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for res_init... (cached) yes
checking for res_mkquery... (cached) yes
checking build system type... (cached) i386-apple-darwin10.3.0
checking host system type... (cached) i386-apple-darwin10.3.0
configure: creating ./config.status
config.status: creating Makefile
Building ./src/mod/Makefile... done.
You can now compile the bot, using "make".
Marvin-Gomezs-MacBook:eggdrop1.6.19 marvingomez$ make install
Eggdrop v1.6.19+ctcpfix (C) 1997 Robey Pointer (C) 2008 Eggheads
(patches: ctcpfix)
Installing in directory: '/Users/marvingomez/eggdrop'.
Removing symlink to archival eggdrop binary.
Copying new 'eggdrop' executable and creating symlink.
Copying help files.
Copying module help files.
Copying language files.
Copying module language files.
Copying docs.
Installation completed.
You MUST ensure that you edit/verify your configuration file.
An example configuration file, eggdrop.conf, is distributed with Eggdrop.
Remember to change directory to /Users/marvingomez/eggdrop before you proceed.
Marvin-Gomezs-MacBook:eggdrop1.6.19 marvingomez$ cd /Users/marvingomez/eggdrop
Marvin-Gomezs-MacBook:eggdrop marvingomez$ ./eggdrop -mn beersnob.conf
Eggdrop v1.6.19+ctcpfix (C) 1997 Robey Pointer (C) 2008 Eggheads
[11:42] Allocated bind table unld (flags 1)
[11:42] Allocated bind table time (flags 1)
[11:42] Allocated bind table note (flags 0)
[11:42] Allocated bind table nkch (flags 1)
[11:42] Allocated bind table load (flags 1)
[11:42] Allocated bind table link (flags 1)
[11:42] Allocated bind table filt (flags 1)
[11:42] Allocated bind table disc (flags 1)
[11:42] Allocated bind table dcc (flags 0)
[11:42] Allocated bind table chpt (flags 1)
[11:42] Allocated bind table chon (flags 1)
[11:42] Allocated bind table chof (flags 1)
[11:42] Allocated bind table chjn (flags 1)
[11:42] Allocated bind table chat (flags 1)
[11:42] Allocated bind table bot (flags 0)
[11:42] Allocated bind table bcst (flags 1)
[11:42] Allocated bind table away (flags 1)
[11:42] Allocated bind table act (flags 1)
[11:42] Allocated bind table evnt (flags 1)
[11:42] --- Loading eggdrop v1.6.19+ctcpfix (Sat Jun 19 2010)
[11:42] Module loaded: blowfish
[11:42] Module loaded: dns
[11:42] Module loaded: channels
[11:42] Allocated bind table wall (flags 1)
[11:42] Allocated bind table raw (flags 1)
[11:42] Allocated bind table notc (flags 1)
[11:42] Allocated bind table msgm (flags 1)
[11:42] Allocated bind table msg (flags 0)
[11:42] Allocated bind table flud (flags 1)
[11:42] Allocated bind table ctcr (flags 1)
[11:42] Allocated bind table ctcp (flags 1)
[11:42] Module loaded: server
[11:42] Module loaded: ctcp
[11:42] Allocated bind table topc (flags 1)
[11:42] Allocated bind table splt (flags 1)
[11:42] Allocated bind table sign (flags 1)
[11:42] Allocated bind table rejn (flags 1)
[11:42] Allocated bind table part (flags 1)
[11:42] Allocated bind table nick (flags 1)
[11:42] Allocated bind table mode (flags 1)
[11:42] Allocated bind table kick (flags 1)
[11:42] Allocated bind table join (flags 1)
[11:42] Allocated bind table pubm (flags 1)
[11:42] Allocated bind table pub (flags 0)
[11:42] Allocated bind table need (flags 1)
[11:42] Module loaded: irc
[11:42] LANG: Section loaded: notes
[11:42] LANG: 42 messages of 47 lines loaded from ./language/notes.english.lang
[11:42] LANG: 42 adds, 0 updates to message table
[11:42] Module loaded: notes (with lang support)
[11:42] LANG: Section loaded: console
[11:42] LANG: 10 messages of 15 lines loaded from ./language/console.english.lang
[11:42] LANG: 10 adds, 0 updates to message table
[11:42] Module loaded: console (with lang support)
[11:42] Module loaded: uptime
[11:42] GetOps v2.3c loaded.
[11:42] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).
[11:42] use '.help userinfo' for commands.
[11:42] Userfile loaded, unpacking...
USERFILE ALREADY EXISTS (drop the '-m')
[11:42] === beersnob: 1 channels, 2 users.
[11:42] main: entering loop
[11:42] Trying server irc.irc4lyf.com:6667
[11:42] DNS resolved irc.irc4lyf.com to 174.34.187.43
[11:42] net: connect! sock 8
[11:42] Connected to irc.irc4lyf.com
[11:42] -NOTICE- *** Looking up your hostname...
[11:42] -NOTICE- *** Found your hostname (cached)
[11:42] beersnob joined #spf.
[11:42] GetOps: No bots to ask for ops on #spf.
|
I did the mods to the config.h file like your previous thread/post said. When I tried to dcc chat with the bot it cancels the chat. also, none of the commands seem to work (.help, !seen etc...).
One thing that I noticed is that when I used my own nick in the room through snak and used the !seen trigger for certain nicks the terminal showed what the nicks typed but ignored all the other nicks typing something. I can't get the bot to communicate with the room just sit there and idle. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sat Jun 19, 2010 3:28 pm Post subject: |
|
|
First off, like the log said: drop the -m
| Code: | | USERFILE ALREADY EXISTS (drop the '-m') |
Next, unless you've added some scripts on your own, there would be no public commands. Therefore, typing .help in the channel would not trigger any actions.
For msg commands, start with /msg yourbot HELP
Regarding DCC chat, try /ctcp yourbot chat
Also see if you get any log messages for either /dcc chat or /ctcp chat in the console window. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
marvz Halfop
Joined: 18 Jun 2010 Posts: 64
|
Posted: Sat Jun 19, 2010 5:12 pm Post subject: |
|
|
Looks like its working now. Thank you very much!
I do have one question though, will I be able to use my bot to chat as well or will it strictly stay in the room and run commands/scripts I load into it? I recall a long time ago a user in a chan used to use the bot to chat through his terminal. I searched and didn't find anything similar. Maybe I'm just not using the right parameters.
Thanks in advance! |
|
| Back to top |
|
 |
|