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.

New to EggDrop, won't connect to IRC or something.

General support and discussion of Eggdrop bots.
Post Reply
E
Ecoste
Voice
Posts: 6
Joined: Wed Jul 17, 2013 1:51 pm

New to EggDrop, won't connect to IRC or something.

Post by Ecoste »

Hello, I'm new to IRC and to EggDrop and for some reason it will not connect to FreeNode. I can't connect to it via TelNet either for some reason.(telnet 127.0.0.1 3333)

Code: Select all

#! /path/to/executable/eggdrop
# ^- set that to the directory eggdrop is in ie "#! /home/lamest/egg/eggdrop"
#
# $Id: eggdrop.simple.conf,v 1.3 2001/07/18 06:20:55 tothwolf Exp $
#
# This is a sample configuration file for your bot.  You will definitely
# want to edit this, to set up your bot.  Right now it creates a bot called
# "LamestBot" which sits on channel #lamest.
#
# more options can be found in files in doc/settings/
#
# IMPORTANT: Remember to make install and cd to the directory it created
# (~/eggdrop by default) before you continue, running the bot from
# eggdrop1.6.x/ will not work.
#
# PLEASE EDIT THIS FILE COMPLETELY! YOUR BOT WILL NOT FUNCTION PROPERLY IF
# YOU DO NOT CONFIGURE IT CORRECTLY! WE CAN NOT STRESS THIS ENOUGH!

# don't edit those 9 lines now!!
set mod-path "modules/"
set help-path "help/"
set text-path "text/"
loadmodule dns
loadmodule channels
loadmodule server
loadmodule ctcp
loadmodule irc
loadmodule notes
loadmodule console
checkmodule blowfish

# start configuring here!

##### variables:
set nick "Ecoste_Bot"
# the nick of the bot, that which it uses on IRC, and on the botnet
# unless you specify a sperate botnet-nick

set altnick "Llamab?t"
# an alternative nick to use if the nick specified by 'set nick' is
# unavailable. All '?' characters will be replaced by a random number.

set realname "No Name"
# what to display in the real-name field for the bot

set servers {
   chat.freenode.net:6666
}
# the server list -- the bot will start at the first server listed, and cycle
# through them whenever it's disconnected
# (please note: you need to change these servers to YOUR network's servers)

channel add #lamest {
  chanmode "+nt-likm"
  idle-kick 0
  stopnethack-mode 0
}

channel set #lamest +enforcebans +dynamicbans +userbans
channel set #lamest +dynamicexempts +userexempts +dynamicinvites +userinvites
channel set #lamest -autoop -bitch +protectops +protectfriends +dontkickops
channel set #lamest +greet +statuslog
channel set #lamest +revenge +autovoice
channel set #lamest -secret -shared +cycle
channel set #lamest -inactive -seen +nodesynch

set net-type 0
# set here your network
# [0/1/2/3/4/5] What is your network?
# 0 = Efnet (non +e/+I hybrid), 1 = IRCnet, 2 = Undernet, 3 = Dalnet,
# 4 = Efnet +e/+I hybrid, 5 = Others


# various stuff...

listen 3333 all
# set here the port where eggdrop should listen von telnet connections

set owner "MrLame, MrsLame"
# set here the list of owners of the bot


# files & directories

set userfile "LamestBot.user"
set chanfile "LamestBot.chan"
set temp-path "/tmp"
logfile msbxco * "logs/eggdrop.log"
logfile jpk #lamest "logs/lamest.log"


# default console flags
set console "mkcobxs"


# you have to remove this line to make your bot work

##### SCRIPTS #####

# these are some commonly loaded (and needed) scripts.
source scripts/alltools.tcl
source scripts/action.fix.tcl
source scripts/compat.tcl
source scripts/userinfo.tcl
loadhelp userinfo.help
I got eggdrop via apt-get install and edited the simple config file. Here's the output from my shell.

Code: Select all

