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

Fix errors from last PR & some more #242

Merged
merged 30 commits into from
Dec 23, 2024
Merged

Conversation

Sella-GH
Copy link
Owner

No description provided.

@Sella-GH Sella-GH added this to the 2.2.0 milestone Dec 23, 2024
@Sella-GH Sella-GH self-assigned this Dec 23, 2024
@Copilot Copilot bot review requested due to automatic review settings December 23, 2024 17:23
Signed-off-by: Sellara <147769367+Sella-GH@users.noreply.github.com>

Choose a reason for hiding this comment

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

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

Files not reviewed (15)
  • Directory.Build.props: Language not supported
  • src/AzzyBot.Bot/AzzyBot.Bot.csproj: Language not supported
  • src/AzzyBot.Bot/Commands/Checks/AzuraCastDiscordChannelCheck.cs: Evaluated as low risk
  • src/AzzyBot.Bot/Commands/Checks/ModuleActivatedCheckAttribute.cs: Evaluated as low risk
  • src/AzzyBot.Bot/Commands/Checks/ModuleActivatedCheck.cs: Evaluated as low risk
  • src/AzzyBot.Bot/Commands/Checks/AzuraCastOnlineCheck.cs: Evaluated as low risk
  • src/AzzyBot.Bot/Commands/Checks/AzuraCastFeatureCheck.cs: Evaluated as low risk
  • src/AzzyBot.Bot/Commands/Checks/AzuraCastDiscordPermCheck.cs: Evaluated as low risk
  • CHANGELOG.md: Evaluated as low risk
  • src/AzzyBot.Bot/Commands/Autocompletes/AzuraCastSystemLogAutocomplete.cs: Evaluated as low risk
  • src/AzzyBot.Bot/Commands/AzuraCastCommands.cs: Evaluated as low risk
  • src/AzzyBot.Bot/Commands/Autocompletes/AzuraCastRequestAutocomplete.cs: Evaluated as low risk
  • src/AzzyBot.Bot/Commands/Autocompletes/AzuraCastMountAutocomplete.cs: Evaluated as low risk
  • src/AzzyBot.Bot/Commands/Autocompletes/AzuraCastStationsAutocomplete.cs: Evaluated as low risk
  • src/AzzyBot.Bot/Commands/Autocompletes/AzuraCastPlaylistAutocomplete.cs: Evaluated as low risk
Comments suppressed due to low confidence (6)

src/AzzyBot.Bot/Commands/ConfigCommands.cs:90

  • The removal of await context.DeferResponseAsync(); might affect the responsiveness of the bot, especially for long-running operations. Consider keeping it to ensure a responsive user experience.
await context.DeferResponseAsync();

src/AzzyBot.Bot/Commands/ConfigCommands.cs:536

  • The removal of await context.DeferResponseAsync(); might affect the responsiveness of the bot, especially for long-running operations. Consider keeping it to ensure a responsive user experience.
await context.DeferResponseAsync();

src/AzzyBot.Bot/Commands/ConfigCommands.cs:568

  • The removal of await context.DeferResponseAsync(); might affect the responsiveness of the bot, especially for long-running operations. Consider keeping it to ensure a responsive user experience.
await context.DeferResponseAsync();

src/AzzyBot.Bot/Commands/ConfigCommands.cs:633

  • The removal of await context.DeferResponseAsync(); might affect the responsiveness of the bot, especially for long-running operations. Consider keeping it to ensure a responsive user experience.
await context.DeferResponseAsync();

legal/Terms-Of-Service.md:12

  • The effective date should refer to the Terms of Service Agreement, not the Privacy Policy. It should be corrected to 'This Terms of Service Agreement is effective as of 2024-12-22.'
This Privacy Policy is effective as of 2024-12-22.

src/AzzyBot.Bot/Commands/AdminCommands.cs:182

  • [nitpick] The error message 'NoGuildFound' is unclear. It should be more descriptive, such as 'No guilds found to reset legals for'.
