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.

Alice is ignoring me

Old posts that have not been replied to for several years.
Locked
I
Imoq

Alice is ignoring me

Post by Imoq »

Hello!

I just setup my eggdrop bot and loaded alice.tcl into it, among with some other scripts. (Almost) everything seems to be working fine, except alice.tcl is not responding at all, not to channels neither to private messages. I'll provide as much information as possible and I hope you can help me with this issue :)

[16:21] #Imoq# status
I am GR-Master, running eggdrop v1.6.13: 6 users (mem: 97k)
Online for 02:48 (background) CPU 00:04 cache hit 62.3%
Admin: Imoq <email: imoq@mydomain.com>
Config file: ./GR-Master.conf
OS: Linux 2.4.18-18.7.x
Tcl library: /usr/lib/tcl8.3
Tcl version: 8.3.3 (header version 8.3.3)
Channels: #ImoqLand(want ops!), #station51(want ops!),
Online as: GR-Master!gr-master@Station51.2166FBBE5959E0.TR (Bot Master!)
Server irc.server.net:6667 (connected for 02:48)
#ImoqLand : 3 members, enforcing "+stn-klim" (greet, auto-op)
#station51: 3 members, enforcing "+tn" (greet, auto-op)

I have set the following variables in alice.tcl file:

set alice_cookiesfile "$nick.cookies"
set alice_cookiesexpire 7
set alice_respondpriv 1
set alice_respondchan 1
set alice_respondrequirenick 1
set alice_respondwithnick 1
set alice_channels "*"
#(I have also set +alice for channels it is into)
set alice_timeoutchat 5
set alice_logging 1
set alice_log_path "logs/"
set alice_engine 2

There is connection between server where eggdrop is running and the one chosen in alice_engine, since I have been able to sucessfully access the URL for that option: http://217.6.247.139/alicebot/src/talk.php I have tried other engines as well, which I can reach via shell (using links, lynx, wget or simply telnet to their ip/port) but alice.tcl from bot won't answer.

I have the following scripts loaded in eggdrop.conf:

source scripts/alltools.tcl
source scripts/action.fix.tcl
source scripts/egghttp.tcl
source scripts/google.tcl
source scripts/imdb-20030014.tcl
source scripts/userinfo.tcl
loadhelp userinfo.help
source scripts/bseen1.4.2.tcl
source scripts/commands.tcl
source scripts/sysinfo.tcl
source scripts/mynews.tcl
source scripts/alice.tcl

All of them (includying google.tcl, which also uses egghttp.tcl) are working all right, but alice.tcl is not. When the bot is queried in any channel it sits on and somebody asks him anything by it's nickname it doesn't response at all. The same thing happens if a user sends a private message; the bot just won't respond it.

HOWEVER, since I have the setting "set alice_logging 1" the bot does log the requests that users make to him, as I show here:

[imoq@server eggdrop]$ cat logs/imoq.alice.log
[(12.28.02) 11:21] <imoq> hello
[(12.28.02) 11:21] <imoq> hi, how are you?
[(12.28.02) 11:25] <imoq> come on, answer me...
[(12.28.02) 11:32] <imoq> hiya, robot
[(12.28.02) 11:34] <imoq> hello, GR-Master
[(12.28.02) 11:37] <imoq> GR-Master come on, answer me! are you there?
[(12.28.02) 11:49] <imoq> hello GR-Master, how are you?
[(12.28.02) 13:06] <imoq> Are you mad at me?

Same thing in the channel (sorry for the bad words):

[imoq@server eggdrop]$ cat logs/#imoqland.alice.log
[(12.28.02) 11:28] <imoq> Anwser me already, dammit!
[(12.28.02) 11:33] <imoq> stupid robot you are,
[(12.28.02) 13:00] <imoq> are you still being a jerk?
[(12.28.02) 13:06] <imoq> come on, answer me please.

... it only logs the public messages that are made with bot's nickname in it (as in "GR-Master: come on, answer me please") so I assume it is doing the right thing logging it all, but it just won't answer.

I think I provided enough info; I hope you can help me. I would like to specially thank strikelight for making such nice and cool TCL scripts.

Thank you for your help.

Imoq.
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Re: Alice is ignoring me

Post by strikelight »

What version of alice.tcl are you using?

If you are using an older version, try upgrading to v1.2.3 from www.tclscript.com and see if that helps.
I
Imoq

Post by Imoq »

Thank you for your answer, but that is the version I am using currently:

[01:01] alice.tcl 1.2.3 by strikelight is now loaded.

I have noticed also that periodically I get messages of this kind:

[00:16] ALICE: Expiring old alice cookies ...
[00:16] ALICE: Saving alice cookie data ...

but in cookie file there is nothing, but:

[imoq@server eggdrop]$ cat GR-Master.cookies
array set alice_cookies {}
[imoq@server eggdrop]$
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

