Split raw config components into multiple files
This commit is contained in:
parent
931a8cdf19
commit
79f84ff4dd
|
@ -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)
|
|
@ -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)
|
|
@ -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)
|
Loading…
Reference in New Issue
Block a user