Fix runtime bugs, clean up code, add new commands #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Repo-wide audit fixing runtime bugs, removing dead code/comments, and adding new slash commands.
Bug Fixes
adminIdsshadowing inPOST /setup:const adminIdsshadowed the outerlet adminIds, causing a TypeError on reassignment. Renamed local toinputAdminIds.dashboard.ejs:.user-chipblock orphaned outside its@media (max-width: 375px)query with a stray}, breaking layout on small screens.purgeandtimeoutcommands usedaddNumberOption/getNumberinstead ofaddIntegerOption/getInteger— Discord expects integer type for these options.kickcommand DM'dtarget(GuildMember) after kick — member is unreachable post-kick. Now DMstarget.userbefore kicking.ensureConfig()calledConfig.findOne()without checking MongoDB connection state — crashes when mongo is unconfigured.GET /control/configrendereddashboard.ejswithout passingguild, which the template references.Security
sameSite: 'lax'to session cookie.Cleanup
eslint-disable-next-lineand obvious inline comments across the codebase.dashboard-backup.ejs,dashboard-new.ejs,dashboard-old.ejs,start.log..gitignorefor backup files and logs.New Commands
/8ball/warn/embed/roleinfo/channelinfoGuildModerationintent for audit log event support.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.