Last 12 weeks · 26 commits
2 of 6 standards met
New slash command for the bot to create a thread based on params: title (default: "Breakout: [current thread name]") Then the bot would: open the new thread with first post linking back to the thread the command was called from post to the calling thread mentioning and linking to the new broken-out thread
Problem members rapidly posting 3+ messages within a 10-second period in a single channel were incorrectly flagged as multi-channel spam attempts because the rate limit on the messages alone would short-circuit the logic and not check for multi-channel spam. https://github.com/sveltejs/discord-bot/blob/3cf765e2dd4217d1ced99f1fbdce24fb428ebfae/src/utils/ratelimit.ts#L33-L41 Those members were timed out as a result. https://github.com/sveltejs/discord-bot/blob/3cf765e2dd4217d1ced99f1fbdce24fb428ebfae/src/events/on_message/_spam_filter.ts#L96-L103 Solution adjust rate limit logic to correctly detect multi-channel usage remove timeout for now, so we can opt back in via an environment variable. For now, mutli-channel-spam is logged to moderators. Todos [x] Fix multi-channel spam rate limit detection [x] Remove timeout on multi-channel spam [x] Add unit test [x] Add config flag to timeout on multi channel spam
Repository: sveltejs/discord-bot. Description: The official Svelte Discord Bot Stars: 40, Forks: 8. Primary language: TypeScript. Languages: TypeScript (76.4%), Go (23%), Dockerfile (0.3%), Shell (0.2%). License: MIT. Open PRs: 2, open issues: 20. Last activity: 3d ago. Community health: 50%. Top contributors: ghostdevv, gtm-nayan, theetrain, pngwn, dmgnr.