diff --git a/.storkit/work/5_done/366_story_bot_sends_shutdown_message_on_server_stop_or_rebuild.md b/.storkit/work/5_done/366_story_bot_sends_shutdown_message_on_server_stop_or_rebuild.md new file mode 100644 index 0000000..bdae382 --- /dev/null +++ b/.storkit/work/5_done/366_story_bot_sends_shutdown_message_on_server_stop_or_rebuild.md @@ -0,0 +1,20 @@ +--- +name: "Bot sends shutdown message on server stop or rebuild" +--- + +# Story 366: Bot sends shutdown message on server stop or rebuild + +## User Story + +As a project owner in a chat room, I want the bot to send a message when the server is shutting down (via ctrl-c or rebuild_and_restart), so that I know the bot is going offline and won't wonder why it stopped responding. + +## Acceptance Criteria + +- [ ] Bot sends a shutdown message to active chat channels when the server receives SIGINT/SIGTERM (ctrl-c) +- [ ] Bot sends a shutdown message before rebuild_and_restart kills the current process +- [ ] Message indicates the reason (manual stop vs rebuild) +- [ ] Message is sent best-effort — shutdown is not blocked if the message fails to send + +## Out of Scope + +- TBD