From 3f54007ab621d2e6b652523259b1cb2d3d158e22 Mon Sep 17 00:00:00 2001 From: rebecca Date: Thu, 24 Sep 2026 16:42:28 +0100 Subject: create Thing class for general tuples of (pylon,descriptor) --- quaddle/pylon.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'quaddle') diff --git a/quaddle/pylon.lua b/quaddle/pylon.lua index 2213a76..e85b699 100644 --- a/quaddle/pylon.lua +++ b/quaddle/pylon.lua @@ -4,7 +4,8 @@ local json = require 'dkjson' local class = require 'r.class' local BasePylon = require 'pylon' -local Channel = require 'channel' +local Message = require 'message' +local Thing = require 'thing' local Quaddle = class.extend(BasePylon) function Quaddle.init(self) @@ -82,7 +83,7 @@ function Quaddle.handle_message(self, msg) self.log:proto('<',msg.channel_id,msg.author.username,msg.content) if msg.author.id ~= self.bot_user.id then self.wilson:deliver({ - source_channel = Channel(self, msg.channel), + source_channel = Thing(self, msg.channel), body = msg.content, sender = msg.author.name, }) -- cgit v1.2.3