Open supermacro opened 8 years ago
There are many uncaught throw statements causing the server to stop running.
throw
Either:
function dmSummary
function shareSummary
webAPI.chat.postMessage
function closeConversation
bot.startConversation
.on('create_bot')
db.updateDB
.on('slash_command')
db.getId
teamMembers.forEach
webAPI.groups.setPurpose
One way to notify a user is to use the replyPrivate method on error.
replyPrivate
There are many uncaught
throw
statements causing the server to stop running.Either:
Uncaught Statements
index.js
function dmSummary
callbackfunction shareSummary
,webAPI.chat.postMessage
callbackfunction closeConversation
,bot.startConversation
callback.on('create_bot')
,db.updateDB
.catch.on('slash_command')
,db.getId
.then.on('slash_command')
,teamMembers.forEach
callback.on('slash_command')
,webAPI.groups.setPurpose
callback.on('slash_command')
,webAPI.chat.postMessage
callback