SyntaxError: Unexpected token } : <p>When launching code in Heroku, I always get an unexpected token } error. Locally, it all works. 
Here is the code I used. This is an example from the discord.io repo. I have installed discord.io and made sure that node and npm were the same version as what I was running on my local machine. </p>

<pre><code>var Discord = require('discord.io');
var logger = require('winston');
var auth = require('./auth.json');
// Configure logger settings
//logger.remove(logger.transports.Console);
 //logger.add(logger.transports.Console, {
colorize: true
});
 //logger.level = 'debug';
 // Initialize Discord Bot
var bot = new Discord.Client({
token: auth.token,
autorun: true
});
bot.on('ready', function (evt) {

});
bot.on('message', function (user, userID, channelID, message, evt) {
// Our bot needs to know if it will execute a command
// It will listen for messages that will start with `!`
if (message.substring(0, 1) == '!') {
    var args = message.substring(1).split(' ');
    var cmd = args[0];

    args = args.splice(1);
    switch(cmd) {
        // !ping
        case 'ping':
            bot.sendMessage({
                to: channelID,
                message: 'Pong!'
            });
        break;
        // Just add any case commands if you want to..
     }
 }
});
</code></pre>

<p>Thanks for the help!</p>
