From 6cd31744e35917cbe56fa51d420161a3bbc49267 Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Tue, 22 Dec 2015 10:46:48 +0100 Subject: [PATCH] interjection by stallman implemented --- package.json | 2 +- scripts/interjection.coffee | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 scripts/interjection.coffee diff --git a/package.json b/package.json index 2e87219..6fb7d53 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "asjon", - "version": "1.7.2", + "version": "1.8.0", "private": true, "author": "Enrico Fasoli ", "description": "Il miglior amico della 5IA", diff --git a/scripts/interjection.coffee b/scripts/interjection.coffee new file mode 100644 index 0000000..9014cf8 --- /dev/null +++ b/scripts/interjection.coffee @@ -0,0 +1,14 @@ +# Description: +# What you are referring to is actually GNU + Linux.... +# +# Configuration: +# None +# +# Author: +# Enrico Fasoli (fazo96) + +module.exports = (robot) -> + robot.hear /(.)*linux(.)*/i, (res) -> + s = res.match[0] + if s.toLowerCase().indexOf('gnu') < 0 + res.send 'http://s2.quickmeme.com/img/b9/b91afe13fc7e1b79898b1f65a12b4d23a25d5083ec0410185ff563fdf8ce8a87.jpg'