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.

Eggdrop help please. Config file not found

General support and discussion of Eggdrop bots.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

From the dcc chat partyline, there's commands such as .say .act and .msg to make your eggdrop speak and act in a channel or private message.
NML_375
m
marvz
Halfop
Posts: 64
Joined: Fri Jun 18, 2010 2:37 pm

Post by marvz »

When I try any of those commands it says What? You need ".help" etc... Am I missing something that helps with those commands?
m
marvz
Halfop
Posts: 64
Joined: Fri Jun 18, 2010 2:37 pm

Post by marvz »

So, after looking around and trying different setting that I found using the search I'm assuming that it still has something to do with the threaded tcl. I changed the code in the config.h to:

Code: Select all

#define HAVE_TCL_THREADS 1
Now the bot only loads in the background if I type

Code: Select all

./eggdrop beersnob.conf
If Itype

Code: Select all

./eggdrop -nt beersnob.conf
it loads fine but I cannot use any of the . commands that you mentioned previously. I also am unable to dcc chat or telnet to the bot itself. So when I try to do anything with the bot it just sits there or cancels the dcc chat. I tried the
/msg yourbot HELP

/ctcp yourbot chat

and this is what I get

Code: Select all

[05:01] DCC connection: CHAT (marvz!pedro@east.LA)
[05:01] CTCP DCC: CHAT CHAT 1172744525 44002 from marvz (pedro@east.LA)
[05:02] Lost dcc connection to marvz (pedro@east.LA/44002)
The dcc chat gets killed as soon as I type anything.

I recompiled and did everything that you suggested in this thread and previous ones. I'm lost at this point. thanks again for the help and especially with for your patience with me. :(
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

If the .msg and other commands only tell you to get .help, that means you currently have no permissions. This makes sense if you were typing them from the console window where you started your eggdrop using -nt, as the console gets logged on as 'HQ' with no permissions.

Since the connection gets instantly dropped when you use /ctcp chat, that tells me that the user record you created earlier lacks proper hostmasks (which are used to recognize users). Would you and/or your eggdrop be hosted behind a SOHO-firewall or "masquerading router"?

What you can do, is locate and edit your userfile in some text editor. From memory, each record starts on a line with the username followed by flags and encrypted password on a single line, the following lines belonging to this record all start with -- and the type of information.
What we're looking for is --HOST, which should contain one hostmask (string with wildcards that is matched against nick!ident@host or -telnet!ident@host). Make sure there is atleast one such line for your record that matches you. You could try to edit this manually, though you'd probably be better off deleting the userfile and restarting your eggdrop with -m, to re-create your userfile and set a password.
NML_375
m
marvz
Halfop
Posts: 64
Joined: Fri Jun 18, 2010 2:37 pm

Post by marvz »

This is the beersnob.user file I opened in xcode:

Code: Select all

#4v: eggdrop v1.6.19+ctcpfix -- Beersnob -- written Sun Jun 20 15:00:00 2010
HQ         - p                       
--LASTON 1277008623 partyline
--XTRA created 1276900379
marvz      - hjlmnoptx               
! #spf                 1277013998 -          
--HOSTS *!marvz@*.irvnca.pacbell.net
--HOSTS -telnet!*@*
--HOSTS *!pedro@east.LA
--LASTON 1277013998 #spf
--PASS +FpA3W/6w7Sn1
--XTRA created 1276900416
::#spf bans
&&#spf exempts
$$#spf invites
It sees me as the owner. And yes, it does use the HQ. I did notice that when i do log the bot in using ./eggdrop beersnob it only runs in the background and still doesn't allow me to say any commands and doesn't pop up in irc. It doesn't let me quit either. I have to restart my laptop to kill the bot.

Code: Select all

Last login: Sat Jun 19 21:59:33 on ttys001
Marvin-Gomezs-MacBook:~ marvingomez$ cd /Users/marvingomez/Eggdrop
Marvin-Gomezs-MacBook:Eggdrop marvingomez$ ./eggdrop beersnob.conf

Eggdrop v1.6.19+ctcpfix (C) 1997 Robey Pointer (C) 2008 Eggheads
[08:52] --- Loading eggdrop v1.6.19+ctcpfix (Sun Jun 20 2010)
[15:53] Listening at telnet port 3333 (all).
[15:53] Module loaded: channels        
[15:53] Module loaded: dns             
[15:53] Module loaded: transfer         (with lang support)
[15:53] Module loaded: share           
[15:53] Module loaded: server          
[15:53] Module loaded: ctcp            
[15:53] Module loaded: irc             
[15:53] Module loaded: notes            (with lang support)
[15:53] Module loaded: console          (with lang support)
[15:53] Module loaded: blowfish        
[15:53] Module loaded: uptime          
[15:53] bseen1.4.2c:  -- Bass's SEEN loaded --
[15:53]      Loading seen database...
[15:53]      Done loading 33 seen records.
[15:53] Userfile loaded, unpacking...
[15:53] === Beersnob: 1 channels, 2 users.
Launched into the background  (pid: 7263)

