diff options
author | Roman Gräf <romangraef@loves.dicksinhisan.us> | 2020-08-21 19:11:42 +0200 |
---|---|---|
committer | Roman Gräf <romangraef@loves.dicksinhisan.us> | 2020-08-21 19:11:42 +0200 |
commit | 69f28613499e3ce418326d05c66e5c856acb8269 (patch) | |
tree | 01376f981dce3b44918389860b6eabed92bf9ba1 /src/main/kotlin/com/romangraef/jdacommander/commands/HelpCommand.kt | |
download | discord-jda-jcommander-master.tar.gz discord-jda-jcommander-master.tar.bz2 discord-jda-jcommander-master.zip |
Diffstat (limited to 'src/main/kotlin/com/romangraef/jdacommander/commands/HelpCommand.kt')
-rw-r--r-- | src/main/kotlin/com/romangraef/jdacommander/commands/HelpCommand.kt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/kotlin/com/romangraef/jdacommander/commands/HelpCommand.kt b/src/main/kotlin/com/romangraef/jdacommander/commands/HelpCommand.kt new file mode 100644 index 0000000..63a69fc --- /dev/null +++ b/src/main/kotlin/com/romangraef/jdacommander/commands/HelpCommand.kt @@ -0,0 +1,23 @@ +package com.romangraef.jdacommander.commands + +import com.beust.jcommander.Parameter +import com.romangraef.jdacommander.Command +import com.romangraef.jdacommander.ICommand + +@Command("help") +class HelpCommand : ICommand() { + + @Parameter(description = "Help Topic") + var helpTopic: String? = null + + override fun run() = responseChannel.queue { + it.sendMessage( + if (helpTopic == null) { + "Helping...." + } else { + "Helping on topic $helpTopic" + } + ).queue() + } + +} |