diff --git a/scripts/bees.coffee b/scripts/bees.coffee index fe8c309c..e9df9f51 100644 --- a/scripts/bees.coffee +++ b/scripts/bees.coffee @@ -14,6 +14,9 @@ # atmos module.exports = (robot) -> - robot.hear /[^\w+]bees\b/i, (message) -> - message.send "http://i.imgur.com/qrLEV.gif" + robot.hear /\bbees*\b/i, (message) -> + if Math.random() < .2 + message.send "https://giphy.com/gifs/bees-SRKQ1Y0TB4n1m" + else + message.send "http://i.imgur.com/qrLEV.gif" # http://rubular.com/r/7VE6kR3EbX \ No newline at end of file diff --git a/scripts/shitposting.coffee b/scripts/shitposting.coffee new file mode 100644 index 00000000..f579f77e --- /dev/null +++ b/scripts/shitposting.coffee @@ -0,0 +1,27 @@ +# Description: +# Post some Shitposting gifs when people talk about shitposting +# +# Dependencies: +# None +# +# Configuration: +# None +# +# Commands: +# shitpost with a word boundary on the beginning, so it will match all forms of shitpost* +# +# Author: +# bsutt123 +gifs = [ + "https://giphy.com/gifs/acid-may-gifdump-5pH1ZIzHe7efu", + "https://giphy.com/gifs/jezv3ryaSh9OE", + "https://giphy.com/gifs/yBt63pbpGfiik", + "https://giphy.com/gifs/incomparablyme-8px9vxdVqbaJa" + ] + +module.exports = (robot) -> + robot.hear /\bshitpost/i, (msg) -> + if Math.random() > .5 + msg.send msg.random gifs + +