mirror of
https://github.com/Sheldan/Sissi.git
synced 2026-01-26 19:21:43 +00:00
[SIS-xxx] adapting dashboard to show better command information
This commit is contained in:
@@ -26,6 +26,9 @@ public class ReactionReportReactionListener implements ReportMessageCreatedListe
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public DefaultListenerResult execute(ReportMessageCreatedModel model) {
|
public DefaultListenerResult execute(ReportMessageCreatedModel model) {
|
||||||
|
if(model.getReportMessage() == null) {
|
||||||
|
return DefaultListenerResult.IGNORED;
|
||||||
|
}
|
||||||
Long reactionAmount = configService.getLongValueOrConfigDefault(REACTION_REPORT_REACTION_AMOUNT_CONFIG_KEY, model.getServerId());
|
Long reactionAmount = configService.getLongValueOrConfigDefault(REACTION_REPORT_REACTION_AMOUNT_CONFIG_KEY, model.getServerId());
|
||||||
for (int i = 0; i < reactionAmount; i++) {
|
for (int i = 0; i < reactionAmount; i++) {
|
||||||
String emoteKey = buildReactionEmoteName(i + 1);
|
String emoteKey = buildReactionEmoteName(i + 1);
|
||||||
|
|||||||
@@ -159,7 +159,7 @@
|
|||||||
{
|
{
|
||||||
"expr": "increase(command_processed_total[1m])",
|
"expr": "increase(command_processed_total[1m])",
|
||||||
"interval": "",
|
"interval": "",
|
||||||
"legendFormat": "{{status}}",
|
"legendFormat": "{{type}}-{{status}}",
|
||||||
"refId": "A"
|
"refId": "A"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user