require('./server.js');
var dischord = require('discord.js');

var bot = new dischord.Client();

/*function searchGrimoire() {
    bot.on("message", function(message) {
        var input = message.content;
        var stripeCmd = input.substr('8');
        var inputCheck = input.startsWith('!search');

        if(inputCheck) {
            bot.reply(message, "http://www.ishtar-collective.net/search/" + encodeURIComponent(stripeCmd));
        }

    });
}*/

bot.loginWithToken(process.env.CLIENT_ID, function (token, err) {
    if(err){
        console.log(err);
    }

    bot.on("message", function(message) {
        var input = message.content;
        var stripeCmd = input.substr('8');
        var inputCheck = input.startsWith('!search');

        if(inputCheck) {
            bot.reply(message, "http://www.ishtar-collective.net/search/" + encodeURIComponent(stripeCmd));
        }

    });

    //searchGrimoire();
});
@@ -94,10 +94,8 @@
 );%0A%0A
-/*
 func
@@ -114,24 +114,24 @@
 rimoire() %7B%0A
+
     bot.on(%22
@@ -452,10 +452,8 @@
 );%0A%7D
-*/
 %0A%0Abo
@@ -566,344 +566,12 @@
  %7D%0A%0A
+
     
-bot.on(%22message%22, function(message) %7B%0A        var input = message.content;%0A        var stripeCmd = input.substr('8');%0A        var inputCheck = input.startsWith('!search');%0A%0A        if(inputCheck) %7B%0A            bot.reply(message, %22http://www.ishtar-collective.net/search/%22 + encodeURIComponent(stripeCmd));%0A        %7D%0A%0A    %7D);%0A%0A    //
 sear

replace method calls... again... damn heroku