I am trying to make a slackbot using botkit and I have written a code however I get the following error when I try to run it-
TypeError: Botkit.slackbot is not a function
at Object.<anonymous> (E:\Postman Projects\botkitBot\mybot\index.js:27:27)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
This is the part in the code where I get the error:
const controller = Botkit.slackbot({
debug: false,
//include "log: false" to disable logging
});
I tried installing yeoman and slack adapter but its still not working. It seems like its not a very common problem as its not acknowledged anywhere. Please do help. It is the very basic step and I can't proceed if this doesn't work.