Skip to content

Add command to reset activity for a help thread #567

@Zabuzard

Description

@Zabuzard

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)

Metadata

Metadata

Assignees

Labels

hacktoberfesthelp wantednew commandAdd a new command or group of commands to the botpriority: majorvalidThis issue/PR is validated and ready to be picked. This auto adds items to TJ project board.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions