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.

Setting User in User File

General support and discussion of Eggdrop bots.
r
rrc55
Voice
Posts: 29
Joined: Wed Mar 11, 2009 9:33 am

Setting User in User File

Post by rrc55 »

I've just gone over the configuration file and installed my bot. Everything starts up ok except that I can't get an owner or any other users to show up in the user file. I message my bot with the hello message and it does nothing. My bot receives the message just fine. I've read all the relevant documentation so I'm just too noob to understand it. Please help. I'm on Fedora 10 and I did use the -m option. Thank you.
D
DaRkOoO
Halfop
Posts: 67
Joined: Sat Sep 27, 2008 7:27 am

Post by DaRkOoO »

Just try to make new user file and start bot again with -m *.conf,just when your bot have connected to irc,say hello on his pvt..He will recognize you,he must.. ;)
r
rrc55
Voice
Posts: 29
Joined: Wed Mar 11, 2009 9:33 am

Post by rrc55 »

I've tried that many times. Sometimes it won't create a user file and other times it'll create one with no users in it. If it does create a user file with no users in it, does it still know that I'm it's owner?

Trying it right now and it won't even create my user file. Here is what I get with the -m option:
[T3256@gury eggdrop]$ ./eggdrop -m eggdrop.conf

Eggdrop v1.6.19 (C) 1997 Robey Pointer (C) 2008 Eggheads
[23:19] --- Loading eggdrop v1.6.19 (Wed Mar 11 2009)
[23:19] Module loaded: blowfish
[23:19] Module loaded: dns
[23:19] Module loaded: channels
[23:19] Module loaded: server
[23:19] Module loaded: ctcp
[23:19] Module loaded: irc
[23:19] Module loaded: console (with lang support)
[23:19] Module loaded: seen
[23:19] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).
[23:19] use '.help userinfo' for commands.


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

[23:19] === Botilator: 1 channels, 0 users.
Launched into the background (pid: 13624)
When I use the -mnt options to use the party line and I do a .whois <nynick>, I get the following message (I've already done /msg Botilator hello at this point):
You do not have access to whois handles other than your own.
I'll get that message even if it does create an empty user file. It's so wierd how it will only create a user file seemingly at random. I'm baffled. :cry:

Ok, it just created the file after exiting the program (it doesn't always do that). Here are its contents:
#4v: eggdrop v1.6.19 -- Botilator -- written Wed Mar 11 23:44:22 2009
HQ - p
--LASTON 1236835707 partyline
--XTRA created 1236835707
::#syndrom bans
&&#syndrom exempts
$$#syndrom invites
Thanks for the reply.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

That would suggest your bot isn't receiving your "hello" for one reason or another.
You said you could see the bot receiving the "hello" (I assume when starting using the -ntm options, or from checking logfiles). Did this show up as a command, or simply a chatlog?

Also, did you recieve any notice's from your bot like these (%s replaced with nicknames and hostmasks):
Hi %s! I'm %s, an eggdrop bot.
I'll recognize you by hostmask '%s' from now on.
As master you really need to set a password: with /MSG %s pass <your-chosen-password>.
All major commands are used from DCC chat. From now on, you don't need to use the -m option when starting the bot. Enjoy !!!
Note: When you are using the -nt option, you will be logged in using a special handle "HQ", which by default only has the +p flag (thus no master or owner privileges). Hence you get that error regarding whois.

On a final note, upon doing the "owner registration", your eggdrop will instantly save/create the userfile. However, in any other circumstances, your userfile will be saved once an hour (default on the hour, see the "hourly-update" config setting). Most likely, the randomness you are observing is related to whether your eggdrop was running during this point of the hour or not.
NML_375
r
rrc55
Voice
Posts: 29
Joined: Wed Mar 11, 2009 9:33 am

Post by rrc55 »

Yes I did use the -ntm options. My messages to the bot show up as chat logs and I receive no notices from my bot of any kind. Limited privileges using the -nt option noted. I'm stumped.

Thank you.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Could you check this part in your config file?

Code: Select all

# Many IRCops find bots by seeing if they reply to 'hello' in a msg.
# You can change this to another word by un-commenting the following
# two lines and changing "myword" to the word wish to use instead of
# 'hello'. It must be a single word.
#unbind msg - hello *msg:hello
#bind msg - myword *msg:hello
Specifically, that there is indeed a # in front of the last two lines?
NML_375
r
rrc55
Voice
Posts: 29
Joined: Wed Mar 11, 2009 9:33 am

Post by rrc55 »

That was the problem. Forgot I had changed the default hello to something else.

Thank you so much. :)
r
rrc55
Voice
Posts: 29
Joined: Wed Mar 11, 2009 9:33 am

Post by rrc55 »

Is there any way to delay the reconnecting of my bot to a server upon a disconnect?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

I believe this is what you are looking for:

Code: Select all

# This setting defines how long Eggdrop should wait before moving from one
# server to another on disconnect. If you set 0 here, Eggdrop will not wait
# at all and will connect instantly. Setting this too low could result in
# your bot being K:Lined.
set server-cycle-wait 60
NML_375
r
rrc55
Voice
Posts: 29
Joined: Wed Mar 11, 2009 9:33 am

Post by rrc55 »

Figured that was probably it. Thanks again.
r
rrc55
Voice
Posts: 29
Joined: Wed Mar 11, 2009 9:33 am

Post by rrc55 »

nml375 wrote:I believe this is what you are looking for:

Code: Select all

# This setting defines how long Eggdrop should wait before moving from one
# server to another on disconnect. If you set 0 here, Eggdrop will not wait
# at all and will connect instantly. Setting this too low could result in
# your bot being K:Lined.
set server-cycle-wait 60
Turns out that setting doesn't do it. When I get disconnected form a server, eggdrop immediately tries to reconnect to it. I set it to 300.

I think what's happening is that it waits the 5 minutes to reconnect only when my internet connection isn't immediately available. If the connection to the server gets dropped for whatever reason, but my connection is immediately available, it goes ahead and reconnects right away.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Hmm..
Think I'll have to dig into the code to check/verify that one :/
NML_375
r
rrc55
Voice
Posts: 29
Joined: Wed Mar 11, 2009 9:33 am

Post by rrc55 »

:shock:
r
rrc55
Voice
Posts: 29
Joined: Wed Mar 11, 2009 9:33 am

Post by rrc55 »

pretty please with a cherry ontop :mrgreen:
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

*Vrrz* Secret code Accepted! *beep*

Did some digging, and unfortunately, the time specified in the server-cycle-wait setting only affects the time in between connection attempts, not between disconnect and reconnect.
There is, unfortunately, no way of delaying new server connections from the disconnect without editing the source code. One simple hack, that I believe would do the trick would be to add a line like below to the function disconnect_server() in file src/mod/server.mod/servmsg.c:

Code: Select all

 cycle_time = server_cycle_wait;
Edit: Fixed minor brainfart.. (it's disconnect, not connect)
Last edited by nml375 on Sat Mar 21, 2009 2:40 pm, edited 1 time in total.
NML_375
Post Reply