Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit dab7008

Browse files
committed
Hubot, be Swissy and enjoy team exults
1 parent dfbb150 commit dab7008

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/scripts/tiptop.coffee

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Description:
2+
# Hubot, be Swissy and enjoy team exults.
3+
# Whenever TIP TOP or TOP is being said Hubot will reply back.
4+
#
5+
# Dependencies:
6+
# None
7+
#
8+
# Configuration:
9+
# None
10+
#
11+
# Commands:
12+
# None
13+
#
14+
# Notes:
15+
# Consecutive hops will be ignored.
16+
#
17+
# Author:
18+
# matteoagosti
19+
20+
module.exports = (robot) ->
21+
robot.hear /.+/i, (msg) ->
22+
unless msg.message.text is "TOP" or msg.message.text is "TIP TOP"
23+
robot.brain.data.tiptop = null
24+
return
25+
26+
unless robot.brain.data.tiptop is null
27+
return
28+
29+
msg.send msg.message.text
30+
robot.brain.data.tiptop = true

0 commit comments

Comments
 (0)