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:
parent
4d1f22194c
commit
958c00ce6f
2 changed files with 7 additions and 7 deletions
|
|
@ -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| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue