rename publish_to_chat to receive_from_bridge

This commit is contained in:
AliasAlreadyTaken 2022-02-26 01:45:52 +01:00
parent 42228c3a44
commit 787e363bdf
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ Don't forget to add an optional dependency to yl_matterbridge
Overwrite this function to receive something from the bridge
```
function yl_matterbridge.publish_to_chat(user_name, message_text)
function yl_matterbridge.receive_from_bridge(user_name, message_text)
core.chat_send_all("<" .. user_name .. "@irc> " .. message_text)
end
```

View File

@ -78,7 +78,7 @@ local function receive()
local data = core.parse_json(result.data)
for _, v in ipairs(data) do
if v.username and v.text then
yl_matterbridge.publish_to_chat(v.username, v.text)
yl_matterbridge.receive_from_bridge(v.username, v.text)
end
end
else