diff options
| author | rebecca <ubq323@ubq323.website> | 2026-09-24 16:42:28 +0100 |
|---|---|---|
| committer | rebecca <ubq323@ubq323.website> | 2026-09-24 18:20:25 +0100 |
| commit | 3f54007ab621d2e6b652523259b1cb2d3d158e22 (patch) | |
| tree | 101d01f242a14119a31f838be6a97a7d36847f5c /quaddle | |
| parent | c6bf8876a0949214ce3fc151b2dbb957e40523a3 (diff) | |
create Thing class for general tuples of (pylon,descriptor)
Diffstat (limited to 'quaddle')
| -rw-r--r-- | quaddle/pylon.lua | 5 |
1 files changed, 3 insertions, 2 deletions
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, }) |
