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

major: various fixes, codebase improvements/cleanup, packages/sdk update #3

Merged
merged 74 commits into from
Oct 1, 2024

Conversation

bryanpth
Copy link
Contributor

@bryanpth bryanpth commented Sep 2, 2024

What does this PR do?

Updates

  • .NET SDK from 7.0 to 8.0
  • C# language from 9.0 to 12.0
  • and all packages to their latest available versions. (e.g: discord.net, etc..)

Fixes

  • Fixed /compare not properly returning when the same player was asked to be compared.
  • Fixed a typo in the alliance rename command output.
  • Fixed non-awaited warning for compensation tasks.
  • Fixed pagniation not working in DMs.

Improvements

  • Improved many publicly available commands response ouput.
  • Improved almost every moderation commands and logging response ouput.
  • Improved various commands response strings.
  • Added usernames for authorized discord user ids, this allows to easily identify which user has empowered permissions.
  • Added missing readonly modifiers on various files.
  • Made slight improvements to code readability on various files.
  • Made others various miscellaneous changes that improves codebase quality.

Documentation

  • Updates README.md for a clearer output.

Codebase cleanup

  • Deleted unused Dashboard project.
  • Added .editorconfig to ensure proper code quality.
  • Added .gitattributes to ensure normalized line endings to lf internally.

Continuous integration

  • Deleted previous console.yml and dashboard.yml workflows.
  • Added ci.yaml, which ensure proper code formatting and warning/error free application compiling.

--

  • Tested all publicly available commands.

This change makes it easier to identify which user has private empowered permissions when looking at the files.
- Updated embed
- Renamed lambda parameters for clarity
- Updated `HandleUpdateMessagePagesAsync` embed
- Added embed timestamp restoring
- Renamed lambda parameters for clarity
- Updated `GetEmbedForLog` returned embeds.
- Renamed `victim` to `target`.
- Formatting and identation changes for code readability.
- Converted `GetColorBasedOnAction` switch statement to a switch expression for code readability.
- Updated `ShowAllStatsAsync` returned embed
- Updated `AddModerationModuleToGuildAsync` returned embed
- Renamed lambda parameters for clarity
- Updated embeds builders to use `withTitle()`
- Minor changes to indentation for code readability
- Updated `/overview` returned response embed.
- Updated `/reloadrules` command returned response embed.
- Updated `/reset` command returned response embed.
- Renamed lambda parameters for clarity.
- Updated `/status` command output embed.
- Updated `/compare` command output embed.
- Various lambda parameters renamed for clarity.
- Code formatting and indentation changes for readability.
- Updated various strings.
- Code formatting and indentation changes for readability.
- Updated all moderation commands output embeds.
- Updated many commands description.
- Renamed various lambda parameters for clarity.
- Code formatting and indentation changes for readability.
- More miscellaneous changes.
@bryanpth bryanpth self-assigned this Sep 2, 2024
bryanpth and others added 4 commits September 4, 2024 20:37
Discarding the result of compensation tasks to suppress non-awaited warnings, assuming these tasks aren't awaited on purpose
- refactor `FormatNumber` to use switch expression instead of regular if else.
- fixed typo in number formatting, there was 2 checks for 10k<, leading to the last one never being reached
- Various visual improvements to the returned embed
@bryanpth bryanpth changed the title feat: .NET 8.0, better embeds, various fixes and overall improvements major: various fixes, codebase improvements/cleanup, packages/sdk update Sep 27, 2024
@bryanpth bryanpth marked this pull request as ready for review September 27, 2024 19:00
Copy link
Member

@svr333 svr333 left a comment

Choose a reason for hiding this comment

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

Everything looks good to me, thanks for all the refactoring!

@svr333 svr333 merged commit e11d704 into master Oct 1, 2024
2 checks passed
@svr333 svr333 deleted the refactor/cleanup branch October 1, 2024 14:55
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.

2 participants