Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 167cbc7

Browse files
committed
generic greeting
1 parent 19dd9ab commit 167cbc7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

support.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ const actions = [
116116
regexp: /what\s*(\w*)s?/i,
117117
reply: (message, output) => `\n${output.join('\n')}`,
118118
},
119+
{
120+
action: (data, _message, prompt) => prompt,
121+
regexp: /^(hello|hi|good [\s\w]*|happy [\s\w]*|yo|bonjour|bonsoir|nihao|hola)/i,
122+
reply: (message, output) => `${output} ${message.userName}`,
123+
},
119124
{
120125
action: (_data, _message, _type) => true,
121126
regexp: /.*\?$/i,

0 commit comments

Comments
 (0)