I'm having problems while trying to create custom modules for ejabberd.
Using:
ejabberd 19.05.81 (from source)
ubuntu server 18.04
I created the hello_world module following the tutorial from https://docs.ejabberd.im/developer/extending-ejabberd/modules/
I tried putting the source file mod_hello_world.erl inside the src folder and then compiled using make install. Everything goes smoothly, but if I add the module on ejabberd.yml then start the node, I get a crash:
19:59:43.683 [critical] Failed to start ejabberd application: Invalid value of option modules: 'mod_hello_world' is not a ejabberd module
I tried using the folder $HOME/.ejabberd-modules/sources and the command ejabberdctl module_install mod_hello_world, and when checking if it was installed using modules_installed, it is there.
Still, I get the same error, described above.
Does anyone knows what I'm doing wrong?