From eabfb2605b35f97f51034e97bc7acd06b828c99c Mon Sep 17 00:00:00 2001 From: KatyiPup Date: Tue, 31 Jan 2017 16:05:03 -0600 Subject: [PATCH] Adding more notes comments galore i dont know what im doing --- SlackBot v2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SlackBot v2.js b/SlackBot v2.js index 7a0a44c..99f7109 100644 --- a/SlackBot v2.js +++ b/SlackBot v2.js @@ -84,7 +84,7 @@ if(input === "ping"){ //if the message sent is "ping" } //main function (getting the data) -else if(input.indexOf("robostats") !== -1){ +else if(input.indexOf("robostats") !== -1){ //if any message has robostats anywhere in it let index = input.indexOf("robostats"); //where the person typed robostats in their message let pika = input.substring(index, 9999) //the rest of the message after that let args = pika.split(" ").slice(1); //splits the messages by spaces instead of characters and takes the first thing after "robostats"