TJ-Bot icon indicating copy to clipboard operation
TJ-Bot copied to clipboard

Add command to reset activity for a help thread

Open Zabuzard opened this issue 3 years ago • 3 comments

This is a suggestion from the server.

Motivation

Sometimes, helpers try to improve the question quality by having a bit of discussion and back and forth, but dont attempt to actually answer the question.

After the question is in a good shape, so many messages have been posted that the bot thinks that the thread is fine and marks it 🟦 (seems fine). This is a problem however, since OP didnt actually receive any help yet.

Or sometimes helpers loop out and the issue isnt solved yet.

Solution

We could add a special command /reset-help-activity (name to be decided) that tells the bot to forget about all messages before "now" for this thread. So that it naturally falls back to 🔻, thinking that nobody wrote a message yet.

Technically, this probably can be implemented elegantly via the retrieveMessageHistory method overloads. Right now, it just retrieves the whole history from the beginning, but this can be changed to only retrieve after a certain message ID or timestamp.

This message ID or timestamp can be remembered in the existing help thread metadata database. (or simply in a in-memory map, if thats too difficult otherwise)

Zabuzard avatar Sep 08 '22 09:09 Zabuzard

This issue is stale because it has been open 30 days with no activity. Remove stale label, comment or add the valid label or this will be closed in 5 days.

github-actions[bot] avatar Oct 09 '22 07:10 github-actions[bot]

Hello, i would like to be assigned for this issue. :) Can I?

WariX000 avatar Oct 12 '22 12:10 WariX000

Of course, welcome to the project! :relaxed: :heart:

marko-radosavljevic avatar Oct 12 '22 13:10 marko-radosavljevic

@WariX000 whats ur progress on this? otherwise someone else will take over

Zabuzard avatar Nov 14 '22 08:11 Zabuzard

I've sent response via mail

WariX000 avatar Nov 15 '22 00:11 WariX000

No activity since 2 months, gonna unassigned u for the time being 😮

Zabuzard avatar Dec 08 '22 07:12 Zabuzard

I can implement the ticket as soon as you assign me to it.

CodePawfect avatar Dec 27 '22 21:12 CodePawfect