mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-04-14 19:56:30 +00:00
[AB-103] adding templates for custom command configuration commands
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"embeds": [
|
||||||
|
{
|
||||||
|
<#include "abstracto_color">,
|
||||||
|
"description": "<@safe_include "createCustomCommand_response_description"/>"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"embeds": [
|
||||||
|
{
|
||||||
|
<#include "abstracto_color">,
|
||||||
|
"description": "<@safe_include "deleteCustomCommand_response_description"/>"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"additionalMessage": "<@safe_include "getCustomCommand_response_text"/>"
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
<#assign name=command.name/>
|
||||||
|
<#assign content=command.content/>
|
||||||
|
<#assign creator=command.creator.memberMention/>
|
||||||
|
<#include "listCustomCommands_entry_text">
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"embeds": [
|
||||||
|
{
|
||||||
|
<#include "abstracto_color">,
|
||||||
|
"description": "<@safe_include "listCustomCommands_no_commands_response_text"/>"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"embeds": [
|
||||||
|
{
|
||||||
|
"description": "<#list row as command><#assign command=command><@safe_include "listCustomCommands_entry"/>\n</#list>"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"buttons": [
|
||||||
|
<#include "paginator_buttons">
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
<#assign exitOnly=innerModel.customCommands?size lt 5/>
|
||||||
|
"embedConfigs": [
|
||||||
|
<#assign chunks=innerModel.customCommands?chunk(4)>
|
||||||
|
<#list chunks as row><#assign counter=row?index><#assign row=row><#include "listCustomCommands_response_entry"><#sep>,</#list>
|
||||||
|
],
|
||||||
|
"timeoutSeconds": 120,
|
||||||
|
"restrictUser": true
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<#include "custom_command_exists_exception_text">
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<#include "custom_command_not_found_exception_text">
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Custom command created.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Creates a custom command
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
Creates a custom command if it does not already exist for this server.
|
||||||
|
Input is a name and the content which should be displayed.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The name of the command to create
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The response for the command
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Custom command deleted.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Deletes a custom command
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Deletes a custom command if exists for this server.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The name of the command to delete
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
${additionalText}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Shows a specific custom command response
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
This command searches through the current custom commands and shows the custom command that matches the given name.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
The name of the custom command to show
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Shows all custom commands
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Shows all custom commands of the server with their response
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Command: `${name}` created by ${creator} with response `${content}`.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
No custom commands found.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Custom command already exists.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Custom command not found.
|
||||||
Reference in New Issue
Block a user