refactor: extract modules from bot.zig

This commit creates a bunch of new modules that contain code and tests
for various concepts/implementations that used to exist inside
bot.zig.

Notable amongst these are:
- buffer.zig, which contain the circular buffer containing both
  backlog and outbox messages.
- parser.zig, which contain the parser used to parse commands from IRC
  messages.
This commit is contained in:
Jacob Jonsson 2026-01-04 23:54:26 +01:00
parent 508e084ddf
commit e1e1938359
Signed by: Jassob
GPG key ID: 7E30B9B047F7202E
7 changed files with 694 additions and 285 deletions

View file

@ -1,3 +1,6 @@
//! By convention, root.zig is the root source file when making a library.
pub const bot = @import("bot.zig");
pub const buffer = @import("buffer.zig");
pub const parser = @import("parser.zig");
pub const commands = @import("commands.zig");