Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add rich presence support and refactor event handling #9

Merged
merged 4 commits into from
Jan 6, 2025

Conversation

AS1100K
Copy link
Owner

@AS1100K AS1100K commented Jan 6, 2025

  • Added rich_presence feature with necessary dependencies in Cargo.toml
  • Introduced ChannelPlugin and ChannelRes for shared event handling
  • Refactored event handling to use EventCollection for both bot and rich_presence features
  • Updated DiscordBotPlugin to use ChannelRes for event communication
  • Added DiscordRichPresencePlugin for integrating Discord Rich Presence
  • Created EventHandler for handling rich presence events
  • Updated system setup to conditionally run based on ChannelRes existence

- Added `rich_presence` feature with necessary dependencies in `Cargo.toml`
- Introduced `ChannelPlugin` and `ChannelRes` for shared event handling
- Refactored event handling to use `EventCollection` for both `bot` and `rich_presence` features
- Updated `DiscordBotPlugin` to use `ChannelRes` for event communication
- Added `DiscordRichPresencePlugin` for integrating Discord Rich Presence
- Created `EventHandler` for handling rich presence events
- Updated system setup to conditionally run based on `ChannelRes` existence
@AS1100K AS1100K marked this pull request as ready for review January 6, 2025 13:03
@AS1100K AS1100K merged commit 160a8e9 into main Jan 6, 2025
2 of 3 checks passed
@AS1100K AS1100K deleted the rich-presence branch January 6, 2025 13:23
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