You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Used this script for user onboarding; basically whenever someone joins our default slack channel, the bot should send a direct message to the user separately. It's throwing some error right now..
slapp.match((msg)=>{if(!msg.isMessage()||msg.body.event.subtype!=='channel_join'){returnfalse}isChannel('general',msg,(err,yes)=>{if(err)returnconsole.log('Error looking for general channel',err)if(yes){slapp.message('direct_message',(msg)=>{slapp.client.im.open({token,user:${msg.meta.user_id}},(err,data){if(err){returnconsole.log(err);}else{msg.say({text: ` Welcome to slack`})}})}})returntrue})
Used this script for user onboarding; basically whenever someone joins our default slack channel, the bot should send a direct message to the user separately. It's throwing some error right now..
Getting the following error..
You can view the live code being inserted in between 108 - 127 on https://github.com/abinashmohanty/user-onboarding-slapp-app/blob/master/server.js
The text was updated successfully, but these errors were encountered: