Indent with 2 spaces instead of 4
parent
5c7efcd10e
commit
39083d8248
@ -0,0 +1,8 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
end_of_line = lf
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
@ -1,26 +1,26 @@
|
||||
package moe.kageru.kagebot.features
|
||||
|
||||
class Features(
|
||||
val welcome: WelcomeFeature? = null,
|
||||
val timeout: TimeoutFeature? = null,
|
||||
vc: TempVCFeature = TempVCFeature(null)
|
||||
val welcome: WelcomeFeature? = null,
|
||||
val timeout: TimeoutFeature? = null,
|
||||
vc: TempVCFeature = TempVCFeature(null)
|
||||
) {
|
||||
private val debug = DebugFeature()
|
||||
private val help = HelpFeature()
|
||||
private val getConfig = GetConfigFeature()
|
||||
private val setConfig = SetConfigFeature()
|
||||
private val debug = DebugFeature()
|
||||
private val help = HelpFeature()
|
||||
private val getConfig = GetConfigFeature()
|
||||
private val setConfig = SetConfigFeature()
|
||||
|
||||
private val all = listOf(welcome, debug, help, getConfig, setConfig, timeout, vc)
|
||||
private val featureMap = mapOf(
|
||||
"help" to help,
|
||||
"debug" to debug,
|
||||
"welcome" to welcome,
|
||||
"getConfig" to getConfig,
|
||||
"setConfig" to setConfig,
|
||||
"timeout" to timeout,
|
||||
"vc" to vc
|
||||
)
|
||||
private val all = listOf(welcome, debug, help, getConfig, setConfig, timeout, vc)
|
||||
private val featureMap = mapOf(
|
||||
"help" to help,
|
||||
"debug" to debug,
|
||||
"welcome" to welcome,
|
||||
"getConfig" to getConfig,
|
||||
"setConfig" to setConfig,
|
||||
"timeout" to timeout,
|
||||
"vc" to vc
|
||||
)
|
||||
|
||||
fun findByString(feature: String) = featureMap[feature]
|
||||
fun eventFeatures() = all.filterIsInstance<EventFeature>()
|
||||
fun findByString(feature: String) = featureMap[feature]
|
||||
fun eventFeatures() = all.filterIsInstance<EventFeature>()
|
||||
}
|
||||
|