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
{{ message }}
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
I'm trying to spawn a bot by just passing the team ID of a slack team that uses my bot to start a conversation with a user over Slack (as stated in the documentation)
// botInstalled.js fileconstteamId='validSlackTeamId'constuserId='validSlackUserId'constbot=awaitcontroller.spawn(teamId);// <-- Errors out hereawaitbot.startPrivateConversation(userId);awaitbot.say('Hi!');
What was the result you received?
TypeError: Cannot read property 'adapter' of undefined
TypeError: Cannot read property 'adapter' of undefined\n
at Botkit.<anonymous> (node_modules/botkit/lib/core.js:807:62)\n
at Generator.next (<anonymous>)\n
at node_modules/botkit/lib/core.js:8:71\n
at new Promise (<anonymous>)\n
at __awaiter (node_modules/botkit/lib/core.js:4:12)\n
at Botkit.spawn (/node_modules/botkit/lib/core.js:789:16)\n
at Object.<anonymous> (myProject/slack/on/botInstalled.js:47:42)"
Previous to this error I was using botkit v4.6.2 and I had no issue with this. Most likely a change in the latest version broke the functionality of just passing the TeamID (or I'm def doing something wrong) 😅please let me know, and thanks for looking into this 🎉
Context:
Botkit version: 4.8.0
Messaging Platform: Slack (adater v 1.0.9)
Node version: v13.7.0
Os: MacOS Mojave 10.14.6
Any other relevant information:
The text was updated successfully, but these errors were encountered:
What are you trying to achieve?
I'm trying to spawn a bot by just passing the team ID of a slack team that uses my bot to start a conversation with a user over Slack (as stated in the documentation)
What was the result you received?
TypeError: Cannot read property 'adapter' of undefined
I've traced the error to this line inside the core library
https://github.com/howdyai/botkit/blob/master/packages/botkit/src/core.ts#L1080
What did you expect?
For the controller to spawn a bot without issues just by passing the slack team Id as stated in the documentation.
Previous to this error I was using
botkit v4.6.2
and I had no issue with this. Most likely a change in the latest version broke the functionality of just passing the TeamID (or I'm def doing something wrong) 😅please let me know, and thanks for looking into this 🎉Context:
The text was updated successfully, but these errors were encountered: