summaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
authorolive <olive@olive.ooo>2026-09-12 21:03:00 +0100
committerolive <olive@olive.ooo>2026-09-12 21:03:00 +0100
commitc593260d4f522f8ee0e51bd70db021e85a7e4d25 (patch)
tree77070e67c74bb65ed7eaca953194294a85cffa64 /main.lua
parent1f9192f9d6639dedd243532616fb034f0e5bb14a (diff)
discord channel webhooking
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index cd81b0e..b1cb708 100644
--- a/main.lua
+++ b/main.lua
@@ -3,6 +3,7 @@ local class = require'r.class'
local config = require'config'
local Channel = require'channel'
+local pprint = require'pprint'
local pylon_classes = {
irc = require'irc.pylon',
@@ -50,6 +51,7 @@ function Wilson.deliver(self, source_channel, message)
if bus then
for _, dest_channel in ipairs(bus) do
if source_channel ~= dest_channel then
+ pprint(source_channel, "-->", dest_channel, message)
dest_channel.pylon:post(dest_channel, message)
end
end