generated from alex/base-template
fix: stop posting horse fact on every boot #16
No reviewers
Labels
No labels
dependencies
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
alex/irc-greeter-bot!16
Loading…
Reference in a new issue
No description provided.
Delete branch "pi/issue15-1785124021180"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #15
The bot no longer posts a random horse fact when it joins a channel, which
happened on every boot and on every reconnect (once per channel). The daily
local-midnight broadcast (
broadcastFactviastartDailyMidnight) alreadyprovides the "lossy daily reminder," so the on-join trigger is redundant noise.
Changes
src/main.ts: removedhandleBotJoinand itsHandleBotJoinResulttype, and removed the call to it from the
joinevent handler increateClient. The daily midnight scheduler andbroadcastFactareuntouched.
src/main_test.ts: removed thehandleBotJointests and its import;kept the
broadcastFacttests (including Chatto mirroring).README.md: updated the "Daily horse facts" section to reflect thatfacts are now broadcast only at local midnight, and removed references to the
per-join trigger.
Newcomer greetings and feed announcements are unaffected. All 161 tests pass,
and
deno check,deno lint,deno fmt, andfallow dead-codeare clean.