I've tested it on my own bot, and it seems to work, however, I went to
the page (of the engine in question) from my PC, and the page loaded fine, but the communication between me and the alice agent was rather
slow, reaching execution times of ~40seconds. It is possible that your bot is experiencing similar wait times, thus timing out. I suggest using another engine.
I
Imoq

Post by Imoq »

I guess you are absolutelly right!

I tried switching from engine 3 (no response at all) to engine 0 (no response), then engine 1 (no response), then engine 2... just after like 3 lines, bot started to talk!

It doesn't answer most of what I tell it, so, there is something terribly wrong with my bot. It sits in a very high bandwidth connection, so I don't think it is an issue, since he has a T3 connection to the world and pages answer me almost immediatly. Do you think there could be any other related problem with it?

[03:34] #Imoq# set alice_engine 0
Ok, set.
[03:34] [Imoq!imoq@Station51.B34243A9A78B.TR] hello, how are you?
[03:34] [Imoq!imoq@Station51.B34243A9A78B.TR] this message has been sent at 15:34:49
[03:35] @#ImoqLand (+stn) : [m/2 o/2 h/0 v/0 n/0 b/0 e/- I/-]
[03:35] [Imoq!imoq@Station51.B34243A9A78B.TR] It's now 15:35:53 and you haven't responded yet :(
[03:36] [Imoq!imoq@Station51.B34243A9A78B.TR] tic, tac, tic tac...
[03:36] #ImoqLand: mode change '+o Bill' by GR-Master!gr-master@Station51.2166FBBE5959E0.TR
.set alice_engine 1
[03:36] #Imoq# set alice_engine 1
Ok, set.
[03:36] [Imoq!imoq@Station51.B34243A9A78B.TR] Let's try again with a new engine... how are you, GR-Master? :)
[03:37] [Imoq!imoq@Station51.B34243A9A78B.TR] Come on, just a little tiny answer from you? :)
[03:38] [Imoq!imoq@Station51.B34243A9A78B.TR] more than two minutes later... :(
[03:38] [Imoq!imoq@Station51.B34243A9A78B.TR] ok, I'll try another engine then.
.set alice_engine 2
[03:38] #Imoq# set alice_engine 2
Ok, set.
[03:38] [Imoq!imoq@Station51.B34243A9A78B.TR] Hello, GR-Master. How are you doing with your new engine?
[03:40] @#ImoqLand (+stn) : [m/3 o/3 h/0 v/0 n/0 b/0 e/- I/-]
[03:40] [Imoq!imoq@Station51.B34243A9A78B.TR] um... more than one minute later...
[03:41] [Imoq!imoq@Station51.B34243A9A78B.TR] wow, you actually answered! :)
[03:42] [Imoq!imoq@Station51.B34243A9A78B.TR] OK, I can see it is a problem in pages response time, then.
[03:42] [Imoq!imoq@Station51.B34243A9A78B.TR] Thank you for helping me debuging it ;)
[03:42] [Imoq!imoq@Station51.B34243A9A78B.TR] hahaha you are alive! I love you!
[03:43] [Imoq!imoq@Station51.B34243A9A78B.TR] you surelly take your time to answer me :(
[03:45] @#ImoqLand (+stn) : [m/3 o/3 h/0 v/0 n/0 b/0 e/- I/-]
[03:45] [Imoq!imoq@Station51.B34243A9A78B.TR] hehehe yeah, but I like you know, even if you take like 3 minutes to answer a simple matter.

Thank you for your answer again :)
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

You must NOT set the engine with '.set' .. the alice_engine variable determines what OTHER variables will be set to upon load up of the TCL itself. Therefore, you MUST edit the tcl itself, changing the alice_engine variable, and then either .rehashing or .restarting.

A couple of the engines no longer work as well, such as engine 0 and 4.
Imoq wrote:I guess you are absolutelly right!

I tried switching from engine 3 (no response at all) to engine 0 (no response), then engine 1 (no response), then engine 2... just after like 3 lines, bot started to talk!

It doesn't answer most of what I tell it, so, there is something terribly wrong with my bot. It sits in a very high bandwidth connection, so I don't think it is an issue, since he has a T3 connection to the world and pages answer me almost immediatly. Do you think there could be any other related problem with it?

