Skip to content

feat(bot): pause groups where nobody plays - #99

Merged
amtiYo merged 1 commit into
devfrom
feat/pause-quiet-groups
Nov 16, 2026
Merged

amtiYo merged 1 commit into
devfrom
feat/pause-quiet-groups

Conversation

@amtiYo

@amtiYo amtiYo commented Nov 16, 2026

Copy link
Copy Markdown
Member

A group where nobody plays still got the morning post, the intrigue and
the result every day: noise for the group, a reason to remove the bot,
and wasted sends.

After seven quiet days in a row (the morning post went out and nobody
answered from the group; a warm-up is not an answer) the group gets one
question in place of the eighth day's intrigue, so it still gets three
messages that day. Any member can press "Keep playing", which starts the
count again. Only an admin can press "Pause", and the bot checks admin
rights with Telegram on each press. If nobody presses a button and nobody
answers, the third morning after the question pauses the group: no post,
intrigue or result, and the question is edited to say how to resume.
/start in a paused group says so and shows Resume to admins. Places come
back with the first morning post after the press. An answer from the
group at any point resets the count. A paused group is left out of
ActiveChats but stays active for its members' answer window. A pause is
logged with its cause. A group that removes maply and adds it back starts
with no pause and no quiet days.

If the quiet check fails, the bot logs the error and sends the post or
intrigue anyway: the pause comes a day late, but the group does not lose
its message.

Migration 032 adds the quiet and pause columns to chat_settings.

Closes #94

A group where nobody plays still got the morning post, the intrigue and
the result every day: noise for the group, a reason to remove the bot,
and wasted sends.

After seven quiet days in a row (the morning post went out and nobody
answered from the group; a warm-up is not an answer) the group gets one
question in place of the eighth day's intrigue, so it still gets three
messages that day. Any member can press "Keep playing", which starts the
count again. Only an admin can press "Pause", and the bot checks admin
rights with Telegram on each press. If nobody presses a button and nobody
answers, the third morning after the question pauses the group: no post,
intrigue or result, and the question is edited to say how to resume.
/start in a paused group says so and shows Resume to admins. Places come
back with the first morning post after the press. An answer from the
group at any point resets the count. A paused group is left out of
ActiveChats but stays active for its members' answer window. A pause is
logged with its cause. A group that removes maply and adds it back starts
with no pause and no quiet days.

If the quiet check fails, the bot logs the error and sends the post or
intrigue anyway: the pause comes a day late, but the group does not lose
its message.

Migration 032 adds the quiet and pause columns to chat_settings.

Closes #94

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@amtiYo
amtiYo merged commit 64c97a7 into dev Nov 16, 2026
8 checks passed
@amtiYo
amtiYo deleted the feat/pause-quiet-groups branch November 19, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant