Houmgaor
d38fef08bb
refactor(discordbot): introduce Session interface for testability
...
Extract a Session interface from *discordgo.Session so DiscordBot methods
can be tested with a mock — no live Discord connection required. Add
AddHandler, RegisterCommands, and UserID methods to DiscordBot so
external callers (main.go, sys_channel_server.go) no longer reach
through bot.Session directly. Rewrite tests with a mockSession,
raising discordbot coverage from 12.5% to 66.7%.
2026-02-27 11:45:20 +01:00
..
2026-02-26 23:41:44 +01:00
2026-02-26 23:41:44 +01:00
2026-02-27 11:33:25 +01:00
2026-02-26 23:41:44 +01:00
2026-02-26 23:41:44 +01:00
2026-02-26 23:41:44 +01:00
2026-02-27 11:21:37 +01:00
2026-02-27 11:21:37 +01:00
2026-02-26 23:41:44 +01:00
2026-02-26 23:41:44 +01:00
2026-02-26 23:41:44 +01:00
2026-02-27 11:33:25 +01:00
2026-02-27 11:33:25 +01:00
2026-02-26 23:41:44 +01:00
2026-02-26 23:41:44 +01:00
2026-02-26 23:41:44 +01:00
2026-02-26 23:41:44 +01:00
2026-02-27 11:33:25 +01:00
2026-02-27 11:33:25 +01:00
2026-02-26 23:41:44 +01:00
2026-02-27 11:33:25 +01:00
2026-02-27 11:21:37 +01:00
2026-02-27 11:33:13 +01:00
2026-02-27 11:33:25 +01:00
2026-02-26 23:41:44 +01:00
2026-02-26 23:41:44 +01:00
2026-02-27 11:33:25 +01:00
2026-02-26 23:41:44 +01:00
2026-02-27 11:33:13 +01:00
2026-02-27 11:33:25 +01:00
2026-02-27 11:33:13 +01:00
2026-02-26 23:41:44 +01:00
2026-02-27 11:33:25 +01:00
2026-02-26 23:41:44 +01:00
2026-02-27 11:33:25 +01:00
2026-02-26 23:41:44 +01:00
2026-02-26 23:41:44 +01:00
2026-02-27 11:33:13 +01:00
2026-02-27 11:33:25 +01:00
2026-02-26 23:41:44 +01:00
2026-02-26 23:41:44 +01:00
2026-02-26 23:41:44 +01:00
2026-02-26 23:41:44 +01:00
2026-02-27 11:21:37 +01:00
2026-02-26 21:57:40 +01:00
2026-02-26 23:53:35 +01:00
2026-02-26 23:41:44 +01:00
2026-02-26 23:41:44 +01:00
2026-02-27 11:33:13 +01:00
2026-02-27 11:21:37 +01:00
2026-02-27 11:33:25 +01:00
2026-02-27 11:33:25 +01:00
2026-02-27 11:45:20 +01:00
2026-02-26 23:41:44 +01:00