Skip to content

Isolate SimplyJPK's Tip Service from his feat/misc-improvements branch#316

Merged
Pierre-Demessence merged 66 commits into
Unity-Developer-Community:masterfrom
hariedo:master
May 2, 2025
Merged

Isolate SimplyJPK's Tip Service from his feat/misc-improvements branch#316
Pierre-Demessence merged 66 commits into
Unity-Developer-Community:masterfrom
hariedo:master

Conversation

@hariedo
Copy link
Copy Markdown

@hariedo hariedo commented Apr 24, 2025

Isolate SimplyJPK's Tip Service from his feat/misc-improvements branch.

@github-actions
Copy link
Copy Markdown

🚀 Deploy this PR to an environment

You can deploy this PR to either development or staging environment:

  • Comment /deploy_dev to deploy to the development environment

Alternatively, you can:

  1. Go to Actions tab
  2. Click on "Manual Deploy to Firebase" workflow
  3. Click the "Run workflow" button
  4. Select branch: master
  5. Choose environment: DEV
  6. Enter a deployment message
  7. Click "Run workflow"

@hariedo
Copy link
Copy Markdown
Author

hariedo commented Apr 24, 2025

/deploy_dev

@github-actions
Copy link
Copy Markdown

🚀 Starting deployment of hariedo/UDC-Bot:master to development...

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR isolates the Tip Service from SimplyJPK's feat/misc-improvements branch by introducing a dedicated tip service with independent settings and endpoints.

  • Introduces new tip-related settings in Settings.cs
  • Implements TipService with functionalities to add and retrieve tips
  • Updates Program.cs and adds TipModule to expose tip commands

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
DiscordBot/Settings/Deserialized/Settings.cs Adds tip service configuration settings
DiscordBot/Services/Tips/TipService.cs Implements tip service with tip storage and logging
DiscordBot/Services/Tips/Components/Tip.cs Defines the Tip model
DiscordBot/Program.cs Registers TipService for dependency injection
DiscordBot/Modules/TipModule.cs Exposes tip retrieval and addition commands

Comment thread DiscordBot/Services/Tips/TipService.cs
Comment thread DiscordBot/Services/Tips/TipService.cs
@hariedo
Copy link
Copy Markdown
Author

hariedo commented Apr 24, 2025

The dev bot needs a new setting for TipImageDirectory which means it should probably also have a new directory made for it. It's "running" safely without it by saying "TipImageDirectory not set, service will not run." I can continue testing once the folder exists and the bot knows where it is.

@hariedo
Copy link
Copy Markdown
Author

hariedo commented Apr 24, 2025

/deploy_dev

@github-actions
Copy link
Copy Markdown

🚀 Starting deployment of hariedo/UDC-Bot:master to development...

@hariedo
Copy link
Copy Markdown
Author

hariedo commented Apr 24, 2025

Tested, no crashes, no issues found. Ready to merge as a baseline. Will expand and do light cleanup from here.

hariedo added 11 commits April 24, 2025 12:17
Require moderator just to use !tip until released.
Fix TipHelp command copy/paste mistake.
* break out rules for valid keywords, attachments
* give error messages for invalid provided arguments
* detect and ignore empty tips
* Added an Id property for editing/removing tips later.

Without this, you'd have to remove multiple tips based on a keyword search.  With this, however, we now have to show the Id property in any editing interfaces.  It's up to the service how to choose values for Id.
* size of attachment moves into the rule check function
* using Discord namespace.
* pull Json serialization out of AddTip
* add CommitTipDatabase to save json to file
* add DumpTipDatabase to return json for debugging
Added draft implementations of commands:
* removetip
* dumptips
* tiphelp
Since it has an error message, RemoveTip is async.
Still no implementation.
First work Tip database searches, dumps, removals
@github-actions
Copy link
Copy Markdown

🚀 Starting deployment of hariedo/UDC-Bot:master to development...

@hariedo
Copy link
Copy Markdown
Author

hariedo commented Apr 25, 2025

/deploy_dev

@github-actions
Copy link
Copy Markdown

🚀 Starting deployment of hariedo/UDC-Bot:master to development...

@hariedo
Copy link
Copy Markdown
Author

hariedo commented Apr 25, 2025

/deploy_dev

@github-actions
Copy link
Copy Markdown

🚀 Starting deployment of hariedo/UDC-Bot:master to development...

@hariedo
Copy link
Copy Markdown
Author

hariedo commented Apr 25, 2025

/deploy_dev

@github-actions
Copy link
Copy Markdown

🚀 Starting deployment of hariedo/UDC-Bot:master to development...

@hariedo
Copy link
Copy Markdown
Author

hariedo commented Apr 25, 2025

/deploy_dev

@github-actions
Copy link
Copy Markdown

🚀 Starting deployment of hariedo/UDC-Bot:master to development...

@hariedo
Copy link
Copy Markdown
Author

hariedo commented Apr 30, 2025

/deploy_dev

@github-actions
Copy link
Copy Markdown

🚀 Starting deployment of hariedo/UDC-Bot:master to development...

@Pierre-Demessence Pierre-Demessence merged commit d0a4338 into Unity-Developer-Community:master May 2, 2025
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.

3 participants