refactor(bot): introduce response type

The response type holds represents the way a bot can respond to a
message it executes and allows us to move the IRC dependency out of
bot and into only the main module.
This commit is contained in:
Jacob Jonsson 2026-03-15 13:47:57 +01:00
parent 4f2b9cbce2
commit 4d1f22194c
Signed by: Jassob
GPG key ID: 7E30B9B047F7202E
3 changed files with 50 additions and 54 deletions

View file

@ -152,12 +152,7 @@ pub fn build(b: *std.Build) !void {
})),
// Our bot tests needs zircon module import,
try testRunWithImports(b, target, "bot", &.{
.{
.name = "zircon",
.module = zircon.module("zircon"),
},
}),
try testRun(b, target, "bot"),
// Our module tests for each module we want to add. If
// breaking out new functionality to a module, remember to
// bump the length of the array above.