A kinda reasonable discord bot with unique features, written in kotlin
Note: this project heavily uses the Javacord library.
Progress | Code |
---|---|
fun main() {
bot("Your bot token") {
// Now you'll have a reference for the Discord Api gateway
println(createBotInvite().toString())
// Add a listener which answers with "Pong!" if someone writes "!ping"
addMessageCreateListener { event ->
if (event.getMessageContent().equalsIgnoreCase("!ping")) {
event.getChannel().sendMessage("Pong!")
}
}
}
}