refactor(bot): rename bot.hear to bot.store

Clearer what it actually does (i.e. record a message in the backlog)
and also unlocks that name for a dispatch function where we hear any
message and decide what to do with it. Currently that dispatch logic
lives inside BotAdapter in main.zig and that is not ideal.
This commit is contained in:
Jacob Jonsson 2026-03-15 13:49:07 +01:00
parent 4d1f22194c
commit 958c00ce6f
Signed by: Jassob
GPG key ID: 7E30B9B047F7202E
2 changed files with 7 additions and 7 deletions

View file

@ -85,7 +85,7 @@ pub const BotAdapter = struct {
msg.targets,
msg.text,
) catch |err| return report_error(err);
self.bot.hear(bot_msg);
self.bot.store(bot_msg);
return null;
},
.JOIN => |msg| {