var Bot = require('ttapi');
var AUTH = 'xxxxxxxxxxxxxxxxxxxxxxxx';
var USERID = 'xxxxxxxxxxxxxxxxxxxxxxxx';
var ROOMID = 'xxxxxxxxxxxxxxxxxxxxxxxx';

var bot = new Bot(AUTH, USERID, ROOMID);

bot.on('speak', function (data) {
  var text = data.text;
  if (text.match(/^\/go$/)) {
    // Bot gets on the DJ table (if there's a spot open) on /go command
    bot.addDj();
  }
  if (text.match(/^\/stop$/)) {
    // Bot jumps off the table on /stop command
    bot.remDj(USERID);
  }
  if (text.match(/^\/skip$/)) {
    // Bot skips it's own song (if bot is the current DJ) on /skip command
    bot.skip();
  }
  if (text.match(/^\/addsong$/)) {
    // Bot adds song to the bottom of it's DJ queue on /addsong command
    bot.playlistAll(function (data) {
      bot.playlistAdd(songId, data.list.length);
    });
    bot.snag();
  }
});
@@ -257,24 +257,17 @@
 text
-.match(/%5E%5C/go$/)
+ == '/go'
 ) %7B%0A
@@ -354,26 +354,29 @@
 addDj();%0A  %7D
-%0A
  
+else
  if (text.ma
@@ -376,26 +376,19 @@
 text
-.match(/%5E%5C
+ == '
 /stop
-$/)
+'
 ) %7B%0A
@@ -453,22 +453,19 @@
 mDj(
-USERID
 );%0A  %7D
-%0A
  
+else
  if 
@@ -473,26 +473,19 @@
 text
-.match(/%5E%5C
+ == '
 /skip
-$/)
+'
 ) %7B%0A
@@ -593,26 +593,21 @@
 text
-.match(/%5E%5C
+ == '
 /addsong
 $/))
@@ -606,11 +606,9 @@
 song
-$/)
+'
 ) %7B%0A
@@ -794,11 +794,12 @@
 ();%0A  %7D%0A
-
 %7D);
+%0A

reformat code