discord-kagebot/src/main/kotlin/moe/kageru/kagebot/Command.kt

6 lines
190 B
Kotlin
Raw Normal View History

2019-06-08 11:07:52 +02:00
package moe.kageru.kagebot
class Command(private val input: String, private val output: String) {
fun matches(msg: String) = msg.startsWith(this.input)
fun respond() = this.output
}