Skip to content

Instantly share code, notes, and snippets.

@k88hudson
Created December 12, 2014 17:44
Show Gist options
  • Save k88hudson/90fb7b853d3fce26158e to your computer and use it in GitHub Desktop.
Save k88hudson/90fb7b853d3fce26158e to your computer and use it in GitHub Desktop.
var curMsg = results[0];
var curMsgBody = curMsg.Body;
var msgId = curMsg.ReceiptHandle;
console.log("Do we have a body" + curMsg.Body);
console.log("The message is " + results);
irc.sendMessage('#mofo-deovps', curMsgBody, function (err) {
if (err) {
// Handle err - do you want it to throw? return an http response? up to you
return;
}
sqs.deleteMessage(env.get('queuetowatch'), msgId, callback);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment