Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

Summary

Adds a new welcome cog that sends configurable DM welcome messages to new members when they join a server. Server admins can use the ?welcome command to view the current welcome message and click an "Edit Message" button to open a modal for editing.

Key components:

  • welcome_settings table storing per-guild welcome messages
  • on_member_join listener that sends DMs to new (non-bot) members
  • ?welcome hybrid command (requires manage_guild permission) showing current config with edit button
  • Modal UI for editing/clearing the welcome message

Review & Testing Checklist for Human

  • Verify the bot has the members intent enabled - The current __init__.py only enables message_content intent. The on_member_join listener requires the members privileged intent to receive join events. Without this, the feature will silently not work.
  • Test the full flow: set a welcome message via the command, have a test account join the server, verify the DM is received
  • Consider whether the "Edit Message" button should have its own permission check (currently anyone who can see the command response can click it)
  • Note that failed DMs (when user has DMs disabled) are silently ignored - consider if this should be logged

Notes

Requested by @oliver-ni

Link to Devin run: https://app.devin.ai/sessions/c2bcec2721f548d689fb6643c50ebc5a

- Add welcome.py cog that sends DMs to new members on join
- Per-server configurable welcome message stored in database
- Command to view current welcome text with edit button
- Modal UI for editing the welcome message
- Requires manage_guild permission to configure

Co-Authored-By: Oliver Ni <oliver.ni@gmail.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

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.

0 participants