You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/personality.js
+26-26
Original file line number
Diff line number
Diff line change
@@ -23,32 +23,6 @@ function robotReply(message) {
23
23
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)
24
24
*/
25
25
constrobotPersonality=[
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
-
returnsubstitute(response,{
48
-
'username' : username
49
-
});
50
-
}
51
-
},
52
26
{
53
27
"description" : "both good and bad bot",
54
28
"response" : [
@@ -78,6 +52,32 @@ function robotReply(message) {
78
52
});
79
53
}
80
54
},
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?",
0 commit comments