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

Commit aa17a63

Browse files
author
Tom Bell
committed
Merge pull request #795 from fusion94/master
Added script for scotch
2 parents d57a18d + 4ab03e2 commit aa17a63

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/scripts/scotch.coffee

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Description:
2+
# Display a random image of Scotch
3+
#
4+
# Dependencies:
5+
# None
6+
#
7+
# Configuration:
8+
# None
9+
#
10+
# Commands:
11+
# scotch me - supply a user with scotch
12+
#
13+
# Author:
14+
# fusion94
15+
16+
scotch = [
17+
"https://s3.amazonaws.com/scotch-assets/scotch_1.jpg",
18+
"https://s3.amazonaws.com/scotch-assets/scotch_2.jpg",
19+
"https://s3.amazonaws.com/scotch-assets/scotch_3.jpg",
20+
"https://s3.amazonaws.com/scotch-assets/scotch_4.jpg"
21+
]
22+
23+
message =[
24+
"You're Welcome"
25+
]
26+
27+
module.exports = (robot) ->
28+
robot.hear /scotch ?me/i, (msg) ->
29+
msg.send msg.random scotch

0 commit comments

Comments
 (0)