-
Notifications
You must be signed in to change notification settings - Fork 9
Implement /duel slash command with interactive buttons and mute functionality #334
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
Conversation
|
Here's the code health analysis summary for commits Analysis Summary
|
🚀 Deploy this PR to an environmentYou can deploy this PR to either development or staging environment:
Alternatively, you can:
|
Co-authored-by: Pierre-Demessence <1756398+Pierre-Demessence@users.noreply.github.com>
|
/deploy_dev |
|
🚀 Starting deployment of |
|
A few suggestions :
|
…ice options Co-authored-by: Pierre-Demessence <1756398+Pierre-Demessence@users.noreply.github.com>
All suggestions implemented in commit 1dbe87f: • Duel refusal: Now edits embed to show "🛡️ Duel challenge was refused" instead of deleting message Changes reduce code complexity while improving UX and leveraging Discord's built-in features. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
/deploy_dev |
|
🚀 Starting deployment of |
|
A few more changes:
|
… timeout bug Co-authored-by: Pierre-Demessence <1756398+Pierre-Demessence@users.noreply.github.com>
All requested changes implemented in commit c0c429b: • Timeout message: Now shows "⏰ Duel challenge to @user expired" with the challenged user mentioned The timeout mechanism now stores the original message reference and uses that for modifications, which should resolve the intermittent timeout dismissal issue. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
/deploy_dev |
|
🚀 Starting deployment of |
|
I think the PR is good. It should stop being a draft PR and become "Ready for review" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Implements a new /duel slash command system that allows users to challenge each other to interactive duels with Discord button controls. The feature includes both normal fun duels and mute duels where the loser receives a 10-minute timeout.
- Interactive challenge system with Accept/Refuse/Cancel buttons and 60-second auto-timeout
- Random winner selection with 8 different victory flavor messages for engagement
- Mute duel integration using Discord's native timeout functionality
|
Copilot reviewed the code and said:
I think it's a good idea, make the change @copilot |
…l system Co-authored-by: Pierre-Demessence <1756398+Pierre-Demessence@users.noreply.github.com>
Changed to ConcurrentDictionary for thread-safe duel operations in commit c2248e0. This prevents race conditions when multiple users interact with duels simultaneously. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
/deploy_dev |
|
🚀 Starting deployment of |
|
There are errors now: Error: /home/runner/work/UDC-Bot/UDC-Bot/DiscordBot/Modules/UserSlashModule.cs(335,30): error CS7036: There is no argument given that corresponds to the required formal parameter 'value' of 'CollectionExtensions.Remove<TKey, TValue>(IDictionary<TKey, TValue>, TKey, out TValue)' [/home/runner/work/UDC-Bot/UDC-Bot/DiscordBot/DiscordBot.csproj] |
Co-authored-by: Pierre-Demessence <1756398+Pierre-Demessence@users.noreply.github.com>
Fixed the ConcurrentDictionary compilation errors by replacing |
|
/deploy_dev |
|
🚀 Starting deployment of |
5d2311c to
7ca33eb
Compare
This PR implements a new
/duelslash command that allows users to challenge each other to fun duels with interactive Discord buttons.Features
Core Functionality
/duel @user [type]- Challenge another user to a duelDuel Types
Safety & Validation
Example Usage
Technical Implementation
UserSlashModule.csfollowing existing patternsComponentInteractionfor button handlingUserService.MutedUsers)Fixes #333.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
www.myget.orgdotnet build(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.