Skip to content

Conversation

Zabuzard
Copy link
Member

@Zabuzard Zabuzard commented Sep 1, 2022

Overview

Closes #487 .

Reminds the user of selecting a category for their help threads if they still dont have one after 5 minutes:

example

Technically, its solved with a simple scheduled task - scheduled after creation of threads without categories (ImplicitAskListener).

Notes

I put the code for that into HelpSystemHelper since the executor service (with 3 threads) should be reused for #481 and similar issues.

The ping is outside of the embed to ensure it actually pings the author, instead of just a soft-ping. But I still wanted to keep using the embed instead of a raw message for the better UI.

Before someone asks during CR, there is no overload for retrieveThreadChannelById or similar. JDAs cache seems to be a reliable source for channels, similar to guilds (i.e. JDA seems to receive all updates to them and keeps the cache up2date - unlike for users).

@Zabuzard Zabuzard added the enhancement New feature or request label Sep 1, 2022
@Zabuzard Zabuzard self-assigned this Sep 1, 2022
@Zabuzard Zabuzard requested review from a team as code owners September 1, 2022 19:13
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 1, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@Zabuzard
Copy link
Member Author

Zabuzard commented Sep 7, 2022

one week, no progress. merging

@Zabuzard Zabuzard merged commit ece11d0 into develop Sep 7, 2022
@Zabuzard Zabuzard deleted the feature/auto_post_uncategorized_advice branch September 7, 2022 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request priority: normal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto-post category advice on uncategorized help threads

2 participants