[03:34] #Imoq# set alice_engine 0
Ok, set.
[03:34] [Imoq!imoq@Station51.B34243A9A78B.TR] hello, how are you?
[03:34] [Imoq!imoq@Station51.B34243A9A78B.TR] this message has been sent at 15:34:49
[03:35] @#ImoqLand (+stn) : [m/2 o/2 h/0 v/0 n/0 b/0 e/- I/-]
[03:35] [Imoq!imoq@Station51.B34243A9A78B.TR] It's now 15:35:53 and you haven't responded yet :(
[03:36] [Imoq!imoq@Station51.B34243A9A78B.TR] tic, tac, tic tac...
[03:36] #ImoqLand: mode change '+o Bill' by GR-Master!gr-master@Station51.2166FBBE5959E0.TR
.set alice_engine 1
[03:36] #Imoq# set alice_engine 1
Ok, set.
[03:36] [Imoq!imoq@Station51.B34243A9A78B.TR] Let's try again with a new engine... how are you, GR-Master? :)
[03:37] [Imoq!imoq@Station51.B34243A9A78B.TR] Come on, just a little tiny answer from you? :)
[03:38] [Imoq!imoq@Station51.B34243A9A78B.TR] more than two minutes later... :(
[03:38] [Imoq!imoq@Station51.B34243A9A78B.TR] ok, I'll try another engine then.
.set alice_engine 2
[03:38] #Imoq# set alice_engine 2
Ok, set.
[03:38] [Imoq!imoq@Station51.B34243A9A78B.TR] Hello, GR-Master. How are you doing with your new engine?
[03:40] @#ImoqLand (+stn) : [m/3 o/3 h/0 v/0 n/0 b/0 e/- I/-]
[03:40] [Imoq!imoq@Station51.B34243A9A78B.TR] um... more than one minute later...
[03:41] [Imoq!imoq@Station51.B34243A9A78B.TR] wow, you actually answered! :)
[03:42] [Imoq!imoq@Station51.B34243A9A78B.TR] OK, I can see it is a problem in pages response time, then.
[03:42] [Imoq!imoq@Station51.B34243A9A78B.TR] Thank you for helping me debuging it ;)
[03:42] [Imoq!imoq@Station51.B34243A9A78B.TR] hahaha you are alive! I love you!
[03:43] [Imoq!imoq@Station51.B34243A9A78B.TR] you surelly take your time to answer me :(
[03:45] @#ImoqLand (+stn) : [m/3 o/3 h/0 v/0 n/0 b/0 e/- I/-]
[03:45] [Imoq!imoq@Station51.B34243A9A78B.TR] hehehe yeah, but I like you know, even if you take like 3 minutes to answer a simple matter.

Thank you for your answer again :)
t
tainted
Master
Posts: 239
Joined: Sun May 12, 2002 8:00 pm
Location: chicago
Contact:

Post by tainted »

It is the servers that lag - I removed the tcl after noticing the cpu cycles it eats on the lil 200mhz during periods of lag from bot to engine server. (cpu spikes didnt happen all of the time, but went away completely since unloading alice. *shrug*)
I
Imoq

Post by Imoq »

strikelight wrote:You must NOT set the engine with '.set' .. the alice_engine variable determines what OTHER variables will be set to upon load up of the TCL itself. Therefore, you MUST edit the tcl itself, changing the alice_engine variable, and then either .rehashing or .restarting.

A couple of the engines no longer work as well, such as engine 0 and 4.
Now I know it; thanks for pointing it out :)

I don't think I read that warning anywhere, probably should get documented.

Well, now alice is responding but still kind of slowly, I gues I'll try to figure out how to have the engine running in the same eggdrop server.

Again, thanks for your responses.
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

tainted wrote:It is the servers that lag - I removed the tcl after noticing the cpu cycles it eats on the lil 200mhz during periods of lag from bot to engine server. (cpu spikes didnt happen all of the time, but went away completely since unloading alice. *shrug*)
I hole heartedly doubt that. As implied earlier, alice.tcl will not wait forever for a reply from the server, simply 60 seconds (the default time supplied by egghttp.tcl), and since the eggdrop connect/listen commands are non-blocking, it simply isn't possible to blame cpu spikes on lag from bot (alice.tcl) to server (alice engine).
Y
Yoda
Halfop
Posts: 78
Joined: Thu Oct 24, 2002 2:57 am
Location: Milano, Italy
Contact:

Post by Yoda »

./chanset #channel +alice

if you dont do it nothing happen

:D
Y
Yoda
Halfop
Posts: 78
Joined: Thu Oct 24, 2002 2:57 am
Location: Milano, Italy
Contact:

corrections

Post by Yoda »

in dcc:

.chanset #channelname +alice
I
Imoq

Post by Imoq »

Thanks, Yoda, but as my original post said:

#(I have also set +alice for channels it is into)

Anyway, strikelight helped me to find out that it was an engine problem, now it is working :)
t
tainted
Master
Posts: 239
Joined: Sun May 12, 2002 8:00 pm
Location: chicago
Contact:

Post by tainted »

strikelight wrote:
tainted wrote:It is the servers that lag - I removed the tcl after noticing the cpu cycles it eats on the lil 200mhz during periods of lag from bot to engine server. (cpu spikes didnt happen all of the time, but went away completely since unloading alice. *shrug*)
I hole heartedly doubt that. As implied earlier, alice.tcl will not wait forever for a reply from the server, simply 60 seconds (the default time supplied by egghttp.tcl), and since the eggdrop connect/listen commands are non-blocking, it simply isn't possible to blame cpu spikes on lag from bot (alice.tcl) to server (alice engine).
Well, then it must be the invisible eggdrop troublemaker that doesn't like the script, since I have not had a spike in weeks since I quit using it. :roll:
Locked