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

Skip to content

Commit cf1a3fe

Browse files
committed
add high five
1 parent 01e1e62 commit cf1a3fe

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

support.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ const actions = [
9696
regexp: /forget it/i,
9797
reply: (message, output) => `deleted ${output} tickets`,
9898
},
99+
{
100+
action: (_data, _message, _type) => true,
101+
regexp: /gimme high five/i,
102+
reply: (_message, _output) => 'ヘ( ^o^)ノ\(^_^ )',
103+
},
99104
{
100105
action: (data, _message, type) => gimme(data.fs, type),
101106
regexp: /gimme\s*a*n*\s*(\w*)/i,

test/support_test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ describe('support', function() {
119119
assert.equal(reply, '#cando: Ricky here have a compliment')
120120
})
121121

122+
it('gimme high five', function() {
123+
const reply = support.process(emptyData(), message('gimme high five'))
124+
assert.equal(reply, '#cando: ヘ( ^o^)ノ\(^_^ )')
125+
})
126+
122127
it('gimme something that does not exist', function() {
123128
const data = emptyData()
124129
data.fs = {

0 commit comments

Comments
 (0)