Ping, Pong
This commit is contained in:
parent
4a0d60eb6e
commit
5ea4a907ca
1 changed files with 5 additions and 3 deletions
|
@ -34,14 +34,16 @@ fun main(args: Array<String>) {
|
|||
}
|
||||
}
|
||||
|
||||
fun demo() = commands("Demo") {
|
||||
slash("Hello", "A 'Hello World' command.") {
|
||||
// Commands
|
||||
fun utility() = commands("Utility") {
|
||||
slash("Ping", "Pong!") {
|
||||
execute {
|
||||
respond("Hello World!")
|
||||
respond("Pong!")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Listeners
|
||||
fun testListeners() = listeners {
|
||||
on<MessageCreateEvent> {
|
||||
require(message.author?.isBot == false)
|
||||
|
|
Loading…
Reference in a new issue