UNPKG

1.04 kBtext/coffeescriptView Raw
1# Description:
2# Hubot script to display "I have no idea what I'm doing" images
3#
4# Dependencies:
5# None
6#
7# Configuration:
8# None
9#
10# Commands:
11# you have no idea what you're doing
12#
13# Notes
14# None
15#
16# Author:
17# Morgan Wigmanich <okize123@gmail.com> (https://github.com/okize)
18
19module.exports = (robot) ->
20 robot.hear regex, (msg) ->
21 msg.send msg.random images
22
23gaffes = [
24 'i ha(ve|s) no idea',
25 '(wh|)oops(|ie)',
26 'my (bad|mistake|fault)',
27 'd(\')oh'
28]
29
30images = [
31 'http://i.imgur.com/XhZzd2h.jpg',
32 'http://i.imgur.com/GtgkJ38.jpg',
33 'http://i.imgur.com/Jv3qULQ.jpg',
34 'http://i.imgur.com/1hrVmZD.jpg',
35 'http://i.imgur.com/xC0JCFK.jpg',
36 'http://i.imgur.com/kFNAAeX.jpg',
37 'http://i.imgur.com/9s62t7y.jpg',
38 'http://i.imgur.com/ugZ2tGn.jpg',
39 'http://i.imgur.com/DeyWrC2.jpg',
40 'http://i.imgur.com/tkbLyTG.jpg',
41 'http://i.imgur.com/g8EbISz.jpg',
42 'http://i.imgur.com/RuFZdPR.jpg',
43 'http://i.imgur.com/YLEM3Ns.jpg',
44 'http://i.imgur.com/1TWbKbW.jpg'
45]
46
47regex = new RegExp gaffes.join('|'), 'ig'