From db7c11508ec6b344f4771be966115bc1d1963553 Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 22 Mar 2026 19:11:33 +0000 Subject: [PATCH] storkit: done 366_story_bot_sends_shutdown_message_on_server_stop_or_rebuild --- ...tdown_message_on_server_stop_or_rebuild.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .storkit/work/5_done/366_story_bot_sends_shutdown_message_on_server_stop_or_rebuild.md 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