summaryrefslogtreecommitdiff
path: root/quaddle/pylon.lua
diff options
context:
space:
mode:
Diffstat (limited to 'quaddle/pylon.lua')
-rw-r--r--quaddle/pylon.lua5
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,
})