Guest User

Untitled

a guest
Jun 24th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. package com.ardentbot.commands.info
  2.  
  3. import com.ardentbot.core.ArdentRegister
  4. import com.ardentbot.core.commands.*
  5. import net.dv8tion.jda.core.events.message.MessageReceivedEvent
  6.  
  7. @ModuleMapping("info")
  8. class Test : Command("test", null, null, null) {
  9. override fun onInvoke(event: MessageReceivedEvent, arguments: List<String>, flags: List<Flag>, register: ArdentRegister) {
  10. register.sender.send("It worked!", this, event.channel, event.author, event)
  11. }
  12.  
  13. @PreconditionMapping
  14. val noNickname = Precondition(condition = { it.event.member?.nickname != null },
  15. onFailure = { listOf("You can't have a nickname when doing this command :)") })
  16. }
Add Comment
Please, Sign In to add comment