summaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
authorrebecca <ubq323@ubq323.website>2026-09-25 16:33:35 +0100
committerrebecca <ubq323@ubq323.website>2026-09-25 16:35:27 +0100
commit9efee4531261898c5c1666d010a22eab4f3ea457 (patch)
treeef164bfdda3086f8e22a150e465871a2bac9fb4b /discord
parent00060d7965d42386e15dca6361683b72e430808c (diff)
deduplicate add_channel loops
Diffstat (limited to 'discord')
-rw-r--r--discord/pylon.lua8
1 files changed, 0 insertions, 8 deletions
diff --git a/discord/pylon.lua b/discord/pylon.lua
index 6cebc16..ebf185d 100644
--- a/discord/pylon.lua
+++ b/discord/pylon.lua
@@ -69,14 +69,6 @@ function Discord._connect(self)
local me = self:_req"users/@me"
self.bot_id = me.id
self.log('logged in as ',me.username)
-
- for busname, bus in pairs(self.wilson.busses) do
- for _, channel in ipairs(bus) do
- if channel.pylon == self then
- self:add_channel(channel)
- end
- end
- end
end
function Discord.add_channel(self, channel)