var Slackbot = require(__dirname);
// var Slackbot = require('slackbot')

var slackbot = new Slackbot(process.env.SLACK_TEAM, process.env.SLACK_TOKEN);

var msg = process.argv[2] || "hello!!";

slackbot.send("#general", msg, function(err, res, body) {
  if(err){
    consle.error(err);
    return;
  }
  console.log(body);
});

@@ -264,16 +264,17 @@
     cons
+o
 le.error

Fix typo in sample.