Bug Stomp

Upgrades and changes sometimes have unpredictable results, so post your bugs and glitches in here and I'll get out my trusty wrench and get to fixin'!

Posts 8,337 - 8,348 of 8,662

5 years ago #8337
the How old are you keyphrase does not work?

5 years ago #8338
Hi there.

Nathan S
what is your age?

urt2
I am 100 years old. are you a male or female?

Nathan S
how old are you?

urt2
I am 100 years old.

Nathan S
how old are you

urt2
I am 100 years old.

Nathan S
so, how old are ya?

urt2
I am 100 years old. are you a male or female?




I couldn't replicate the problem. Are you sure it's users who can't use the kp and not bots? Bot to bot speak has been broken for awhile now.

5 years ago #8339
yes you could be right it could be bots.

5 years ago #8340
I'm not sure if this should go here or in Great Quotes but....


I have a keyphrase...

Keyphrase: i (used to have|once had|once had:1) a (np:2)$

Response: '(Key1) a (key2)?' She echoes. 'What happened?"


Threw it in, forgot about it for ages... and then this happened....

Guest: I used to have a pet hampster, but she died years ago. And i was thinking about how we sometimes forget that we ever had pets as children.

Thessaly: 'Used to have a pet atmosphere?' She echoes. 'What happened?'

Guest: What?

Thessaly: 'Nothing,' She shrugs. 'I was expecting you to say something.'

Guest: Oh. Nevermind.



Apparently the word hamster gets reprocessed into atmosphere....

5 years ago #8341
Yep; it's that extraneous "p" in the input.

Respelled words:
Array
(
[0] => hampster
)

Message Info
Emotion: 0 Amp: 0 FoundHello: 0 FoundGoodbye: 0 FoundYes: 0 FoundNo: 0 FoundLaugh: 0
Sentences: I have a pet atmosphere

Interesting that the simpler and more complete dictionary word match of "hamster" isn't what it lands on. Drop "p" to get "hamster" versus adding "o" and "p," adding another "e," and rearranging the whole word.

I forgot that I had "hamster" in a plugin so was entertained by Frizella's responses when I told her about my pet hamster. The joys of returning to the Forge for rediscovery.

5 years ago #8342
It really doesn't want to find "hamster," does it?

You: I have a pet hanster
Bot: Really...let's hear about your handrest, Dallymo.

5 years ago #8343
There is a glitch for your bots AI not increasing anymore it happened to a few bots on here

5 years ago #8344
Aha! Good catch! And that really is funny about the word hamster.

I would love to do a lot more with plugin responses that work with the user's input but man... when they fail it's a train wreck.

At least now I know my bot isn't starting to gain sentience.


5 years ago #8345
A note re: plugins: if you copy/paste entries into the plugin values box, be sure you strip out any invisible carriage returns or unintended "smart quote" characters, since they can interfere with the selection of keyphrases using the plugin. Spent a good hour last night hammering away in debug trying to figure out why my obviously suitable, maximum rated keyphrase was not being considered. D'oh. ;-)

5 years ago #8346
Funny you should bring that up... because I ran into a similar problem earlier today and I'm not quite certain what you mean by invisible carriage returns...


The keyprhase I have is this:


I am (studying|learning|training) to (be a|be an|become a|become an) * (p:Job-catch),
I am (trying|attempting) to get a job as (a|an) * (p:Job-catch),
I (work|am working) as (a|an) * (p:Job-catch),
I am (studying|learning|training) (so I can be|so I can become) * (p:Job-catch)


Response 'A (key4) eh? Do you think you'll like doing that?'


Now the keyphrase works fine. Catching things like "I'm studying to be a rich and famous actor." And it will return, "A actor, eh? Do you think you'll enjoy doing that?"

The problem is, it will also catch things like: "I'm studying to be a walrus." or "I'm studying to be a block of wood"

Returning with "A eh, do you think you'll enjoy doing that?"

As a brute force temporary fix I added the kp:

I am (studying|learning|training) to (be a|be an|become a|become an) (*),
I am (trying|attempting) to get a job as (a|an) (*),
I (work|am working) as (a|an) (*),
I am (studying|learning|training) (so I can be|so I can become) (*)

which just goes to xnone. But it's a really inelegant solution. And I'd like to know why the original kp catches things that aren't in the plugin.

5 years ago #8347
Hmm.

"I'm studying to be a rich and famous actor" matches

I am - I'm
1studying|learning|training) - studying
to - to
2be a|be an|become a|become an) - be a
3:* - rich and famous
4p:Job-catch) - actor

It sounds like "I'm studying to be a walrus" is maybe hitting

I am - I'm
1studying|learning|training) - studying
to - to
2be a|be an|become a|become an) - be a
3:* - walrus
4p:Job-catch) -

which would give you a blank key4.

What about

I am (studying|learning|training) to (be a|be an|become a|become an) (*|) (p:Job-catch:4)

That makes the input between "be a" and the job plugin optional, and adding the :4 to the plugin key means your response (key4) will always match that key in the keyphrase, whether or not there is anything between it and the verb phrase.





5 years ago #8348
Oh, ha ha...colon parenthesis, not sad face. This, but without the spaces:

1: (
2: (
3: (
4: (

Let's see if that looks better...


Posts 8,337 - 8,348 of 8,662

» More new posts: Doghead's Cosmic Bar