Open mdemin914 opened 5 years ago
I have the same error, any ideas?
@mdemin914 I applied your suggested partial fix to botkit_mutagen.js
with the latest version of Botkit (4.5.0) and I am still getting the (almost) same error.
controller.plugins.cms.evaluateTrigger = function(text) {
^
TypeError: Cannot set property 'evaluateTrigger' of undefined
at module.exports (/...myproject/node_modules/botkit-cms/src/botkit_mutagen.js:4:44)
Am I missing something?
The Botkit-cms plugin has not been properly updated yet to run locally in Botkit 4+. So this is an imperfect solution for now.
@benbrown Do you think this is fixable? I might have someone from my team look into this next week.
Yeah it is definitely fixable.
This should be fixed by https://github.com/howdyai/botkit/pull/1851 !
Hey,
I am trying to get botkit-cms working locally within a botkit app. I think this would be ideal for a production deployment, not having to rely on another server to be up.
I am using
When I follow the directions and include:
I get the following error:
TypeError: Cannot set property 'evaluateTrigger' of undefined
.I fixed here this by changing the
controller.studio
references to becontroller.plugins.cms
. This seems to fix the problem and things seem to more or less work. The bot responds to the triggers that are setup.However, there is an exception when the input is something that doesn't cause any triggers to be returned.
Thanks for any help or direction on how to continue looking into this.