await context.EditResponseAsync(GeneralStrings.NoGuildFound);
Repository owner deleted a comment from Copilot bot Dec 23, 2024
Repository owner deleted a comment from Copilot bot Dec 23, 2024
@Sella-GH Sella-GH requested a review from Copilot December 23, 2024 17:30
Copy link
Contributor

@Copilot 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.

Copilot reviewed 5 out of 11 changed files in this pull request and generated 1 comment.

Files not reviewed (6)
  • CHANGELOG.md: Evaluated as low risk
  • src/AzzyBot.Bot/Services/CronJobs/AzzyBotGlobalChecksJob.cs: Evaluated as low risk
  • src/AzzyBot.Data/Services/DbActions.cs: Evaluated as low risk
  • src/AzzyBot.Bot/Commands/CoreCommands.cs: Evaluated as low risk
  • src/AzzyBot.Bot/Commands/MusicStreamingCommands.cs: Evaluated as low risk
  • src/AzzyBot.Bot/Commands/Autocompletes/AzuraCastMountAutocomplete.cs: Evaluated as low risk
Comments suppressed due to low confidence (1)

src/AzzyBot.Bot/Commands/Autocompletes/AzuraCastStationsAutocomplete.cs:65

  • [nitpick] The error message could be clearer by including the station name or ID directly in the message.
await _botService.SendMessageAsync(azuraCast.Preferences.NotificationChannelId, $"I don't have the permission to access the **station** ({station}) endpoint.\n{AzuraCastApiService.AzuraCastPermissionsWiki}");

src/AzzyBot.Bot/Commands/ConfigCommands.cs Outdated Show resolved Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Sellara <147769367+Sella-GH@users.noreply.github.com>
@Sella-GH Sella-GH requested a review from Copilot December 23, 2024 17:32
@Sella-GH Sella-GH added bug Something isn't working area-database Database related stuff area-bot Stuff which is related to the bot labels Dec 23, 2024

Choose a reason for hiding this comment

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

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

Files not reviewed (7)
  • src/AzzyBot.Data/Services/DbActions.cs: Evaluated as low risk
  • legal/Terms-Of-Service.md: Evaluated as low risk
  • src/AzzyBot.Bot/Commands/CoreCommands.cs: Evaluated as low risk
  • src/AzzyBot.Bot/Commands/MusicStreamingCommands.cs: Evaluated as low risk
  • src/AzzyBot.Bot/Services/CronJobs/AzzyBotGlobalChecksJob.cs: Evaluated as low risk
  • CHANGELOG.md: Evaluated as low risk
  • src/AzzyBot.Bot/Commands/Autocompletes/AzuraCastMountAutocomplete.cs: Evaluated as low risk
Comments suppressed due to low confidence (2)

src/AzzyBot.Bot/Commands/Autocompletes/AzuraCastSystemLogAutocomplete.cs:52

  • [nitpick] The error message could be more specific. Suggest changing to: "I don't have the permission to access the system logs endpoint for administrative purposes.\n{AzuraCastApiService.AzuraCastPermissionsWiki}"
await _botService.SendMessageAsync(azuraCast.Preferences.NotificationChannelId, "I don't have the permission to access the administrative **system logs** endpoint.\n{AzuraCastApiService.AzuraCastPermissionsWiki}");

src/AzzyBot.Bot/Commands/Autocompletes/AzuraCastStationsAutocomplete.cs:65

  • [nitpick] The error message is clear and helpful. Ensure that the station variable is correctly formatted in the message.
await _botService.SendMessageAsync(azuraCast.Preferences.NotificationChannelId, "I don't have the permission to access the **station** ({station}) endpoint.\n{AzuraCastApiService.AzuraCastPermissionsWiki}");
@Sella-GH Sella-GH merged commit 29e1351 into main Dec 23, 2024
17 checks passed
@Sella-GH Sella-GH deleted the dev/FixAzuraCastOfflineErrors branch December 23, 2024 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-bot Stuff which is related to the bot area-database Database related stuff bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant