mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-21 05:32:43 +00:00
[AB-281] adding ban and unban command
removing banId command in favor of the normal ban command removing various feature modes for moderation for clearer configuration
This commit is contained in:
@@ -20,11 +20,6 @@
|
||||
<column name="module_id" valueComputed="${moderationModule}"/>
|
||||
<column name="feature_id" valueComputed="${moderationFeature}"/>
|
||||
</insert>
|
||||
<insert tableName="command">
|
||||
<column name="name" value="banId"/>
|
||||
<column name="module_id" valueComputed="${moderationModule}"/>
|
||||
<column name="feature_id" valueComputed="${moderationFeature}"/>
|
||||
</insert>
|
||||
<insert tableName="command">
|
||||
<column name="name" value="kick"/>
|
||||
<column name="module_id" valueComputed="${moderationModule}"/>
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
|
||||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
|
||||
xmlns:pro="http://www.liquibase.org/xml/ns/pro"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog dbchangelog.xsd
|
||||
http://www.liquibase.org/xml/ns/dbchangelog-ext dbchangelog.xsd
|
||||
http://www.liquibase.org/xml/ns/pro dbchangelog.xsd" >
|
||||
<property name="moderationModule" value="(SELECT id FROM module WHERE name = 'moderation')"/>
|
||||
<property name="moderationFeature" value="(SELECT id FROM feature WHERE key = 'moderation')"/>
|
||||
|
||||
<changeSet author="Sheldan" id="moderation_moderation-commands">
|
||||
<insert tableName="command">
|
||||
<column name="name" value="unBan"/>
|
||||
<column name="module_id" valueComputed="${moderationModule}"/>
|
||||
<column name="feature_id" valueComputed="${moderationFeature}"/>
|
||||
</insert>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
||||
@@ -8,4 +8,5 @@
|
||||
http://www.liquibase.org/xml/ns/pro dbchangelog.xsd" >
|
||||
<include file="feature.xml" relativeToChangelogFile="true"/>
|
||||
<include file="default_emote.xml" relativeToChangelogFile="true"/>
|
||||
<include file="command.xml" relativeToChangelogFile="true"/>
|
||||
</databaseChangeLog>
|
||||
@@ -26,20 +26,17 @@ abstracto.postTargets.warnLog.name=warnLog
|
||||
abstracto.postTargets.reactionReports.name=reactionReports
|
||||
abstracto.postTargets.kickLog.name=kickLog
|
||||
abstracto.postTargets.banLog.name=banLog
|
||||
abstracto.postTargets.unBanLog.name=unBanLog
|
||||
abstracto.postTargets.muteLog.name=muteLog
|
||||
abstracto.postTargets.decayLog.name=decayLog
|
||||
|
||||
abstracto.featureModes.banLogging.featureName=moderation
|
||||
abstracto.featureModes.banLogging.mode=banLogging
|
||||
abstracto.featureModes.banLogging.enabled=true
|
||||
abstracto.featureModes.banCommandLogging.featureName=moderation
|
||||
abstracto.featureModes.banCommandLogging.mode=banCommandLogging
|
||||
abstracto.featureModes.banCommandLogging.enabled=true
|
||||
|
||||
abstracto.featureModes.kickLogging.featureName=moderation
|
||||
abstracto.featureModes.kickLogging.mode=kickLogging
|
||||
abstracto.featureModes.kickLogging.enabled=true
|
||||
|
||||
abstracto.featureModes.warnLogging.featureName=warnings
|
||||
abstracto.featureModes.warnLogging.mode=warnLogging
|
||||
abstracto.featureModes.warnLogging.enabled=true
|
||||
abstracto.featureModes.unBanCommandLogging.featureName=moderation
|
||||
abstracto.featureModes.unBanCommandLogging.mode=unBanCommandLogging
|
||||
abstracto.featureModes.unBanCommandLogging.enabled=true
|
||||
|
||||
abstracto.featureModes.warnDecayLogging.featureName=warnings
|
||||
abstracto.featureModes.warnDecayLogging.mode=warnDecayLogging
|
||||
@@ -49,14 +46,6 @@ abstracto.featureModes.automaticWarnDecayLogging.featureName=warnDecay
|
||||
abstracto.featureModes.automaticWarnDecayLogging.mode=automaticWarnDecayLogging
|
||||
abstracto.featureModes.automaticWarnDecayLogging.enabled=true
|
||||
|
||||
abstracto.featureModes.muteLogging.featureName=muting
|
||||
abstracto.featureModes.muteLogging.mode=muteLogging
|
||||
abstracto.featureModes.muteLogging.enabled=true
|
||||
|
||||
abstracto.featureModes.unMuteLogging.featureName=muting
|
||||
abstracto.featureModes.unMuteLogging.mode=unMuteLogging
|
||||
abstracto.featureModes.unMuteLogging.enabled=true
|
||||
|
||||
abstracto.featureModes.manualUnMuteLogging.featureName=muting
|
||||
abstracto.featureModes.manualUnMuteLogging.mode=manualUnMuteLogging
|
||||
abstracto.featureModes.manualUnMuteLogging.enabled=true
|
||||
|
||||
Reference in New Issue
Block a user