Marvin-Gomezs-MacBook:Eggdrop marvingomez$ .quit
-bash: .quit: command not found
EDIT: It showed up in irc now but I still can't dcc chat or anything to the bot through terminal or dcc chat. It kills the dcc chat.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Can't run commands when eggdrop is launched into background:
Works as intended. Since the process releases control of the terminal as it forks into background, control is returned to the shell application. Any text written on the console once the eggdrop has forked will thus be passed to the shell application instead.

The dropped dcc connection:
The IP in the dcc chat request looks proper. So does the hostmasks in your userfile.
nml375 wrote:Would you and/or your eggdrop be hosted behind a SOHO-firewall or "masquerading router"?
Restarting laptop to kill process:
I'm no apple-expert, but from what I've been told, the kill command works just as well on MacOSX, as it does on linux, *nix, and BSD.
NML_375
m
marvz
Halfop
Posts: 64
Joined: Fri Jun 18, 2010 2:37 pm

Post by marvz »

I'm going to look into your suggestion on the SOHO and masquerading router. Its the 2wire one that AT&T supplies with their DSL service. Thanks again and I'll report what I find. Thanks again.
m
marvz
Halfop
Posts: 64
Joined: Fri Jun 18, 2010 2:37 pm

Post by marvz »

So after reading up on the masquerading router its confirmed that I do have that on my router. I found the ip attached to my laptop but at this point I'm drawing a blank. What should I look for or do from this point on?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Then, unfortunately, dcc chat between clients behind that firewall/router will probably not work. However, you can still gain access to the partyline using a telnet client.
Look up which port your eggdrop listens for users (see your config-file, look for 'listen'). Then connect to 127.0.0.1 using that port (telnet 127.0.0.1 12345).
NML_375
m
marvz
Halfop
Posts: 64
Joined: Fri Jun 18, 2010 2:37 pm

Post by marvz »

Thank you very much. I got it to work just fine using all your help. Thank you very much once again and I look forward to learning so much from this forum!
m
marvz
Halfop
Posts: 64
Joined: Fri Jun 18, 2010 2:37 pm

Post by marvz »

Hello again. I wasn't sure if I should start a new thread or just continue within this one since this is something that is still a part of the initial setup from what I've been reading.

I was trying to use my bot to do op functions and it would tell me that it is not a chan op to perform the requested actions. I have the bot added to my SOP group in the chan. So I found that my bot did not know it was an op so I added the following to my .conf file:

Code: Select all

set opchars "@&~"
As soon as I did that and .rehash within a minute my bot started to deop/kick/kickban all the users in the chan that were idleing or haven't said anything within a minute. here is my .conf file:

Code: Select all

#! ./eggdrop

### Core Settings ###
set admin "Marvz"
set nick "Beersnob"
set altnick "Beersnob-"
set realname "Beersnob"
set network "Others"
set net-type "5"
set init-server { putserv "mode Beersnob +i" }
set default-port 6667
set servers {
  irc.irc4lyf.com
  
  
}

set timezone "PST"
set offset "7"
set env(TZ) "$timezone $offset"
set my-hostname "irc4lyf.com"
set my-ip ""

### Logfile Settings ###
set max-logs 5
set max-logsize 0
set quick-logs 0
logfile mcobxs * "logs/Beersnob.log"
logfile jkp #spf "logs/#spf.log"
set log-time 1
set keep-all-logs 1
set logfile-suffix ""
set switch-logfiles-at 300
set quiet-save 0

### Console Settings ###
set console "mkcobxs"

### File & Directory Settings ###
set userfile "Beersnob.user"
set pidfile "pid.Beersnob"
set chanfile "Beersnob.chan"
set force-expire 0
set share-greet 0
set use-info 1
set sort-users 0
set help-path "help/"
set text-path "text/"
set temp-path "/tmp"
set motd "text/motd"
set telnet-banner "text/banner"
set userfile-perm 0600
set mod-path "modules/"

### BotNet Settings ###
set botnet-nick "Beersnob"
listen 3333 all
set remote-boots 0
set share-unlinks 0
set protect-telnet 1
set dcc-sanitycheck 1
set ident-timeout 0
set require-p 1
set open-telnets 0
set stealth-telnets 0
set use-telnet-banner 0
set connect-timeout 30
set dcc-flood-thr 3
set telnet-flood 5:60
set paranoid-telnet-flood 1
set resolve-timeout 15

