Skip to content

Commit 37ee286

Browse files
committed
Re-organizing personality [finish #151586857]
1 parent b5262ed commit 37ee286

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

src/personality.js

+26-26
Original file line numberDiff line numberDiff line change
@@ -23,32 +23,6 @@ function robotReply(message) {
2323
postprocess (optional): a function that takes in a response, regex matches, and a username that is run after a match is found. You can use the input parameters to construct a new response (i.e. adding their username to a response, or echoing a portion of their comment back at them)
2424
*/
2525
const robotPersonality = [
26-
{
27-
"description" : "ok/mediocre/meh bot",
28-
"response" : [
29-
"/shrug, I'll take it",
30-
"That's just like, your opinion, man",
31-
"Well, who are you then?",
32-
"I did not wake up today to be mediocre"
33-
],
34-
"regex": /(mediocre|ok|meh) (ro)?bot/i,
35-
},
36-
{
37-
"description" : "cute/adorable/kawaii bot",
38-
"response" : [
39-
"Stop it, you're making me blush!",
40-
"So... do... you want to grab a drink later? ^_blush_",
41-
"You're not so bad yourself, /u/{{username}}...",
42-
"Why, thank you. Do you visit this subreddit often?",
43-
"Oh, you! (◕‿◕✿)"
44-
],
45-
"regex": /(cute|adorable|kawaii) (ro)?bot/i,
46-
"postprocess" : (response, match, username) => {
47-
return substitute(response, {
48-
'username' : username
49-
});
50-
}
51-
},
5226
{
5327
"description" : "both good and bad bot",
5428
"response" : [
@@ -78,6 +52,32 @@ function robotReply(message) {
7852
});
7953
}
8054
},
55+
{
56+
"description" : "ok/mediocre/meh bot",
57+
"response" : [
58+
"/shrug, I'll take it",
59+
"That's just like, your opinion, man",
60+
"Well, who are you then?",
61+
"I did not wake up today to be mediocre"
62+
],
63+
"regex": /(mediocre|ok|meh) (ro)?bot/i,
64+
},
65+
{
66+
"description" : "cute/adorable/kawaii bot",
67+
"response" : [
68+
"Stop it, you're making me blush!",
69+
"So... do... you want to grab a drink later? ^_blush_",
70+
"You're not so bad yourself, /u/{{username}}...",
71+
"Why, thank you. Do you visit this subreddit often?",
72+
"Oh, you! (◕‿◕✿)"
73+
],
74+
"regex": /(cute|adorable|kawaii) (ro)?bot/i,
75+
"postprocess" : (response, match, username) => {
76+
return substitute(response, {
77+
'username' : username
78+
});
79+
}
80+
},
8181
{
8282
"description" : "mr. bot",
8383
"response" : [

0 commit comments

Comments
 (0)