egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
Ecoste
Voice


Joined: 17 Jul 2013
Posts: 6

PostPosted: Wed Jul 17, 2013 1:57 pm    Post subject: New to EggDrop, won't connect to IRC or something. Reply with quote

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:
#! /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:
^[[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:
ln -s /usr/lib/eggdrop/modules /home/youruser/modules
ln -s /usr/share/eggdrop/scripts /home/youruser/scripts


I'm running Ubuntu, halp.[/code]
Back to top
View user's profile Send private message
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Wed Jul 17, 2013 2:05 pm    Post subject: Reply with quote

Try run the eggdrop in debug mode using command

Code:
./eggdrop -n config


And then see there what message you get when the bot is trying to connect to that specified server.
_________________
https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Ecoste
Voice


Joined: 17 Jul 2013
Posts: 6

PostPosted: Wed Jul 17, 2013 2:20 pm    Post subject: Reply with quote

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

Code:
./eggdrop -n config


And then see there what message you get when the bot is trying to connect to that specified server.


Code:
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.
Back to top
View user's profile Send private message
Hero
Halfop


Joined: 26 Jun 2012
Posts: 49
Location: root@localhost

PostPosted: Wed Jul 17, 2013 3:09 pm    Post subject: Reply with quote

Try This Command
Code:
./eggdrop -m eggdrop.conf

_________________
The Road To Hell Is Full Of Good Intentions
Back to top
View user's profile Send private message Visit poster's website
Ecoste
Voice


Joined: 17 Jul 2013
Posts: 6

PostPosted: Wed Jul 17, 2013 10:49 pm    Post subject: Reply with quote

Did already a couple o' times.
Back to top
View user's profile Send private message
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Thu Jul 18, 2013 4:30 am    Post subject: Reply with quote

Use
Code:
./eggdrop -n -m config


There you will see what error you get when the bot is trying to connect
_________________
https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Ecoste
Voice


Joined: 17 Jul 2013
Posts: 6

PostPosted: Thu Jul 18, 2013 10:26 am    Post subject: Reply with quote

Madalin wrote:
Use
Code:
./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.
Back to top
View user's profile Send private message
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Thu Jul 18, 2013 11:22 am    Post subject: Reply with quote

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)
_________________
https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Jul 18, 2013 1:07 pm    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
darksis
Voice


Joined: 04 Aug 2012
Posts: 16

PostPosted: Thu Jul 18, 2013 5:50 pm    Post subject: Reply with quote

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

./eggdrop -m

more something you need fix more your Eggdrop.conf its not really very well!!
Back to top
View user's profile Send private message
Johannes13
Halfop


Joined: 10 Oct 2010
Posts: 46

PostPosted: Fri Jul 19, 2013 5:04 am    Post subject: Reply with quote

The problem is that you use eggdrop 1.6.19.

See this.

I suggest switching to either 1.6.20 or 1.8.0
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Jul 19, 2013 8:37 am    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber