Created
December 12, 2014 17:44
-
-
Save k88hudson/90fb7b853d3fce26158e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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