botpress / studio

The studio is the main interface you'll use to build and edit your chatbot.
https://botpress.com/docs/quickstart#conversation-studio
35 stars 37 forks source link

fix(code-editor): allow creating hooks with hook type as name #333

Closed laurentlp closed 2 years ago

laurentlp commented 2 years ago

This PR adds the possibility to create a hook with the name of the hook type. Before this change, the resulting filename would be .js since we were removing the hook type from its name (not sure why as there seems to be no impact of doing so).

e.g. Creating an after_incoming_middleware hook named: after_incoming_middleware.js

Same changes as this PR: https://github.com/botpress/botpress/pull/11698