TJ-Bot
TJ-Bot copied to clipboard
Auto-post advice on empty help threads
Sometimes new users create a help thread and then dont post any details in it.
In such a situation, the bot should (after some waiting time, maybe 5 minutes) post a message where it pings the author and asks them to post some details, shortly explaining how the system works.
This could be setup as scheduled task, scheduled by ImplictAskListener.java and AskCommand.java (via a separate helper class). Where we could schedule this "explain-job" in 5 minutes after creating the threads. The job would then check the thread history to see if there are any messages already (other than from the bot) - and if not, it would post this message.
Also, we would have to setup a small database to memorize help thread channel ID <-> author ID in order to be able to know who to ping.
We could potentially use the current database implemented where it removes the thread if a member leaves the guild.
Yes, thats the plan. Hence the:
Also, we would have to setup a small database to memorize help thread channel ID <-> author ID in order to be able to know who to ping.
🧠 👍
I will make this functionality
Any progress on this feature @java-coding-prodigy? ^^
Oops I totally forgot about this! I had worked on this previously but I can conplete it now. I was unsure whether I would have to use a ScheduledFuture or if the RestAction API provides the required functionality, could someone please clarify that bit?
Just use a ScheduledExecutor, where you run it after 5 minutes, and in there you do the check whenever you've to post advice.
we already have a similar feature that u can copy pasta. we auto-post advice for selecting a category for questions in ImplicitAskListener. it runs as a scheduled task, 5 minutes after creation.