Skip to content

v1.3 Here we go! - #129

Merged
doodles172 merged 13 commits into
mainfrom
v1.3
Aug 11, 2026
Merged

v1.3 Here we go!#129
doodles172 merged 13 commits into
mainfrom
v1.3

Conversation

@doodles172

Copy link
Copy Markdown
Member

No description provided.

QoL and has been on the todo for a while.
Moved logging to its own function (sendLog) as we now also log when it gets disabled.
Including, administrator & manage guild permission.
Excluding:
- Leave
- Ban (still changed moderator)
- Unban (still changed moderator)
- Kick (still changed moderator)
Excluding ephemeral commands obviously.
Formatted some files that I forgot to format last time.
Copilot AI lite review requested due to automatic review settings August 11, 2026 14:07
@doodles172
doodles172 merged commit 4e840a2 into main Aug 11, 2026
4 checks passed
@doodles172
doodles172 deleted the v1.3 branch August 11, 2026 14:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the monorepo’s dependency constraints and expands QuestBot moderation/logging capabilities, including server-wide lockdown controls, improved starboard cleanup behavior, and richer audit-style logging.

Changes:

  • Added pnpm overrides (fast-uri) and refreshed lockfile/resolved dependency versions.
  • Introduced server/channel lockdown support (DB fields + bot library + slash commands).
  • Enhanced logging and moderation utilities (settings change logging, sticky logging, starboard cleanup hooks, and log embed author/moderator formatting).

Reviewed changes

Copilot reviewed 29 out of 30 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
pnpm-workspace.yaml Adds workspace-level overrides and release-age setting.
pnpm-lock.yaml Persists overrides and bumps multiple resolved dependency versions.
packages/database/prisma/schema.prisma Adds locked/lockedDown state fields for new lockdown features.
biome.json Updates Biome schema reference.
apps/dash/vite.config.ts Uses import.meta.dirname for ESM-friendly path resolution.
apps/bot/src/listeners/stickyCommand.ts New listener to repost stickies for successful chat input commands.
apps/bot/src/listeners/messageUpdate.ts Avoids logging bot-authored edits; improves author field formatting.
apps/bot/src/listeners/messageDeleteBulk.ts Removes related starboard posts for bulk deletions.
apps/bot/src/listeners/messageDelete.ts Removes related starboard posts for single deletions; changes author formatting.
apps/bot/src/listeners/messageCreate.ts Adds automod exemptions for admins/ManageGuild.
apps/bot/src/listeners/guildMemberUpdate.ts Adjusts timeout log formatting (mentions).
apps/bot/src/listeners/guildMemberRemove.ts Adjusts moderator formatting (mentions).
apps/bot/src/listeners/guildBanAdd.ts Adjusts moderator formatting (mentions).
apps/bot/src/listeners/emojiUpdate.ts Adjusts moderator formatting (mentions).
apps/bot/src/listeners/emojiDelete.ts Adjusts moderator formatting (mentions).
apps/bot/src/listeners/emojiCreate.ts Adjusts moderator formatting (mentions).
apps/bot/src/listeners/channelDelete.ts Updates starboard cleanup behavior on channel deletion; adjusts moderator formatting.
apps/bot/src/listeners/channelCreate.ts Adjusts moderator formatting (mentions).
apps/bot/src/lib/starboard.ts Adds privacy guard + robust post purging APIs; improves fetch error handling.
apps/bot/src/lib/settings.ts Adds SETTING_LABELS metadata for structured settings-change logs.
apps/bot/src/lib/logging.ts Adds structured settings-change logging and refactors log sending.
apps/bot/src/lib/lockdown.ts New lockdown/unlock implementation storing state in DB + managing permissions.
apps/bot/src/lib/honeypot.ts Tweaks embed/button presentation for honeypot channel.
apps/bot/src/commands/utility/suggest.ts Adds cooldown and a comment.
apps/bot/src/commands/utility/setup.ts Routes settings updates through logging-aware helper.
apps/bot/src/commands/utility/settings.ts Logs settings changes on interactive updates.
apps/bot/src/commands/moderation/sticky.ts Logs sticky set/remove actions to logging channel.
apps/bot/src/commands/moderation/lockdown/unlockdown.ts Adds /unlockdown command.
apps/bot/src/commands/moderation/lockdown/lockdown.ts Adds /lockdown command.
apps/bot/package.json Bumps undici range to match lockfile resolution.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file
Suppressed comments (1)

apps/bot/src/lib/lockdown.ts:52

  • Editing channel permission overwrites requires ManageChannels (or Administrator), not ManageRoles. As written, the bot may skip channels it can lock, or attempt to lock and then fail despite this guard. Use ManageChannels for the permission check.
		if (!channel.isSendable() || !channel.permissionsFor(me).has(PermissionFlagsBits.ManageRoles)) {
			skipped++;
			continue;

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +18 to +23
async function sendLog(guild: Guild, channelId: string, embed: EmbedBuilder) {
const channel = await guild.channels.fetch(channelId).catch(() => null);
if (!channel?.isTextBased() || !channel.isSendable()) return;

await channel.send({ embeds: [embed] }).catch((err) => console.error(err));
}
Comment on lines +46 to +48
if (!everyonePerms.has(PermissionFlagsBits.ViewChannel)) continue;
if (!everyonePerms.has(PermissionFlagsBits.SendMessages)) continue;
if (!everyonePerms.has(PermissionFlagsBits.SendMessagesInThreads)) continue;
Comment on lines +17 to +19
// discord fires this event for ephemeral commands, don't repost if so
if (interaction.ephemeral !== false) return;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants