π Quick Start
Here you can find information to start using our api
Last updated
Here you can find information to start using our api
Last updated
const fetch = require("node-fetch");
const client = new Client({...});
client.on("ready", () => {
//Your bot's code
fetch('https://braxybots.eu.org/api/v1/bots/stats', {
method: "POST",
body: JSON.stringify({
serverCount: client.guilds.cache.size,
}),
headers: {
"Content-Type": "application/json",
Authorization: "YOUR BOT'S TOKEN FOR THE WEBSITE"
}
})
.then(req=>req.json())
.then(res=>{
console.log(`Success!`)
})
});import discord
import requests
import json
client = discord.Client()
@client.event
async def on_ready():
#Your bot's code
headers = {
"Content-Type": "application/json",
"Authorization": "YOUR BOT'S TOKEN FOR THE WEBSITE"
}
data = {
"serverCount": len(client.guilds)
}
response = requests.post('https://braxybots.eu.org/api/v1/bots/stats', headers=headers, json=data)
if response.ok:
print("Success!")
client.run("YOUR BOT'S DISCORD TOKEN")