Closed laurentlp closed 2 years ago
**Describe the bug**\ on bot mount hook are not executed if we remount a hook and only on server restart **To Reproduce**\ Create an on bot mount hook\ unmount and remount your bot\ You will see that the hook won't be executed Restart the server and the hook will be executed [botpress/borpress botpress/v12#1618](https://github.com/botpress/v12/issues/1618) by [@ sebburon](https://github.com/sebburon)
This PR fixes an issue where unmounting or mounting a bot using the bot config page would not trigger
after_bot_mount
andafter_bot_unmount
hooks. The reason was that the core was never aware of this change. To fix the issue, we simply send an internal call to the core telling it to unmount/mount a certain bot.Closes https://github.com/botpress/v12/issues/1618
Related to: