botikotlin
An easy-to-use library designed to simplify interaction with the BotiCord API v3
Installation
Add to your build.gradle (this example for build.gradle.kts)
repositories {
maven(url = uri("https://jitpack.io"))
}
dependencies {
implementation("com.github.MagM1go:botikotlin:1.0-beta")
}
Usage
Send bot statistics:
fun main(args: Array<String>) {
val botID: Long = 0000000000000000
val client = BotiCordClient("BOTICORD_TOKEN_HERE")
client.updateBotStats(botID, BotStats(
members = 10000,
guilds = 5000,
shards = 3
))
}
Get server information:
fun main(args: Array<String>) {
val serverID: Long = 0000000000000000
val client = BotiCordClient("BOTICORD_TOKEN_HERE")
println(client.getServer(serverID))
}