是否有使用 webhook 发送节的 ejabberd 模块?

Is there an ejabberd module that sends stanzas using webhooks?

我想让人们更容易地为我的 ejabberd 服务器编写机器人,方法是允许他们使用他们的机器人 JID 注册 webhook。基本上,我希望他们能够使用 HTTP 与我的 ejabberd 服务器进行交互,以发送和接收 XMPP 节,而不必维护持久的 XMPP 连接。例如,机器人可以简单地对我的 ejabberd 服务器进行 HTTP 调用以发送 XMPP 节,然后服务器将通过对已注册的 webhook 进行 HTTP 调用来向机器人发送消息。这将使机器人成为可以轻松水平扩展的简单 HTTP 服务器。

我确实找到了这个模块 (https://github.com/adnam/ejabberd-webhooks),但它似乎并没有完全按照我的要求做,而且它似乎也没有得到维护。是否有一个维护良好的(也许是官方的)ejabberd 模块可以做到这一点?也许有一个我不知道 ejabberd 实现的 XEP?还有其他支持此功能的 XMPP 服务器吗?提前致谢!

the bots could simply make HTTP calls to my ejabberd server to send XMPP stanzas,

您可以在 ejabberd 中安装 mod_rest: https://github.com/processone/ejabberd-contrib/tree/master/mod_rest

and then the server would send messages to the bots by making HTTP calls to the registered webhooks.

我不知道有任何简单的模块可以做到这一点。有 Push XEP,参见 https://xmpp.org/extensions/xep-0357.html 但我认为 ejabberd Community Server 没有实现所需的一切,只有商业版。