Split raw config components into multiple files

This commit is contained in:
kageru 2019-07-11 20:27:12 +02:00
parent 931a8cdf19
commit 79f84ff4dd
Signed by: kageru
GPG Key ID: 8282A2BEA4ADA3D2
3 changed files with 32 additions and 22 deletions

View File

@ -0,0 +1,16 @@
package moe.kageru.kagebot.config
import com.google.gson.annotations.SerializedName
class RawCommand(
val trigger: String?,
val response: String?,
val matchType: String?,
val permissions: RawPermissions?,
@SerializedName("action") val actions: RawMessageActions?,
val embed: Map<String, String>?
)
class RawPermissions(val hasOneOf: List<String>?, val hasNoneOf: List<String>?, val onlyDM: Boolean)
class RawMessageActions(val delete: Boolean, val redirect: RawRedirect?)
class RawRedirect(val target: String?, val anonymous: Boolean)

View File

@ -31,25 +31,3 @@ class RawConfig(
class RawSystemConfig(val serverId: String?, val color: String?)
class RawLocalization(val permissionDenied: String?, val redirectedMessage: String?, val messageDeleted: String?)
class RawCommand(
val trigger: String?,
val response: String?,
val matchType: String?,
val permissions: RawPermissions?,
@SerializedName("action") val actions: RawMessageActions?,
val embed: Map<String, String>?
)
class RawPermissions(val hasOneOf: List<String>?, val hasNoneOf: List<String>?, val onlyDM: Boolean)
class RawMessageActions(val delete: Boolean, val redirect: RawRedirect?)
class RawRedirect(val target: String?, val anonymous: Boolean)
class RawFeatures(val welcome: RawWelcomeFeature?, val debug: RawDebugFeature?, val help: RawHelpFeature?)
class RawWelcomeFeature(
val enable: Boolean,
val content: Map<String, String>?,
val fallbackChannel: String?,
val fallbackMessage: String?,
@SerializedName("command") val commandEnabled: Boolean
)
class RawDebugFeature(val enable: Boolean)
class RawHelpFeature(val enable: Boolean)

View File

@ -0,0 +1,16 @@
package moe.kageru.kagebot.config
import com.google.gson.annotations.SerializedName
class RawFeatures(val welcome: RawWelcomeFeature?, val debug: RawDebugFeature?, val help: RawHelpFeature?)
class RawWelcomeFeature(
val enable: Boolean,
val content: Map<String, String>?,
val fallbackChannel: String?,
val fallbackMessage: String?,
@SerializedName("command") val commandEnabled: Boolean
)
class RawDebugFeature(val enable: Boolean)
class RawHelpFeature(val enable: Boolean)