if (!process.env.SLACK_TOKEN) {
    console.log('Error: Specify token in environment');
    process.exit(1);
}




var Botkit = require('./node_modules/botkit/lib/Botkit.js');
var os = require('os');

var controller = Botkit.slackbot({
    send_via_rtm:true,
});

var bot = controller.spawn({
    token: process.env.SLACK_TOKEN
}).startRTM();

controller.hears(['identify yourself', 'who are you', 'what is your name'],
    'direct_message,direct_mention,mention', function(bot, message) {

        bot.reply(message,
            'My name is Horse Gif. I am a bot that sends a horsegif, everytime I see "horse" in a message');

    });

controller.hears(['horse', 'pferd', 'ross', 'rössli'], ['ambient,message_received'], function(bot, message) {
    var request = require("request");
    var url = "http://api.giphy.com/v1/gifs/random?api_key=dc6zaTOxFJmzC&tag=horse";

    request({ url: url, json: true }, function (error, response, body) {

        if (!error && response.statusCode === 200) {
            var stringify = JSON.stringify(body);
            var GIF = body.data.image_original_url;
            bot.reply(message, 'Here is your random gif:smile::hrs:: ' +GIF+ '');
        } else {
            bot.reply(message, 'There was a problem with the API. Sorry:cry: no Gif right now');
        }
    });
});




@@ -682,16 +682,34 @@
 'r%C3%B6ssli'
+, 'cheval', 'gaul'
 %5D, %5B'amb
@@ -1330,10 +1330,667 @@
 );%0A%7D);%0A%0A
+controller.hears(%5B'bojack'%5D, %5B'ambient,message_received'%5D, function(bot, message) %7B%0A    var request = require(%22request%22);%0A    var url = %22http://api.giphy.com/v1/gifs/random?api_key=dc6zaTOxFJmzC&tag=bojack%22;%0A%0A    request(%7B url: url, json: true %7D, function (error, response, body) %7B%0A%0A        if (!error && response.statusCode === 200) %7B%0A            var stringify = JSON.stringify(body);%0A            var GIF = body.data.image_original_url;%0A            bot.reply(message, 'Here is your random gif:smile::hrs:: ' +GIF+ '');%0A        %7D else %7B%0A            bot.reply(message, 'There was a problem with the API. Sorry:cry: no Gif right now');%0A        %7D%0A    %7D);%0A%7D);%0A%0A
 %0A%0A

Update index.js