This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
slack_botkit not defined in middleware #307
Labels
Comments
+1 on outgoing webhooks. var controller = Botkit.slackbot(config);
var bot = controller.spawn({
incoming_webhook: {
url: process.env.INCOMING_WEBHOOK_URL
}
});
controller.setupWebserver(process.env.PORT, function(err, express_webserver) {
controller.createWebhookEndpoints(express_webserver,
[process.env.OUTGOING_WEBHOOK_TOKEN]);
}); At this point, it gives the same
Downgrading to |
sundeepgupta
added a commit
to sundeepgupta/botkit
that referenced
this issue
Jul 17, 2016
howdyai#307 There is logging happening here which introduces a reference error on `slack_botkit`. Removed this logging code because it already happens in SlackBot.js.
BTW downgrading to 0.2.1 will break the token check when the slash command POST comes in to your server. |
PR related to this issue has been released. |
This was referenced Sep 15, 2021
This was referenced May 10, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Using Botkit 0.2.2 on Mac OSX el Capitan
My server throws a ReferenceError when trying to do custom slash commands.
The error points to
slack_authentication.js
where there is no reference made to slack_botkitThe text was updated successfully, but these errors were encountered: