GitShow/sveltejs/discord-bot
sveltejs

discord-bot

The official Svelte Discord Bot

by sveltejs
Star on GitHubForknpm

TypeScript

40 stars8 forks6 contributorsActive · 3d agoSince 2021MIT

Meet the team

See all 6 on GitHub →
ghostdevv
ghostdevv215 contributions
gtm-nayan
gtm-nayan157 contributions
theetrain
theetrain19 contributions
pngwn
pngwn4 contributions
dmgnr
dmgnr1 contribution

Languages

View on GitHub →
TypeScript76.4%
Go23%
Dockerfile0.3%
Shell0.2%

Commit activity

Last 12 weeks · 26 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
50
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Active · 2 in progress · Last activity 3d ago
See all on GitHub →
theetrain
breakout thread commandOpenIssue

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

theetrain · 2w ago
theetrain
Spam detection: new user shares discord linkOpenIssue

When a user has fewer than 3 messages on the Svelte Discord, and they share an invite link to another Discord server: Time out user Post to mods-logs

theetrain · 2w ago
theetrain
Feature flagsOpenIssue

Idea: Add a table in Pocketbase to easily toggle features at runtime Privileged admins can change feature flags directly in PocketBase UI, and the bot will evaluate values at runtime.

theetrain · 2w ago

Recent fixes

View closed PRs →
theetrain
fix: rate limit behaviour for multi-channel spamMergedPR

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

theetrain · 3d ago
theetrain
fix: adjust softban logicMergedPR

Follow up to: #79 #78 Changes: Add artificial delay between ban and unban to ensure all messages are removed before unban.

theetrain · 1mo ago
Structured data for AI agents

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.

·@ofershap

Replace github.com with gitshow.dev