GitShow/sveltejs/discord-bot
sveltejs

discord-bot

The official Svelte Discord Bot

by sveltejs
Star on GitHubForknpm

TypeScript

41 stars9 forks6 contributorsActive · 3d agoSince 2021MIT

Meet the team

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

Languages

View on GitHub →
TypeScript76.9%
Go22.6%
Dockerfile0.3%
Shell0.2%

Commit activity

Last 12 weeks · 7 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 · 2mo 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 · 2mo 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 · 2mo ago

Recent fixes

View closed PRs →
theetrain
feat: log message deletionsMergedPR

Closes #83 Log message deletions; note this event only triggers when a user deletes a message, and not when a thread gets deleted (the deleted thread's respective messages are not logged). Use embeds for previewing messages

theetrain · 3d ago
theetrain
Log message deletionClosedIssue

When an admin/mod deletes a message, forward the post to mods-logs with prepended message: Message sent by [user] deleted in [channel] by [user]. [message] Inspiration:

theetrain · 3d ago
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 · 1mo ago
Structured data for AI agents

Repository: sveltejs/discord-bot. Description: The official Svelte Discord Bot Stars: 41, Forks: 9. Primary language: TypeScript. Languages: TypeScript (76.9%), Go (22.6%), Dockerfile (0.3%), Shell (0.2%). License: MIT. Open PRs: 2, open issues: 19. Last activity: 3d ago. Community health: 50%. Top contributors: ghostdevv, gtm-nayan, theetrain, pngwn, dmgnr.

·@ofershap

Replace github.com with gitshow.dev