sravan1946 / sravan-cogs

Some random cogs made by me for my bot made using Red-DiscordBot
MIT License
5 stars 10 forks source link

Bug Fixes and Improved Formatting for Settings Embed #36

Closed mellow-org closed 3 weeks ago

mellow-org commented 2 months ago
  1. Fixed an issue where the bot wouldn't send the configured message when the action is set to "none" and the amount is
  2. Reformatted the settings command for better clarity and ease of use, consolidating all details into a single embed.
  3. Enhanced format_help_for_context for improved readability and context.

Summary by Sourcery

This pull request addresses a bug where the bot failed to send a configured message under certain conditions and improves the formatting of the settings command and help context for better readability and usability.

sourcery-ai[bot] commented 2 months ago

Reviewer's Guide by Sourcery

This pull request focuses on fixing a bug where the bot wouldn't send the configured message when the action is set to 'none' and the amount is 1. Additionally, it improves the formatting and readability of the settings command by consolidating all details into a single embed and enhancing the format_help_for_context method.

File-Level Changes

Files Changes
dps/dps.py Refactored the settings command to improve formatting and readability, and fixed a bug related to message sending when action is 'none'.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.