### Channel Settings ###
loadmodule channels
set global-flood-chan 4:5
set global-flood-deop 0:0
set global-flood-kick 0:0
set global-flood-join 4:05
set global-flood-ctcp 2:02
set global-flood-nick 5:20
set global-aop-delay 0:00
set global-idle-kick 0
set global-chanmode "nt"
set global-stopnethack-mode 0
set global-revenge-mode 0
set global-ban-time 0
set global-exempt-time 60
set global-invite-time 60

set global-chanset {
    +autoop           +autovoice
    -bitch            -cycle
    +dontkickops      +dynamicbans
    +dynamicexempts   +dynamicinvites
    +enforcebans      -greet
    -inactive         +nodesynch
    +protectfriends   +protectops
    -revenge          -revengebot
    -secret           +seen
    +shared           -statuslog
    +userbans         +userexempts
    +userinvites      -protecthalfops
    -autohalfop
}

channel add #spf {
    chanmode "+tn"
    idle-kick 0
    flood-chan 5:4
    flood-join 5:10
    flood-ctcp 3:60
    flood-deop 0:0
    flood-kick 0:0
}
channel set #spf +enforcebans +dynamicbans +autoop +autovoice +protectops +protectfriends
#set opchars "@&~"

### Advanced Settings ###
set ignore-time 5
set hourly-updates 00
set owner "Marvz"
set notify-newusers "Marvz"
set default-flags "hp"
set whois-fields "url birthday"
set die-on-sighup 0
set die-on-sigterm 1
unbind dcc n tcl *dcc:tcl
unbind dcc n set *dcc:set
set must-be-owner 1
unbind dcc n simul *dcc:simul
set max-dcc 50
set enable-simul 1
set allow-dk-cmds 1
set dupwait-timeout 5

### Module Settings ###
loadmodule dns
loadmodule transfer
loadmodule share
loadmodule server
loadmodule ctcp
loadmodule irc
loadmodule notes
loadmodule console
loadmodule blowfish
checkmodule blowfish
loadmodule uptime

set keep-nick 1
set strict-host 0
set quiet-reject 1
set lowercase-ctcp 0
set answer-ctcp 3
set flood-msg 5:5
set flood-ctcp 3:60
set never-give-up 1
set strict-servernames 0
set server-cycle-wait 60
set server-timeout 60
set servlimit 0
set check-stoned 1
set use-console-r 0
set debug-output 0
set serverror-quit 1
set max-queue-msg 300
set trigger-on-ignore 0
set double-mode 0
set double-server 0
set double-help 0
set optimize-kicks 1
set stack-limit 4
set ctcp-mode 0
set bounce-bans 1
set bounce-modes 0
set max-bans 100
set max-modes 30
set kick-fun 0
set ban-fun 0
set learn-users 0
set wait-split 600
set wait-info 180
set mode-buf-length 200
bind msg - ident *msg:ident
bind msg - addhost *msg:addhost
set no-chanrec-info 0
set bounce-exempts 0
set bounce-invites 0
set max-exempts 20
set max-invites 20
set prevent-mixing 1
set max-dloads 3
set dcc-block 1024
set copy-to-tmp 1
set xfer-timeout 30
set share-compressed 1
set max-notes 50
set note-life 60
set allow-fwd 0
set notify-users 1
set notify-onjoin 1
set console-autosave 1
set force-channel 0
set info-party 0

# Many takeover attempts occur due to lame users blindly /msg ident'ing to
# the bot and attempting to guess passwords. We now unbind this command by
# default to discourage them. You can enable this command by un-commenting
# the following two lines.
bind msg - ident *msg:ident
bind msg - addhost *msg:addhost

# 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 +ib-ws"
  putquick "privmsg nickserv : identify *****"
} 

### Script Settings ###
source scripts/alltools.tcl
source scripts/action.fix.tcl
source scripts/bseen1.4.2.tcl
#source scripts/mel2.tcl
#source scripts/beer.tcl
#source gseen.conf
I read that the eggdrop needed those characters in order for it to know that it had SOP privileges in the chan. Any help would be appreciated. Thanks in advance.
m
marvz
Halfop
Posts: 64
Joined: Fri Jun 18, 2010 2:37 pm

Post by marvz »

Sorry for the bump. Does anyone know what's wrong with this? Thanks in advance.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Could you use the .chaninfo dcc partyline command to check the value of the idle-kick setting for your channel? It should be set to 0 to prevent idle-kicking, like in your config (just to make sure there isn't a different value stored within your channel's file).

If you need to alter one of the channel settings, use the .chanset command.
NML_375
m
marvz
Halfop
Posts: 64
Joined: Fri Jun 18, 2010 2:37 pm

Post by marvz »

Thank you. That's what was wrong. the global-idle-kick was on.
Post Reply