var botgram = require("botgram");
var bot = botgram(process.argv[2]);

var rant = "When you say Linux, you probably mean the GNU operating " +
"system, running Linux as the kernel. You should therefore say " +
"GNU/Linux or GNU+Linux.";
var fag = "When you say Raphy, you probably mean the faggot " +
", running Raphy as the kernel. You should therefore say " +
"faggot/Raphy or faggot+Raphy.";
var fag1 = "HAHA yeah what a FAG";

bot.text(function (msg, reply, next) {
	var text = msg.text.toLowerCase();
	if (text.indexOf("linux") != -1 && text.indexOf("gnu") == -1)
		reply.reply(msg).text(rant);
	if (text.indexOf("raphy") != -1 && text.indexOf("faggot") == -1)
		reply.reply(msg).text(fag);
});

bot.command("start", function (msg, reply, next) {
	reply.text("fuck off");
});


@@ -511,21 +511,22 @@
 (text.in
-dexOf
+cludes
 (%22linux%22
@@ -530,43 +530,33 @@
 ux%22)
- != -1
  && 
+!
 text.in
-dexOf
+cludes
 (%22gnu%22)
- == -1
 )%0A%09%09
@@ -596,21 +596,22 @@
 (text.in
-dexOf
+cludes
 (%22raphy%22
@@ -615,30 +615,26 @@
 hy%22)
- != -1
  && 
+!
 text.in
-dexOf
+cludes
 (%22fa
@@ -643,14 +643,8 @@
 ot%22)
- == -1
 )%0A%09%09

replace ``text.IndexOf() with ``text.includes()