^[[Aecoste@ecoste-R520-R522-R620:~$ eggdrop -m ~/simple.conf

Eggdrop v1.6.19+SSL (C) 1997 Robey Pointer (C) 2008 Eggheads
[18:55] --- Loading eggdrop v1.6.19+SSL (Wed Jul 17 2013)
[18:55] Module loaded: channels        
[18:55] Module loaded: server          
[18:55] Module loaded: ctcp            
[18:55] Module loaded: irc             
[18:55] Module loaded: notes            (with lang support)
[18:55] Module loaded: blowfish        


STARTING BOT IN USERFILE CREATION MODE.
Telnet to the bot and enter 'NEW' as your nickname.
OR go to IRC and type:  /msg NiceBot hello
This will make the bot recognize you as the master.

[18:55] === NiceBot: 2 channels, 0 users.
I detect NiceBot already running from this directory.
If this is incorrect, erase the 'pid.NiceBot'
When I installed it at first it didn't work, the files weren't in the right place. So I also did.

Code: Select all

ln -s /usr/lib/eggdrop/modules /home/youruser/modules
ln -s /usr/share/eggdrop/scripts /home/youruser/scripts
I'm running Ubuntu, halp.[/code]
User avatar
Madalin
Master
Posts: 310
Joined: Fri Jun 24, 2005 11:36 am
Location: Constanta, Romania
Contact:

Post by Madalin »

Try run the eggdrop in debug mode using command

Code: Select all

./eggdrop -n config
And then see there what message you get when the bot is trying to connect to that specified server.
E
Ecoste
Voice
Posts: 6
Joined: Wed Jul 17, 2013 1:51 pm

Post by Ecoste »

Madalin wrote:Try run the eggdrop in debug mode using command

Code: Select all

./eggdrop -n config
And then see there what message you get when the bot is trying to connect to that specified server.

Code: Select all

Eggdrop v1.6.19+SSL (C) 1997 Robey Pointer (C) 2008 Eggheads
[19:16] Allocated bind table unld (flags 1)
[19:16] Allocated bind table time (flags 1)
[19:16] Allocated bind table note (flags 0)
[19:16] Allocated bind table nkch (flags 1)
[19:16] Allocated bind table load (flags 1)
[19:16] Allocated bind table link (flags 1)
[19:16] Allocated bind table filt (flags 1)
[19:16] Allocated bind table disc (flags 1)
[19:16] Allocated bind table dcc (flags 0)
[19:16] Allocated bind table chpt (flags 1)
[19:16] Allocated bind table chon (flags 1)
[19:16] Allocated bind table chof (flags 1)
[19:16] Allocated bind table chjn (flags 1)
[19:16] Allocated bind table chat (flags 1)
[19:16] Allocated bind table bot (flags 0)
[19:16] Allocated bind table bcst (flags 1)
[19:16] Allocated bind table away (flags 1)
[19:16] Allocated bind table act (flags 1)
[19:16] Allocated bind table evnt (flags 1)
[19:16] --- Loading eggdrop v1.6.19+SSL (Wed Jul 17 2013)
[19:16] Module loaded: channels        
[19:16] Allocated bind table wall (flags 1)
[19:16] Allocated bind table raw (flags 1)
[19:16] Allocated bind table notc (flags 1)
[19:16] Allocated bind table msgm (flags 1)
[19:16] Allocated bind table msg (flags 0)
[19:16] Allocated bind table flud (flags 1)
[19:16] Allocated bind table ctcr (flags 1)
[19:16] Allocated bind table ctcp (flags 1)
[19:16] Module loaded: server          
[19:16] Module loaded: ctcp            
[19:16] Allocated bind table topc (flags 1)
[19:16] Allocated bind table splt (flags 1)
[19:16] Allocated bind table sign (flags 1)
[19:16] Allocated bind table rejn (flags 1)
[19:16] Allocated bind table part (flags 1)
[19:16] Allocated bind table nick (flags 1)
[19:16] Allocated bind table mode (flags 1)
[19:16] Allocated bind table kick (flags 1)
[19:16] Allocated bind table join (flags 1)
[19:16] Allocated bind table pubm (flags 1)
[19:16] Allocated bind table pub (flags 0)
[19:16] Allocated bind table need (flags 1)
[19:16] Module loaded: irc             
[19:16] LANG: Section loaded: notes
[19:16] LANG: 42 messages of 47 lines loaded from /usr/share/eggdrop/language/notes.english.lang
[19:16] LANG: 42 adds, 0 updates to message table
[19:16] Module loaded: notes            (with lang support)
[19:16] Module loaded: blowfish        
[19:16] * USER FILE NOT FOUND!  (try './eggdrop -m simple.conf' to make one)
And then I make the conf and run the same command and it gives me the same error.
H
Hero
Halfop
Posts: 49
Joined: Tue Jun 26, 2012 6:27 pm
Location: root@localhost
Contact:

Post by Hero »

Try This Command

Code: Select all

./eggdrop -m eggdrop.conf
The Road To Hell Is Full Of Good Intentions
E
Ecoste
Voice
Posts: 6
Joined: Wed Jul 17, 2013 1:51 pm

Post by Ecoste »

Did already a couple o' times.
User avatar
Madalin
Master
Posts: 310
Joined: Fri Jun 24, 2005 11:36 am
Location: Constanta, Romania
Contact:

Post by Madalin »

Use

Code: Select all

./eggdrop -n -m config
There you will see what error you get when the bot is trying to connect
E
Ecoste
Voice
Posts: 6
Joined: Wed Jul 17, 2013 1:51 pm

Post by Ecoste »

Madalin wrote:Use

Code: Select all

./eggdrop -n -m config
There you will see what error you get when the bot is trying to connect
Hmm, not it worked for some reason. Thanks guys, don't know what the problem was, but it suddenly worked with this command.
User avatar
Madalin
Master
Posts: 310
Joined: Fri Jun 24, 2005 11:36 am
Location: Constanta, Romania
Contact:

Post by Madalin »

Starting the bot with -n option will let the bot run but if you close the exit the shell account the bot will die. So start the eggdrop without -n option. That is only for debug (to see whats wrong with the eggdrop why hes not connecting)
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

This is a known issue for this antique eggdrop. If threaded tcl-libraries are not properly detected, your eggdrop will not be able to fork() into background, meaning it will work perfectly fine when using any of "interactive" options (-n, -nt, etc), but not when you try to launch it into background.

More details here: http://eggwiki.org/Bugs/Threaded_Tcl
NML_375
d
darksis
Voice
Posts: 16
Joined: Sat Aug 04, 2012 8:17 am

Post by darksis »

listen if you run your bot from linux then you only need write

Code: Select all

./eggdrop -m
more something you need fix more your Eggdrop.conf its not really very well!!
J
Johannes13
Halfop
Posts: 46
Joined: Sun Oct 10, 2010 11:38 am

Post by Johannes13 »

The problem is that you use eggdrop 1.6.19.

See this.

I suggest switching to either 1.6.20 or 1.8.0
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Sorry, I usually don't drop to this level (but it'd vacation)...
Johannes13, I've already provided that link two posts up. If you are going to use a descriptive link-text rather than showing the actual URL itself, use something better than "this". All in all, your post provided no new information to the thread, and is just post-farming...
NML_375
Post Reply