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

Added tiktok social link and made all commands toggleable individuable #47

Merged
merged 8 commits into from
Nov 11, 2024

Conversation

NonSwag
Copy link
Member

@NonSwag NonSwag commented Nov 11, 2024

  • Added /tiktok command
  • Added tiktok server link
  • Added enabled option to every command

Removed unnecessary @AllArgsConstructor and refactored CommandDefinition class. Command definitions now use a simplified constructor with an enabled flag set by default to true. Updated command initialization throughout CommandConfig to align with the new constructor.
Moved the isProxyEnabled method from PluginConfig to CommandConfig to better organize proxy-related logic. This change also removes redundant proxy check in PluginConfig, streamlining the code.
Introduce TikTok social media links and commands. Added TikTok-related properties in multiple configuration files and implemented the TikTok command handler. This allows users to interact with TikTok through the application.
Changed the displayed message from "Watch us on Twitch" to "Follow us on Twitch" when registering the Twitch command. This better reflects the intended call-to-action for users.
Modified the `TweaksPlugin` class to conditionally register time, weather, and workstation commands based on configuration. Added corresponding fields in `PluginConfig` to control these feature flags.
Modified the command registration methods to check if each command is enabled before registering it. This enhances modularity by ensuring that only the configured commands are registered, thus optimizing performance and customization.
Enhanced user interaction by adding hover texts to social media links, both in the default and German properties files. This improvement provides additional information when users hover over the links, improving clarity and user experience.
Revised the command configuration retrieval method to use the new `commands()` method instead of `config().features().social()`. This refactoring simplifies the logic for checking if social commands are enabled before registering them.
@NonSwag NonSwag self-assigned this Nov 11, 2024
@NonSwag NonSwag merged commit e0f44bb into master Nov 11, 2024
2 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.

1 participant