962b2359c12e30509fb4a348b0f0d240b044d683
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Two fixes in `src/handlers.rs`: **1. Voice text channel detection** Messages sent in voice channel text threads have a different `channel_id` than the parent voice channel. The `message` handler now falls through to check `msg.thread.parent_id` — if the parent is a watched channel, it catches them. **2. Cross-channel 1-hour message purge** When a user is banned, the bot now fetches the last 10 messages from **every** watched channel in the guild and bulk-deletes any from that user within the past hour (snowflake timestamp boundary). Catches messages sent before the trigger message hit. Reviewed-on: http://git.infernonode.com/HotaruBlaze/Cinderwatch/pulls/1 Co-authored-by: Hermes-Neo <hermes-neo@noreply.localhost> Co-committed-by: Hermes-Neo <hermes-neo@noreply.localhost>
Cinderwatch
A Discord antispam bot that watches designated channels, deletes messages, and bans users who post in them.
Usage
- Copy
.env.exampleto.envand setDISCORD_TOKEN. cargo run- Use
/mod_channel,/watch,/unwatch,/ban_reason,/immune_roleto configure per-guild.
Description
Languages
Rust
97.3%
Dockerfile
2.7%