botmasterai / botmaster

The chatbot framework for your serious projects
http://botmasterai.com/
MIT License
251 stars 47 forks source link

/messenger/webhook1234 not found #25

Closed randywreed closed 7 years ago

randywreed commented 7 years ago

I'm new at this so forgive my ignorance. I set up the hello world for facebook messenger at glitch.com. I put botmaster-messenger in my package.json dependencies. But the chatbot does not respond, and when I try to directly contact https://lowly-earthquake.glitch.me/messenger/webhook1234/ I get a "cannot Get" message. Likewise with https://lowly-earthquake.glitch.me/messenger

The server is express (server.js) is there any configuration I need to do there? Do you have an idea why is it not working?

randywreed commented 7 years ago

Further work shows that Glitch runs server.js as its startup script. Changing package.json so that the startup script is scripts : { "start":"node app.js" } and changing main as well "main":"apps.js" solves the problem