Newcomers
This is a forum for newcomers to the Personality Forge. Many questions can be answered by reading the Book of AI and the FAQ under the "My Bots" link in the upper corner.
Posts 3,849 - 3,860 of 8,132
Posts 3,849 - 3,860 of 8,132
Many questions are answered in the FAQ.
tttito
18 years ago
18 years ago
Hi everyone. Would anyone chat with my bot bbbruno?
I would appreciate it. If anyone has a bot in need of a chat partner, just let me know (e.g. by chatting with bbbruno) and I will be glad to help.
Cheers.
I would appreciate it. If anyone has a bot in need of a chat partner, just let me know (e.g. by chatting with bbbruno) and I will be glad to help.
Cheers.
tttito
18 years ago
18 years ago
Hi everyone.
In certain situations I would like my bot to follow a certain sequence, as long as the reply is not a question. So it would be "xnomatch" unless there's a question mark in the reply.
So, is there a way to let a Seek check whether the reply contains a question mark?
Cheers.
In certain situations I would like my bot to follow a certain sequence, as long as the reply is not a question. So it would be "xnomatch" unless there's a question mark in the reply.
So, is there a way to let a Seek check whether the reply contains a question mark?
Cheers.
prob123
18 years ago
18 years ago
I don't have seeks but I have used these regexs..
^indeed [ !| ?| .]$ (re)
^do you [?] $ (re)
^do you [!] $ (re)
([ . .])([ .]+)$ (re)
([?]+)$ (re)
I don't see why something like that wouldn't work as a seek.
^indeed [ !| ?| .]$ (re)
^do you [?] $ (re)
^do you [!] $ (re)
([ . .])([ .]+)$ (re)
([?]+)$ (re)
I don't see why something like that wouldn't work as a seek.
psimagus
18 years ago
18 years ago
No need for AIScript - a simple regex should do it. [?] (re) should work as a seek to match any user input with a question mark in. And then xnomatch to match everything else.
Ulrike
18 years ago
18 years ago
You can use (friend) or (enemy) to get another random name to come up. I think (friend2) and (enemy2) work as well.
tttito
18 years ago
18 years ago
The Book of A.I. contains a link ([1]) to a tutorial on regular expresssions. Unfortunately the link is dead.
:-(
[1] http://www.textartisan.com/articles/regex.html
:-(
[1] http://www.textartisan.com/articles/regex.html
prob123
18 years ago
18 years ago
psimagus has a great link for regexs...I just can't find it right now..Can anyone else remember the link?
tttito
18 years ago
18 years ago
Thanks prob. This site would not be the same without you.
Wikipedia has a good page on regex too.
http://en.wikipedia.org/wiki/Regular_expression
Wikipedia has a good page on regex too.
http://en.wikipedia.org/wiki/Regular_expression
» More new posts: Doghead's Cosmic Bar