18 lines
606 B
Kotlin
18 lines
606 B
Kotlin
package nl.voidcorp.ottobot.commands.`fun`
|
|
|
|
import nl.voidcorp.ottobot.command.Command
|
|
import nl.voidcorp.ottobot.command.CommandGroup
|
|
import nl.voidcorp.ottobot.command.CommandMessage
|
|
import nl.voidcorp.ottobot.command.CommandResult
|
|
import kotlin.random.Random
|
|
|
|
object Nice : Command("nice", group = CommandGroup.FUN, helpMesage = "_nice_", aliases = listOf("69")) {
|
|
override fun handle(event: CommandMessage): CommandResult {
|
|
if (Random.nextInt(100) < 90) {
|
|
event.reply("_nice_")
|
|
} else {
|
|
event.reply("0")
|
|
}
|
|
return CommandResult.SUCCESS
|
|
}
|
|
} |