20 lines
591 B
Kotlin
20 lines
591 B
Kotlin
package nl.voidcorp.discord.commands.general
|
|
|
|
import nl.voidcorp.discord.command.Command
|
|
import nl.voidcorp.discord.command.CommandMessage
|
|
import nl.voidcorp.discord.command.CommandResult
|
|
import org.springframework.stereotype.Service
|
|
|
|
@Service
|
|
class XYProblemCommand : Command(
|
|
"xyproblem",
|
|
"Asking about your attempted solution rather than your actual problem",
|
|
"xy",
|
|
allowAnywhere = true,
|
|
aliases = listOf("xy")
|
|
) {
|
|
override fun handle(event: CommandMessage): CommandResult {
|
|
event.reply("http://xyproblem.info")
|
|
return CommandResult.SUCCESS
|
|
}
|
|
} |