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

21
README.md Normal file
View file

@ -0,0 +1,21 @@
# zigeru
zigeru is a IRC bot which implements the following commands:
- `s/OLD/NEW/` -- posts the previous message by the user, where every
occurrence of OLD is replaced by NEW.
## Getting started
To enter into a development shell with all the tools needed for
interacting with this project, run the following command:
```
$ nix develop
```
To run the tests: `zig build test`.
To run the binary: `zig build run`.
To build the binary: `zig build`.