refactored command responses to use a central place for configuration in an extra module

fixed makeAffected role parameter
made command check name case insensitive
added name to parameter for decayAllWarnings
removed simple log from message edited listener
This commit is contained in:
Sheldan
2020-04-30 22:29:49 +02:00
parent d5482fabd4
commit 59dc8c602a
312 changed files with 284 additions and 154 deletions

View File

@@ -1,2 +0,0 @@
Changes the experience scale on this server. This will only affect messages in the future. This scales the experience *after* the calculation has been done.
So if the range is 10-25, a random experience in this range will be determined and *then* multiplied by this scale.

View File

@@ -1,3 +0,0 @@
Shows 10 members of the sever in the form of a leader board.
The information include posted messages/gained experience/current level and rank within the server.
An optional parameter is possible to chose a page. So, `leaderboard 3` would show members from rank 30 to 40.

View File

@@ -12,7 +12,7 @@
"b": 255
},
"description": "
Rank | Name | Experience | Level | Messages
<#include "leaderboard_rank_column"> | <#include "leaderboard_name_column"> | <#include "leaderboard_experience_column"> | <#include "leaderboard_level_column"> | <#include "leaderboard_messages_column">
<#list userExperiences as user>
<@userDisplay user=user />
</#list>

View File

@@ -1 +0,0 @@
Shows your messages, tracked experience, current level and the experience needed to the next level.

View File

@@ -10,27 +10,27 @@
},
"fields": [
{
"name": "XP",
"name": "<#include "rank_xp_field_title">",
"value": "${rankUser.experience.experience}",
"inline": "true"
},
{
"name": "Level",
"name": "<#include "rank_level_field_title">",
"value": "${rankUser.experience.currentLevel.level}",
"inline": "true"
},
{
"name": "Messages",
"name": "<#include "rank_messages_field_title">",
"value": "${rankUser.experience.messageCount}",
"inline": "true"
},
{
"name": "XP to next Level",
"name": "<#include "rank_to_next_level_field_title">",
"value": "${experienceToNextLevel}",
"inline": "true"
},
{
"name": "Rank",
"name": "<#include "rank_rank_field_title">",
"value": "${rankUser.rank}",
"inline": "true"
}

View File

@@ -1,2 +0,0 @@
This causes the given role to be awarded at the given level. This will remove previously levels this role was assigned to, and also recalculate the users of the previous levels.
This will not, however, award the users the new role immediately. This needs to be done by a separate `syncExpRole`.

View File

@@ -1,3 +0,0 @@
This is a process, which iterates over all tracked users and checks if the current experience role aligns with what they should have according to configuration.
If this is not the case, the role is updated. This is necessary after you added a new role to the experience system. This process might take a while to complete
and a progress indicator is shown.

View File

@@ -1,3 +1,3 @@
{
"additionalMessage": "Updating users: ${currentCount}/${totalUserCount}."
"additionalMessage": "<#include "syncExpRoles_updating_users_label">: ${currentCount}/${totalUserCount}."
}

View File

@@ -1,3 +0,0 @@
Removes the role from experience tracking, so users do not gain the role when they reach the configured level.
Executing this means that users currently owning this role, lose it and their role will be recalculated.
This process might take a while depending on the users. A progress indicator is shown