Skip to content

added a cute embed when the bot gets added to the server, dms the owner#12

Merged
breadddevv merged 1 commit into
mainfrom
added/dms-add
Jul 8, 2026
Merged

added a cute embed when the bot gets added to the server, dms the owner#12
breadddevv merged 1 commit into
mainfrom
added/dms-add

Conversation

@breadddevv

@breadddevv breadddevv commented Jul 8, 2026

Copy link
Copy Markdown
Member

🚀 Summary

  • Added automatic owner DMs with a branded embed when the bot joins a server.
  • Tightened bot-related guild member update handling and improved logger typing/customization.

✨ Features

  • Send a welcome DM to the guild owner on GuildCreate with links, thumbnail, and styled components.

🐛 Fixes

  • Ignore GuildMemberUpdate events for bot users before boost-state processing.

♻️ Improvements

  • Added a typed ChalkColors alias for safer logger color usage.
  • Added logger.custom(...) for timestamped, colorized log output with custom titles.

@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a55365e7-13eb-49e5-938f-6681656ea557

📥 Commits

Reviewing files that changed from the base of the PR and between 816eb85 and 98b1c89.

📒 Files selected for processing (4)
  • src/base/types/types.ts
  • src/events/guildMemberUpdate.ts
  • src/events/onServerAdd.ts
  • src/libs/logger.ts

📝 Walkthrough

Walkthrough

Introduces a ChalkColors type used by a new logger.custom method for colored console output, adds an early bot-skip check in guildMemberUpdate, and implements a GuildCreate event handler that DMs the guild owner a welcome message with Discord components.

Changes

Logger and Event Handler Updates

Layer / File(s) Summary
ChalkColors type and logger custom method
src/base/types/types.ts, src/libs/logger.ts
Adds a ChalkColors union type and a new logger.custom(message, title, color, ...args) method that logs a timestamped, colored, uppercased title line via chalk[color].
Skip bot users in guildMemberUpdate
src/events/guildMemberUpdate.ts
Adds an early return when oldMember's user is a bot, before any partial fetching or boost processing.
GuildCreate welcome DM handler
src/events/onServerAdd.ts
New GuildCreate handler logs the added guild, fetches the owner, builds a components-based welcome message with thumbnail and link buttons, DMs it to the owner, and logs errors on failure.

Estimated code review effort: 2 (Simple) | ~12 minutes

Possibly related PRs

  • teamboostify/boostify#7: Both PRs modify the GuildMemberUpdate handler in src/events/guildMemberUpdate.ts, touching the same execution flow.

Poem

A hop, a skip, a bot ignored,
New colors dance where logs are stored.
A welcome DM to owners sent,
With thumbnails, buttons, kindly meant. 🐇
Boostify grows, this rabbit's pleased!

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch added/dms-add

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@breadddevv breadddevv merged commit aa1d409 into main Jul 8, 2026
2 of 3 checks passed
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.

1 participant