From 1e76627d5d9f1728f904fa52586937b749a413b3 Mon Sep 17 00:00:00 2001 From: Sheldan <5037282+Sheldan@users.noreply.github.com> Date: Fri, 31 Jan 2025 19:04:19 +0100 Subject: [PATCH] [AB-xxx] adding paginators to emote stats --- .../deletedEmoteStats_animated_emote_entry.ftl | 1 + .../deletedEmoteStats_animated_response_embed.ftl | 11 ----------- .../deletedEmoteStats_animated_response_entry.ftl | 13 +++++++++++++ ...eletedEmoteStats_animated_response_paginator.ftl | 9 +++++++++ .../deletedEmoteStats_static_emote_entry.ftl | 1 + .../deletedEmoteStats_static_response_embed.ftl | 11 ----------- .../deletedEmoteStats_static_response_entry.ftl | 13 +++++++++++++ .../deletedEmoteStats_static_response_paginator.ftl | 9 +++++++++ .../emoteStats/emoteStats_animated_emote_entry.ftl | 1 + .../emoteStats_animated_response_embed.ftl | 11 ----------- .../emoteStats_animated_response_entry.ftl | 13 +++++++++++++ .../emoteStats_animated_response_paginator.ftl | 9 +++++++++ .../emoteStats/emoteStats_static_emote_entry.ftl | 1 + .../emoteStats/emoteStats_static_response_embed.ftl | 11 ----------- .../emoteStats/emoteStats_static_response_entry.ftl | 13 +++++++++++++ .../emoteStats_static_response_paginator.ftl | 9 +++++++++ .../externalEmoteStats_animated_emote_entry.ftl | 1 + .../externalEmoteStats_animated_response_embed.ftl | 11 ----------- .../externalEmoteStats_animated_response_entry.ftl | 13 +++++++++++++ ...ternalEmoteStats_animated_response_paginator.ftl | 9 +++++++++ .../externalEmoteStats_static_emote_entry.ftl | 1 + .../externalEmoteStats_static_response_embed.ftl | 11 ----------- .../externalEmoteStats_static_response_entry.ftl | 13 +++++++++++++ ...externalEmoteStats_static_response_paginator.ftl | 9 +++++++++ 24 files changed, 138 insertions(+), 66 deletions(-) create mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_animated_emote_entry.ftl delete mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_animated_response_embed.ftl create mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_animated_response_entry.ftl create mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_animated_response_paginator.ftl create mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_static_emote_entry.ftl delete mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_static_response_embed.ftl create mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_static_response_entry.ftl create mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_static_response_paginator.ftl create mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_animated_emote_entry.ftl delete mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_animated_response_embed.ftl create mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_animated_response_entry.ftl create mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_animated_response_paginator.ftl create mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_static_emote_entry.ftl delete mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_static_response_embed.ftl create mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_static_response_entry.ftl create mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_static_response_paginator.ftl create mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_animated_emote_entry.ftl delete mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_animated_response_embed.ftl create mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_animated_response_entry.ftl create mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_animated_response_paginator.ftl create mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_static_emote_entry.ftl delete mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_static_response_embed.ftl create mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_static_response_entry.ftl create mode 100644 abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_static_response_paginator.ftl diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_animated_emote_entry.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_animated_emote_entry.ftl new file mode 100644 index 00000000..c6166f83 --- /dev/null +++ b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_animated_emote_entry.ftl @@ -0,0 +1 @@ +`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c} \ No newline at end of file diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_animated_response_embed.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_animated_response_embed.ftl deleted file mode 100644 index 8db3bd75..00000000 --- a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_animated_response_embed.ftl +++ /dev/null @@ -1,11 +0,0 @@ -{ - "embeds": [ - { - "title": { - "title": "<@safe_include "deletedEmoteStats_animated_emotes_title"/>" - }, - <#include "statistic_color">, - "description": "<#list animatedEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c}<#sep>, " - } - ] -} \ No newline at end of file diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_animated_response_entry.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_animated_response_entry.ftl new file mode 100644 index 00000000..90825401 --- /dev/null +++ b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_animated_response_entry.ftl @@ -0,0 +1,13 @@ +{ + "embeds": [ + { + "title": { + "title": "<@safe_include "deletedEmoteStats_animated_emotes_title"/>" + }, + "description": "<#list row as emote><#assign emote=emote><@safe_include "deletedEmoteStats_animated_emote_entry"/><#sep>, " + } + ], + "buttons": [ + <#include "paginator_buttons"> + ] +} \ No newline at end of file diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_animated_response_paginator.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_animated_response_paginator.ftl new file mode 100644 index 00000000..2838a268 --- /dev/null +++ b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_animated_response_paginator.ftl @@ -0,0 +1,9 @@ +{ + <#assign exitOnly=innerModel.animatedEmotes?size lt 1/> + "embedConfigs": [ + <#assign chunks=innerModel.animatedEmotes?chunk(2)> + <#list chunks as row><#assign counter=row?index><#assign row=row><#include "deletedEmoteStats_animated_response_entry"><#sep>, + ], + "timeoutSeconds": 120, + "restrictUser": true +} diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_static_emote_entry.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_static_emote_entry.ftl new file mode 100644 index 00000000..c6166f83 --- /dev/null +++ b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_static_emote_entry.ftl @@ -0,0 +1 @@ +`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c} \ No newline at end of file diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_static_response_embed.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_static_response_embed.ftl deleted file mode 100644 index bab08396..00000000 --- a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_static_response_embed.ftl +++ /dev/null @@ -1,11 +0,0 @@ -{ - "embeds": [ - { - "title": { - "title": "<@safe_include "deletedEmoteStats_static_emotes_title"/>" - }, - <#include "statistic_color">, - "description": "<#list staticEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c}<#sep>, " - } - ] -} \ No newline at end of file diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_static_response_entry.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_static_response_entry.ftl new file mode 100644 index 00000000..de6a271b --- /dev/null +++ b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_static_response_entry.ftl @@ -0,0 +1,13 @@ +{ + "embeds": [ + { + "title": { + "title": "<@safe_include "deletedEmoteStats_static_emotes_title"/>" + }, + "description": "<#list row as emote><#assign emote=emote><@safe_include "deletedEmoteStats_static_emote_entry"/><#sep>, " + } + ], + "buttons": [ + <#include "paginator_buttons"> + ] +} \ No newline at end of file diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_static_response_paginator.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_static_response_paginator.ftl new file mode 100644 index 00000000..4ecbc076 --- /dev/null +++ b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/deletedEmoteStats/deletedEmoteStats_static_response_paginator.ftl @@ -0,0 +1,9 @@ +{ + <#assign exitOnly=innerModel.staticEmotes?size lt 21/> + "embedConfigs": [ + <#assign chunks=innerModel.staticEmotes?chunk(20)> + <#list chunks as row><#assign counter=row?index><#assign row=row><#include "deletedEmoteStats_static_response_entry"><#sep>, + ], + "timeoutSeconds": 120, + "restrictUser": true +} diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_animated_emote_entry.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_animated_emote_entry.ftl new file mode 100644 index 00000000..06abe6a7 --- /dev/null +++ b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_animated_emote_entry.ftl @@ -0,0 +1 @@ +${emote.emote.asMention}x${emote.result.amount?c} \ No newline at end of file diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_animated_response_embed.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_animated_response_embed.ftl deleted file mode 100644 index 93ec50bc..00000000 --- a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_animated_response_embed.ftl +++ /dev/null @@ -1,11 +0,0 @@ -{ - "embeds": [ - { - "title": { - "title": "<@safe_include "emoteStats_animated_emotes_title"/>" - }, - <#include "statistic_color">, - "description": "<#list animatedEmotes as emote><#if emote.emote?has_content>${emote.emote.asMention}x${emote.result.amount?c}<#sep>, " - } - ] -} \ No newline at end of file diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_animated_response_entry.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_animated_response_entry.ftl new file mode 100644 index 00000000..8463c472 --- /dev/null +++ b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_animated_response_entry.ftl @@ -0,0 +1,13 @@ +{ + "embeds": [ + { + "title": { + "title": "<@safe_include "emoteStats_animated_emotes_title"/>" + }, + "description": "<#list row as emote><#assign emote=emote><@safe_include "emoteStats_animated_emote_entry"/><#sep>, " + } + ], + "buttons": [ + <#include "paginator_buttons"> + ] +} \ No newline at end of file diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_animated_response_paginator.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_animated_response_paginator.ftl new file mode 100644 index 00000000..41592750 --- /dev/null +++ b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_animated_response_paginator.ftl @@ -0,0 +1,9 @@ +{ + <#assign exitOnly=innerModel.animatedEmotes?size lt 41/> + "embedConfigs": [ + <#assign chunks=innerModel.animatedEmotes?chunk(40)> + <#list chunks as row><#assign counter=row?index><#assign row=row><#include "emoteStats_animated_response_entry"><#sep>, + ], + "timeoutSeconds": 120, + "restrictUser": true +} diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_static_emote_entry.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_static_emote_entry.ftl new file mode 100644 index 00000000..06abe6a7 --- /dev/null +++ b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_static_emote_entry.ftl @@ -0,0 +1 @@ +${emote.emote.asMention}x${emote.result.amount?c} \ No newline at end of file diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_static_response_embed.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_static_response_embed.ftl deleted file mode 100644 index e6cf110b..00000000 --- a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_static_response_embed.ftl +++ /dev/null @@ -1,11 +0,0 @@ -{ - "embeds": [ - { - "title": { - "title": "<@safe_include "emoteStats_static_emotes_title"/>" - }, - <#include "statistic_color">, - "description": "<#list staticEmotes as emote><#if emote.emote?has_content>${emote.emote.asMention}x${emote.result.amount?c}<#sep>, " - } - ] -} \ No newline at end of file diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_static_response_entry.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_static_response_entry.ftl new file mode 100644 index 00000000..68741a63 --- /dev/null +++ b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_static_response_entry.ftl @@ -0,0 +1,13 @@ +{ + "embeds": [ + { + "title": { + "title": "<@safe_include "emoteStats_static_emotes_title"/>" + }, + "description": "<#list row as emote><#assign emote=emote><@safe_include "emoteStats_static_emote_entry"/><#sep>, " + } + ], + "buttons": [ + <#include "paginator_buttons"> + ] +} \ No newline at end of file diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_static_response_paginator.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_static_response_paginator.ftl new file mode 100644 index 00000000..609072c4 --- /dev/null +++ b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/emoteStats/emoteStats_static_response_paginator.ftl @@ -0,0 +1,9 @@ +{ + <#assign exitOnly=innerModel.staticEmotes?size lt 41/> + "embedConfigs": [ + <#assign chunks=innerModel.staticEmotes?chunk(40)> + <#list chunks as row><#assign counter=row?index><#assign row=row><#include "emoteStats_static_response_entry"><#sep>, + ], + "timeoutSeconds": 120, + "restrictUser": true +} diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_animated_emote_entry.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_animated_emote_entry.ftl new file mode 100644 index 00000000..c6166f83 --- /dev/null +++ b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_animated_emote_entry.ftl @@ -0,0 +1 @@ +`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c} \ No newline at end of file diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_animated_response_embed.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_animated_response_embed.ftl deleted file mode 100644 index 97e999b7..00000000 --- a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_animated_response_embed.ftl +++ /dev/null @@ -1,11 +0,0 @@ -{ - "embeds": [ - { - "title": { - "title": "<@safe_include "externalEmoteStats_animated_emotes_title"/>" - }, - <#include "statistic_color">, - "description": "<#list animatedEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c}<#sep>, " - } - ] -} \ No newline at end of file diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_animated_response_entry.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_animated_response_entry.ftl new file mode 100644 index 00000000..0084d5d1 --- /dev/null +++ b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_animated_response_entry.ftl @@ -0,0 +1,13 @@ +{ + "embeds": [ + { + "title": { + "title": "<@safe_include "externalEmoteStats_animated_emotes_title"/>" + }, + "description": "<#list row as emote><#assign emote=emote><@safe_include "externalEmoteStats_animated_emote_entry"/><#sep>, " + } + ], + "buttons": [ + <#include "paginator_buttons"> + ] +} \ No newline at end of file diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_animated_response_paginator.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_animated_response_paginator.ftl new file mode 100644 index 00000000..8e145670 --- /dev/null +++ b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_animated_response_paginator.ftl @@ -0,0 +1,9 @@ +{ + <#assign exitOnly=innerModel.animatedEmotes?size lt 21/> + "embedConfigs": [ + <#assign chunks=innerModel.animatedEmotes?chunk(20)> + <#list chunks as row><#assign counter=row?index><#assign row=row><#include "externalEmoteStats_animated_response_entry"><#sep>, + ], + "timeoutSeconds": 120, + "restrictUser": true +} diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_static_emote_entry.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_static_emote_entry.ftl new file mode 100644 index 00000000..c6166f83 --- /dev/null +++ b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_static_emote_entry.ftl @@ -0,0 +1 @@ +`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c} \ No newline at end of file diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_static_response_embed.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_static_response_embed.ftl deleted file mode 100644 index e0fdcc84..00000000 --- a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_static_response_embed.ftl +++ /dev/null @@ -1,11 +0,0 @@ -{ - "embeds": [ - { - "title": { - "title": "<@safe_include "externalEmoteStats_static_emotes_title"/>" - }, - <#include "statistic_color">, - "description": "<#list staticEmotes as emote>`${emote.trackedEmote.emoteName}:${emote.trackedEmote.trackedEmoteId.id?c}`x${emote.result.amount?c}<#sep>, " - } - ] -} \ No newline at end of file diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_static_response_entry.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_static_response_entry.ftl new file mode 100644 index 00000000..70b06e1b --- /dev/null +++ b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_static_response_entry.ftl @@ -0,0 +1,13 @@ +{ + "embeds": [ + { + "title": { + "title": "<@safe_include "externalEmoteStats_static_emotes_title"/>" + }, + "description": "<#list row as emote><#assign emote=emote><@safe_include "externalEmoteStats_static_emote_entry"/><#sep>, " + } + ], + "buttons": [ + <#include "paginator_buttons"> + ] +} \ No newline at end of file diff --git a/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_static_response_paginator.ftl b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_static_response_paginator.ftl new file mode 100644 index 00000000..55eeb239 --- /dev/null +++ b/abstracto-modules/statistic/src/main/resources/default/emotes/commands/externalEmoteStats/externalEmoteStats_static_response_paginator.ftl @@ -0,0 +1,9 @@ +{ + <#assign exitOnly=innerModel.staticEmotes?size lt 21/> + "embedConfigs": [ + <#assign chunks=innerModel.staticEmotes?chunk(20)> + <#list chunks as row><#assign counter=row?index><#assign row=row><#include "externalEmoteStats_static_response_entry"><#sep>, + ], + "timeoutSeconds": 120, + "restrictUser": true +}