chore: implement initial bot with substitute command

This commit introduces a Bot struct which is the main type of this
project. The Bot holds a backlog of messages to be able to update a
typo in a message and so on.

So far there is no IRC/TLS implementation, it is only the base logic.
This commit is contained in:
Jacob Jonsson 2025-11-02 13:53:05 +01:00
parent 00d2cf3c69
commit 6449a7de2d
Signed by: Jassob
GPG key ID: 7E30B9B047F7202E
6 changed files with 361 additions and 43 deletions

View file

@ -3,15 +3,17 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
zls.url = "github:zigtools/zls?ref=0.15.0"; # TODO(jsb): Update this when bumping zig version
};
outputs = { self, nixpkgs }:
outputs = { self, nixpkgs, zls }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in {
devShells.x86_64-linux.default = pkgs.mkShell {
buildInputs = [
pkgs.zig
zls.packages.x86_64-linux.zls
];
};
};