Skip to content

Add numeric score to projects channel #1455

@Alathreon

Description

@Alathreon

Original suggestion: https://discord.com/channels/272761734820003841/480829495486447627/1488631505621090376

Is your feature request related to a problem? Please describe.

Currently in projects channel, only one emoji can be seen.
Which means that if the post has one upvote and one downvote, only one can be seen.

Describe the solution you'd like

The idea is to change that into a numeric system: the bot will count all votes and display a score as first emoji from -3 to 10 in order:
🔴 🟠 🟡 0️⃣ 1️⃣ 2️⃣ 3️⃣ 4️⃣ 5️⃣ 6️⃣ 7️⃣ 8️⃣ 9️⃣ 🔟
By default, the score will start at 1 (to count for op and also to not go negative at the first downvote) and will increase or decrease by 1 for each vote.

If an user adds any of the emojis used by this numeric score, it will be deleted.
The original poster vote will be ignored

Implementation detail
Allow to give ample configuration:

{
    "numericScoreConfig": [
        {
            "forumId": 1234567890123456789,
            "zeroScore": "0️⃣",
            "positiveScores": [
                "1️⃣", "2️⃣", "3️⃣", "4️⃣", "5️⃣", "6️⃣", "7️⃣", "8️⃣", "9️⃣", "🔟"
            ],
            "negativeScores": [
                "🟡", "🟠", "🔴"
            ]
        }
    ]
}

Describe alternatives you've considered

Keep the system as it is.

Additional context

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestjavaPull requests that update java code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions