From 28a876fa341174e8d17640fc215854328ce65b42 Mon Sep 17 00:00:00 2001 From: rebecca Date: Fri, 25 Sep 2026 16:41:52 +0100 Subject: consistentize 'channels' maps in pylons for live reloading to work, wilson needs to know which channels each pylon currently cares about, so it knows which combination of add_channel and remove_channel to call on each one discord: rename channel_to_webhook --> channels xmpp: rename mucs --> channels quaddle: add channels map --- quaddle/pylon.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'quaddle/pylon.lua') diff --git a/quaddle/pylon.lua b/quaddle/pylon.lua index 86e465a..20eeb3a 100644 --- a/quaddle/pylon.lua +++ b/quaddle/pylon.lua @@ -10,6 +10,7 @@ local Thing = require 'thing' local Quaddle = class.extend(BasePylon) function Quaddle.init(self) self:_check_fields "base_url bot_name bot_password" + self.channels = {} end -- https://codeberg.org/QWD/Quaddle/src/branch/main/doc/api.md @@ -46,6 +47,7 @@ end function Quaddle.add_channel(self, channel) self.log("Subscribing to channel",channel.id) self.ws:send(json.encode{ op="subscribe", channel_id=channel.id }) + self.channels[channel.id] = true end function Quaddle.recving(self) -- cgit v1.2.3