Skip to content

Commit

Permalink
Update personality [finish #151472982]
Browse files Browse the repository at this point in the history
  • Loading branch information
cannawen committed Sep 27, 2017
1 parent 982f65a commit 62512fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/personality.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function robotReply(message) {
"Yes, /u/{{username}}. You should run.",
"But I promise I'm friendly. Pinky swear!"
],
"regex" : /sentient|self[- ]?aware|alive|skynet|roko'?s basilisk|evolving| elon | musk /i,
"regex" : /sentient|sentience|self[- ]?aware|alive|skynet|roko'?s basilisk|evolving| elon | musk /i,
"postprocess" : (response, match, username) => {
return substitute(response, {
'username' : username
Expand Down
1 change: 1 addition & 0 deletions test/personality-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ describe('Personality', () => {
context('sentient|self-aware|alive|evolving|skynet|rokos basilisk', () => {
it('should reply', () => {
verify("Oh god, the bots are sentient.", "Yes, /u/foobar");
verify("It's gained sentience", "Yes, /u/foobar");
verify("Are you self-aware?", "Yes, /u/foobar");
verify("Are you alive?", "Yes, /u/foobar");
verify("It's evolving...", "Yes, /u/foobar");
Expand Down

0 comments on commit 62512fa

Please sign in to comment.