mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-01-30 01:53:00 +00:00
[AB-302] removing of templates of removed commands and exceptions
adapting some templates for new functionality
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
<#assign minLevel=model.minLevel>
|
||||
<#include "assignable_role_condition_display_min_level_message">
|
||||
@@ -1,10 +1,14 @@
|
||||
{
|
||||
<#include "assignable_place_color">,
|
||||
"description": "<@safe_include "assignable_roles_config_embed_place_description"/>
|
||||
"description": "<#assign channelMention><#if channelDisplay??>${channelDisplay.channelMention}<#else><@safe_include "assignable_roles_config_embed_no_channel_found"/></#if></#assign><@safe_include "assignable_roles_config_embed_place_description"/>
|
||||
<@safe_include "assignable_roles_config_embed_role_header"/>:
|
||||
<#list roles as role><#assign role=role/><#assign rolePosition=role.position/><#assign emoteMention=role.emote.emoteRepr/><#assign roleMention><#if role.awardedRole?has_content>${role.awardedRole.asMention}<#else><#include "assignable_roles_config_embed_deleted_role"></#if></#assign><#assign roleDescription=role.description/>
|
||||
<@safe_include "assignable_roles_config_embed_emote_description"/>
|
||||
<#list roles as role><#assign role=role/>
|
||||
<#assign emoteMention><#if role.emoteMarkDown??>${role.emoteMarkDown}<#else>No emote</#if></#assign>
|
||||
<#assign roleMention=role.roleDisplay.roleMention/>
|
||||
<#assign roleDescription=role.description/>
|
||||
<#assign conditionText><#list role.conditions as condition><#assign model=condition.templateModel><@safe_include "${condition.templateName}"/><#sep>, <#else><#include "assignable_role_condition_no_conditions"></#list></#assign>
|
||||
<@safe_include "assignable_roles_config_embed_role_description"/>
|
||||
|
||||
</#list>
|
||||
<#else><@safe_include "assignable_role_config_embed_no_roles"/></#list>
|
||||
"
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
<#include "assignable_place_color">,
|
||||
"description": "<@safe_include "assignable_role_places_overview_description"/>:
|
||||
<#list places as place>`<#assign place=place/><#assign placeKey=place.key/><@safe_include "assignable_role_places_overview_place"/>`<#sep>, <#else> <@safe_include "assignable_role_places_overview_no_places"/></#list>
|
||||
<#list places as place>`<#assign place=place/><#assign placeKey=place.placeName/><@safe_include "assignable_role_places_overview_place"/>`<#sep>, <#else> <@safe_include "assignable_role_places_overview_no_places"/></#list>
|
||||
"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
<#assign minLevel=model.minLevel>
|
||||
<#assign roleMention=model.roleDisplay.roleMention>
|
||||
<#include "assignable_role_condition_min_level_message">
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"metaConfig" : {
|
||||
"preventEmptyEmbed": "true",
|
||||
"ephemeral": true
|
||||
},
|
||||
<#assign model=templateModel/>
|
||||
"description": "<@safe_include "${templateName}"/>"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
<#assign roleMention=model.roleDisplay.roleMention>
|
||||
<#assign placeName=model.placeName>
|
||||
<#include "assignable_role_already_defined_exception_message"/>
|
||||
@@ -0,0 +1 @@
|
||||
<#include "assignable_role_condition_already_present_exception_message">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "assignable_role_condition_does_not_exist_exception_message">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "assignable_role_condition_value_not_usable_exception_message">
|
||||
@@ -0,0 +1,2 @@
|
||||
<#assign roleId=model.roleId>
|
||||
<#include "assignable_role_not_found_exception_message">
|
||||
@@ -0,0 +1,2 @@
|
||||
<#assign roleMention=model.roleDisplay.roleMention>
|
||||
<#include "assignable_role_not_usable_exception_message">
|
||||
@@ -1 +1,2 @@
|
||||
<#assign userId=model.aUserInAServer.userReference.id/><#include "assignable_role_place_assigned_user_not_found_exception_text">
|
||||
<#assign userId=model.userId>
|
||||
<#include "assignable_role_place_assigned_user_not_found_exception_message">
|
||||
@@ -1 +1,3 @@
|
||||
<#assign channelId=model.channelId/><#include "assignable_role_place_channel_does_not_exist_exception_text">
|
||||
<#assign channelId=model.channelId>
|
||||
<#assign placeName=model.placeName>
|
||||
<#include "assignable_role_place_channel_does_not_exist_exception_message">
|
||||
@@ -1 +0,0 @@
|
||||
<#assign emoteMention=model.emote.emoteRepr/><#assign placeName=model.placeName/><#include "assignable_role_place_emote_already_defined_exception_text">
|
||||
@@ -1 +0,0 @@
|
||||
<#include "assignable_role_place_emote_not_assigned_exception_text">
|
||||
@@ -1 +1,2 @@
|
||||
<#assign roleName=model.name/><#include "assignable_role_place_exists_exception_text">
|
||||
<#assign placeName=model.name>
|
||||
<#include "assignable_role_place_exists_exception_message">
|
||||
@@ -1 +1 @@
|
||||
<#include "assignable_role_place_illegal_configuration_key_exception_text">
|
||||
<#include "assignable_role_place_illegal_configuration_key_exception_message">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "assignable_role_place_maximum_roles_reached_exception_message">
|
||||
@@ -1 +1 @@
|
||||
<#include "assignable_role_place_not_found_exception_text">
|
||||
<#include "assignable_role_place_not_found_exception_message">
|
||||
@@ -1 +0,0 @@
|
||||
<#include "assignable_role_place_position_exists_exception_text">
|
||||
@@ -1 +0,0 @@
|
||||
<#assign messageId=model.messageId/><#include "assignable_role_place_post_not_found_exception_text">
|
||||
@@ -1 +0,0 @@
|
||||
<#assign roleMention=model.role.roleRepr/><#include "assignable_role_place_role_not_usable_exception_text">
|
||||
@@ -1 +0,0 @@
|
||||
<#assign emoteMention=model.emote.emoteRepr/><#assign placeName=model.placeName/><#include "emote_not_in_assignable_role_place_exception_text">
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"metaConfig" : {
|
||||
"preventEmptyEmbed": "true",
|
||||
"ephemeral": true
|
||||
},
|
||||
<#assign roleText=role.asMention>
|
||||
<#if added>
|
||||
<#assign removedRolesText>${removedRoles?map(role -> role.asMention)?join(", ")}</#assign>
|
||||
"description": "<@safe_include "assignable_role_added_success"/>
|
||||
<#if removedRoles?size gt 0><@safe_include "assignable_role_added_roles_removed"/></#if>"
|
||||
<#else>
|
||||
"description": "<@safe_include "assignable_role_removed_success"/>"
|
||||
</#if>
|
||||
}
|
||||
@@ -1,17 +1,22 @@
|
||||
{
|
||||
<#include "assignable_place_color">,
|
||||
"description": "${place.text?json_string}",
|
||||
"fields": [
|
||||
"description": "${placeDescription?json_string}"
|
||||
<#if roles?size gt 0>
|
||||
,"buttons": [
|
||||
<#list roles as role>
|
||||
{
|
||||
"name": "${role.emote.emoteRepr?json_string}",
|
||||
"value": "${role.description?json_string}",
|
||||
"inline": "${place.inline?string('true', 'false')}"
|
||||
<#if role.forceNewMessage>
|
||||
,"forceNewMessage": "true"
|
||||
"label": "${role.description?json_string}",
|
||||
"id": "${role.componentId}",
|
||||
"buttonStyle": "primary",
|
||||
<#if role.emoteMarkDown??>
|
||||
"emoteMarkdown": "${role.emoteMarkDown?json_string}",
|
||||
</#if>
|
||||
}<#sep>,
|
||||
<#else>
|
||||
"metaConfig": {
|
||||
"persistCallback": false
|
||||
}
|
||||
}
|
||||
<#sep>,
|
||||
</#list>
|
||||
]
|
||||
</#if>
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
Activates an assignable place
|
||||
Activates an assignable role place
|
||||
@@ -1 +1 @@
|
||||
Activates an assignable role place again, meaning reacting to the reactions will assign the configured roles.
|
||||
Activates the buttons for an assignable role place again.
|
||||
@@ -0,0 +1 @@
|
||||
Adds a condition to an assignable role
|
||||
@@ -0,0 +1,3 @@
|
||||
Adds a condition to an assignable role of an assignable place.
|
||||
There is only one condition currently, which is `min_level`.
|
||||
This condition is evaluated when a user clicks the button and if the user does not fulfil the condition, an error message is shown.
|
||||
@@ -0,0 +1 @@
|
||||
The condition to add. Only supported value is `min_level`
|
||||
@@ -0,0 +1 @@
|
||||
The value which should be used for the condition. For `min_level`, this needs to be a number between 1 and 150.
|
||||
@@ -0,0 +1 @@
|
||||
The name of the assignable role place in which the assignable role is
|
||||
@@ -0,0 +1 @@
|
||||
The role to add a condition to
|
||||
@@ -1,2 +1,3 @@
|
||||
Adds an assignable role to the given assignable role place. This assignment requires an emote, a description and a role to be assigned. The mentioned role will be assigned once a member reacts to the emote.
|
||||
Only emotes from a server the bot is in can be used and it is not possible to assign an emote twice. The emote will be added at the _end_ of the assignable role place and if the posts already exists, the emote will be added already.
|
||||
Adds an assignable role to the given assignable role place.
|
||||
The display text is used as text for the button and the optional emote is used in front (Only emotes from a server the bot is in can be used)
|
||||
The mentioned role will be assigned once a member clicks on the button and will be added at the _end_ of the assignable role place (if the post exists already).
|
||||
|
||||
@@ -1 +1 @@
|
||||
The emote to be used for reactions. This emote can be a default emote or an emote in a server the bot is in.
|
||||
The emote to be used for the button. This can be a default emoji or an emote of a server the bot is in.
|
||||
@@ -1 +1 @@
|
||||
The role to assign the member reacting.
|
||||
The role to assign the member clicking.
|
||||
@@ -1,6 +1,3 @@
|
||||
Command to change the configuration of one assignable role place.
|
||||
The possible things to change are:
|
||||
`inline`: Whether or not the assignable role descriptions are shown inline. Inline means they will be as close together as possible, if this is set to false, they will be shown in a colum
|
||||
`autoRemove`: Whether or not the added reactions are immediately remove after the selected role has been assigned.
|
||||
`unique`: Whether or not it is only possible to select one role at a time.
|
||||
`active`: Whether or not the assignable role place is active. An inactive assignable role place, does not assign any roles and removes the reactions automatically.
|
||||
@@ -1 +1 @@
|
||||
The configuration which should be changed, can either be `inline`, `autoRemove`, `active` or `unique`. This key is not case sensitive.
|
||||
The configuration which should be changed, can only be `unique`. This key is not case sensitive.
|
||||
@@ -1 +1 @@
|
||||
Activates an assignable role place again, meaning reacting to the reactions will not assign the configured roles and will automatically remove any added reactions.
|
||||
Deactivates the buttons of an assignable role place again.
|
||||
@@ -1 +1 @@
|
||||
This changes the text which describes the assignable role place and is shown in the the first message of the place.
|
||||
This changes the text which describes the assignable role place and is shown in the message of the place.
|
||||
@@ -1,2 +1 @@
|
||||
Moves the assignable role place to another channel.
|
||||
This change only comes into effect the next time the assignable role place is setup the next time.
|
||||
Moves the assignable role place to another channel and is execute immediately if the assignable role place is already setup.
|
||||
@@ -0,0 +1 @@
|
||||
Removes an assignable role condition
|
||||
@@ -0,0 +1 @@
|
||||
This command is used to remove an assignable role condition. The only available condition is `min_level` currently.
|
||||
@@ -0,0 +1 @@
|
||||
The condition to remove. Only supported value is `min_level`
|
||||
@@ -0,0 +1 @@
|
||||
The name of the assignable role place in which the assignable role is
|
||||
@@ -0,0 +1 @@
|
||||
The role to remove a condition from
|
||||
@@ -1 +1 @@
|
||||
Removes an assignable role from an assignable place. The place is identified by its key and the role is identified by the emote used to react to the post.
|
||||
Removes an assignable role from an assignable place. The place is identified by its key and the role is identified by its ID/mention.
|
||||
@@ -1 +0,0 @@
|
||||
The emote which to identify the assignable role to remove
|
||||
@@ -0,0 +1 @@
|
||||
The role to remove from the assignable role. Can either be only the ID or a role mention.
|
||||
@@ -1 +0,0 @@
|
||||
Sets the position of an emote within an assignable place
|
||||
@@ -1,3 +0,0 @@
|
||||
Sets the position of an assignable role within an assignable place.
|
||||
It is not possible to set it beyond the currently largest position and also not possible to set it to a position already taken by another assignable role.
|
||||
This change will ony be in effect when the assignable role place is setup the next time.
|
||||
@@ -1 +0,0 @@
|
||||
The emote which identifies the assignable role to change the position of
|
||||
@@ -1 +0,0 @@
|
||||
The name of the assignable place to change the position of an assignable role in
|
||||
@@ -1 +0,0 @@
|
||||
The new position of the assignable role
|
||||
@@ -1 +1 @@
|
||||
Creates the messages containing the assignable roles in the description and the emotes as reactions
|
||||
Creates the message containing the assignable roles in the description and the buttons (if any).
|
||||
@@ -1,2 +1 @@
|
||||
Deletes the old assignable role posts (if any) and creates the assignable role posts completely anew in the channel where the assignable post is configured in.
|
||||
This effectively means that old reactions are lost, but the assigned roles still persist.
|
||||
Deletes the old assignable role post (if any) and creates the assignable role post completely anew in the channel where the assignable post is configured in.
|
||||
@@ -1 +0,0 @@
|
||||
#${rolePosition}: ${emoteMention} with ${roleMention}: `${roleDescription}`.
|
||||
@@ -1,2 +0,0 @@
|
||||
Configuration for assignable roles for assignable role place `${place.key}`, shown with text: ${place.text}, which is currently ${place.active?string('active', 'not active')}. The fields are shown ${place.inline?string('inline', 'not inline')}.
|
||||
If a role has been assigned, the added reaction will ${place.autoRemove?string('be removed', 'not be removed')} and it is ${place.uniqueRoles?string('not possible', 'possible')} to have multiple roles at once.
|
||||
@@ -1,2 +0,0 @@
|
||||
Shows all of the possible configurations of the given assignable role place.
|
||||
This includes: the assignable roles (emote, description and awarded role), whether or not the emotes are displayed inline or directly on top of one another, whether or not the assignable role place is active
|
||||
@@ -0,0 +1 @@
|
||||
Minimum level: ${minLevel}
|
||||
@@ -0,0 +1 @@
|
||||
No conditions
|
||||
@@ -0,0 +1 @@
|
||||
No roles.
|
||||
@@ -0,0 +1 @@
|
||||
No channel found
|
||||
@@ -0,0 +1,2 @@
|
||||
Configuration for assignable roles for assignable role place `${placeName}`, shown with text: `${placeText}` to be posted in ${channelMention}.
|
||||
It is ${uniqueRoles?string('not possible', 'possible')} to have multiple roles at once.
|
||||
@@ -0,0 +1 @@
|
||||
${roleMention}: `${roleDescription}`. ${emoteMention} ${conditionText}
|
||||
@@ -0,0 +1,2 @@
|
||||
Shows all of the possible configurations of the given assignable role place.
|
||||
This includes: the assignable roles (emote, description and awarded role), where or not the place is configured as `unique` and which limitations the roles have.
|
||||
@@ -1 +0,0 @@
|
||||
Switches the embed appearance of the roles for a assignable role place to be more spread out
|
||||
@@ -1,2 +0,0 @@
|
||||
This command can be used to show the emotes in the assignable place posts in a column, so the messages are a bit more spread out and structured.
|
||||
This change applies when the assignable place is setup the next time.
|
||||
@@ -1 +0,0 @@
|
||||
The name of the assignable place in which the emotes should be displayed spread out.
|
||||
@@ -1 +0,0 @@
|
||||
Swaps the position of two emotes in an assignable place
|
||||
@@ -1,3 +0,0 @@
|
||||
This command swaps the position of two assignable roles in an assignable place.
|
||||
Both of the assignable roles must be present in the assignable place and are identified by the emote used.
|
||||
The changes only come to effect the next time the assignable role place is setup.
|
||||
@@ -1 +0,0 @@
|
||||
The emote which identifies one assignable role to swap
|
||||
@@ -1 +0,0 @@
|
||||
The name of the assignable place to swap two assignable roles in
|
||||
@@ -1 +0,0 @@
|
||||
The emote which identifies the other assignable role to swap
|
||||
@@ -1 +0,0 @@
|
||||
Tests an assignable role place and displays how it would look
|
||||
@@ -1,2 +0,0 @@
|
||||
This command is used to test how an assignable role place would look like.
|
||||
It will send the assignable role posts in the current channel, but will not place the reactions.
|
||||
@@ -1 +0,0 @@
|
||||
The name of the assignable role place to tst
|
||||
@@ -0,0 +1 @@
|
||||
You need to be at least level ${minLevel} to receive the role ${roleMention}.
|
||||
@@ -0,0 +1 @@
|
||||
The role ${roleMention} is already defined in ${placeName}.
|
||||
@@ -0,0 +1 @@
|
||||
The assignable role condition is already defined for this role. Remove it first.
|
||||
@@ -0,0 +1 @@
|
||||
Assignable role condition does not exist.
|
||||
@@ -0,0 +1 @@
|
||||
The given value is not usable for the assignable role condition.
|
||||
@@ -0,0 +1 @@
|
||||
Role with ID ${roleId?c} not found.
|
||||
@@ -0,0 +1 @@
|
||||
Role ${roleMention} is not usable in the assignable role feature. The bot may not assign it.
|
||||
@@ -0,0 +1 @@
|
||||
Assigned user with ID ${userId} not found.
|
||||
@@ -1 +0,0 @@
|
||||
User ${userId} was not found in the assigned users.
|
||||
@@ -0,0 +1 @@
|
||||
The channel with the ID ${channelId} does not exist for assignable role place with name ${placeName}.
|
||||
@@ -1 +0,0 @@
|
||||
Unable to create assignable place, channel ${channelId?c} does not exist.
|
||||
@@ -1 +0,0 @@
|
||||
Emote ${emoteMention} is already defined for assignable role place ${placeName}.
|
||||
@@ -1 +0,0 @@
|
||||
Place does not have emote assigned.
|
||||
@@ -0,0 +1 @@
|
||||
Assignable role place ${placeName} does not exist.
|
||||
@@ -1 +0,0 @@
|
||||
Assignable roles place ${roleName} already exists.
|
||||
@@ -0,0 +1 @@
|
||||
Illegal configuration key has been passed.
|
||||
@@ -1 +0,0 @@
|
||||
Configuration key not known.
|
||||
@@ -0,0 +1 @@
|
||||
The maximum amount of roles has been reached.
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user