claudiajs / claudia-bot-builder

Create chat bots for Facebook Messenger, Slack, Amazon Alexa, Skype, Telegram, Viber, Line, GroupMe, Kik and Twilio and deploy to AWS Lambda in minutes
https://claudiajs.com/claudia-bot-builder.html
MIT License
1.84k stars 252 forks source link

support a debug mode #70

Closed nbransby closed 7 years ago

nbransby commented 7 years ago

where you catch exceptions and convert them to string and send them  as messages to user

save me doing:


module.exports = builder(message, apiRequest) => {
    try {
      //bot code here
    } catch(error) {
        return String(error);
    }
})
gojko commented 7 years ago

Hi,

we use issues on github only for bugs. everything else should go to the gitter channel. You're more than welcome to submit a PR if you like for this, but if you want to just ask for a new feature and chat about it, please do it on the chat.