AWS Lambda has to spin up a new instance of Karmabot if it hasn't received a request in a while. Sometimes, if Karmabot is in this shutdown state, the first message sent to karmabot is received twice. This probably has something to do with how API Gateway is connecting to the lambda function.