forked from Galactic/galactic-bot
sth
This commit is contained in:
parent
e22dbd15b0
commit
e7258233cd
@ -57,7 +57,7 @@ class LocaleLoader {
|
||||
let text = '';
|
||||
for(const line of lines) {
|
||||
if(line.startsWith('//')) continue;
|
||||
const matches = line.match(/\[([_A-Z0-9]{1,})\]/giu);
|
||||
const matches = line.match(/\[([_A-Z0-9]{1,})\]/iu);
|
||||
if(matches) {
|
||||
if (matched) {
|
||||
parsed[matched] = text;
|
||||
|
@ -26,7 +26,7 @@ The followin infraction types will now be logged:
|
||||
|
||||
//CHATLOGS SETTING
|
||||
|
||||
[S_CHATLOGS_DESCRIPTION]
|
||||
[S_MESSAGELOGS_DESCRIPTION]
|
||||
Configure message logging for your server.
|
||||
|
||||
[S_CHATLOGS_ROLES_LIST]
|
||||
@ -65,6 +65,7 @@ Successfully reset the chatlogs setting.
|
||||
|
||||
[S_MUTE_DESCRIPTION]
|
||||
Assign or create a muted role and choose mute functionality for your guild.
|
||||
|
||||
__Mute Types__
|
||||
**`0`:** Mutes only add/remove the muted role. *(default)*
|
||||
**`1`:** Mutes remove all roles except for the muted role.
|
||||
|
@ -46,10 +46,11 @@ class Resolver {
|
||||
* @param {Array<String>} args The incoming arguments with the first element being the method ex. ['add','ban','kick']
|
||||
* @param {Array<String>} valid An array of items to compare to, if an argument doesn't exist in this array it'll be skipped over
|
||||
* @param {Array<String>} [existing=[]] Existing values in the array, valid elements will be appended to this
|
||||
* @param {Function} resolver One of the resolver functions used to resolve the passed values into objects (should always be one of the mass resolver due to the nature of this method, might break otherwise)
|
||||
* @returns {Object}
|
||||
* @memberof Resolver
|
||||
*/
|
||||
resolveMethod(args, valid, existing = []) {
|
||||
resolveMethod(args, valid, existing = [], resolver) {
|
||||
|
||||
const methods = {
|
||||
list: ['view', 'list', '?'],
|
||||
@ -69,6 +70,7 @@ class Resolver {
|
||||
}
|
||||
|
||||
if (methods.list.includes(method)) {
|
||||
if(resolver)
|
||||
return { method: 'list' };
|
||||
} else if (methods.add.includes(method)) {
|
||||
const added = [];
|
||||
|
@ -18,7 +18,6 @@ class Modlogs extends Setting {
|
||||
],
|
||||
guarded: true,
|
||||
resolve: 'GUILD',
|
||||
index: 'modlogs',
|
||||
examples: [
|
||||
'modlogs <add|remove|list> <infraction-type..>',
|
||||
'modlogs #moderation-log',
|
||||
|
Loading…
Reference in New Issue
Block a user