Skip to content

TopHelpersCommand message is too long #603

@Zabuzard

Description

@Zabuzard

Issue

The TopHelpersCommand message is too long and crashes:

crash

Stacktrace:

stacktrace

Gotta make it a bit smaller.

Fix

We can just reduce the amount of people it lists from 20 to, lets say, 18:

https://github.com/Together-Java/TJ-Bot/blob/develop/application/src/main/java/org/togetherjava/tjbot/commands/tophelper/TopHelpersCommand.java#L43

To reproduce the issue locally and test whether that did the trick, one would have to fake the result returned by the DB call here:

https://github.com/Together-Java/TJ-Bot/blob/develop/application/src/main/java/org/togetherjava/tjbot/commands/tophelper/TopHelpersCommand.java#L71

Or directly put some fake data into the database in order to hit the limit of 20 people. Also, they should have a message count of around 10000 each. All of this contributes to the size of the message.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions