Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. package com.hardonsbot.devbot
  2.  
  3. import com.hardonsbot.devbot.listners.DiscordListners
  4. import net.dv8tion.jda.core.AccountType
  5. import net.dv8tion.jda.core.JDABuilder
  6. import javax.security.auth.login.AccountException
  7.  
  8. class BotBios(val token: String) {
  9. fun start() {
  10. println("Iniciando o meu incrível bot!")
  11.  
  12. val discordListener = DiscordListners(this)
  13.  
  14. val builder = JDABuilder(AccountType.BOT)
  15. .setToken(token)
  16. .addEventListener(discordListener)
  17.  
  18. val jda = builder.buildBlocking()
  19.  
  20.  
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement