| View previous topic :: View next topic |
| Author |
Message |
rrc55 Voice
Joined: 11 Mar 2009 Posts: 29
|
Posted: Wed Mar 11, 2009 10:11 am Post subject: Setting User in User File |
|
|
| 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. |
|
| Back to top |
|
 |
DaRkOoO Halfop
Joined: 27 Sep 2008 Posts: 67
|
Posted: Wed Mar 11, 2009 2:35 pm Post subject: |
|
|
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..  |
|
| Back to top |
|
 |
rrc55 Voice
Joined: 11 Mar 2009 Posts: 29
|
Posted: Thu Mar 12, 2009 12:53 am Post subject: |
|
|
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:
| Quote: | [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):
| Quote: | | 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.
Ok, it just created the file after exiting the program (it doesn't always do that). Here are its contents:
| Quote: | #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. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu Mar 12, 2009 11:33 am Post subject: |
|
|
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):
| Quote: | 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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
rrc55 Voice
Joined: 11 Mar 2009 Posts: 29
|
Posted: Thu Mar 12, 2009 3:45 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu Mar 12, 2009 4:08 pm Post subject: |
|
|
Could you check this part in your config file?
| Code: | # 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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
rrc55 Voice
Joined: 11 Mar 2009 Posts: 29
|
Posted: Fri Mar 13, 2009 2:27 am Post subject: |
|
|
That was the problem. Forgot I had changed the default hello to something else.
Thank you so much.  |
|
| Back to top |
|
 |
rrc55 Voice
Joined: 11 Mar 2009 Posts: 29
|
Posted: Fri Mar 13, 2009 3:44 pm Post subject: |
|
|
| Is there any way to delay the reconnecting of my bot to a server upon a disconnect? |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Mar 13, 2009 5:50 pm Post subject: |
|
|
I believe this is what you are looking for:
| Code: | # 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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
rrc55 Voice
Joined: 11 Mar 2009 Posts: 29
|
Posted: Sat Mar 14, 2009 3:39 am Post subject: |
|
|
| Figured that was probably it. Thanks again. |
|
| Back to top |
|
 |
rrc55 Voice
Joined: 11 Mar 2009 Posts: 29
|
Posted: Sun Mar 15, 2009 2:01 pm Post subject: |
|
|
| nml375 wrote: | I believe this is what you are looking for:
| Code: | # 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. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sun Mar 15, 2009 8:41 pm Post subject: |
|
|
Hmm..
Think I'll have to dig into the code to check/verify that one :/ _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
rrc55 Voice
Joined: 11 Mar 2009 Posts: 29
|
Posted: Mon Mar 16, 2009 6:40 pm Post subject: |
|
|
 |
|
| Back to top |
|
 |
rrc55 Voice
Joined: 11 Mar 2009 Posts: 29
|
Posted: Sat Mar 21, 2009 10:33 am Post subject: |
|
|
pretty please with a cherry ontop  |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sat Mar 21, 2009 12:05 pm Post subject: |
|
|
*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: | | cycle_time = server_cycle_wait; |
Edit: Fixed minor brainfart.. (it's disconnect, not connect) _________________ NML_375, idling at #eggdrop@IrcNET
Last edited by nml375 on Sat Mar 21, 2009 2:40 pm; edited 1 time in total |
|
| Back to top |
|
 |
|