Server Count API
Update your bot's count.
post
https://botlist.scarps.club
/api/auth/stats/:botid
URL

Examples

Javascript

Node Fetch
1
const fetch = require("node-fetch")
2
fetch('https://botlist.scarps.club/api/auth/stats/:botid', {
3
method: "POST",
4
headers: {
5
Authorization: "YOUR_AUTH_TOKEN",
6
"Content-Type": "application/json"
7
},
8
body: JSON.stringify({"server_count": 0}) // Replace this number with the server count
9
}).then(response => response.text())
10
.then(console.log).catch(console.error)
Copied!

Python

1
from discord.ext import commands
2
import discordspy
3
4
payload = "{\"server_count\": 0}" // Replace this number with the server coun
5
headers = {
6
'authorization': 'YOUR_AUTH_TOKEN',
7
'Content-Type': 'application/json'
8
}
9
10
response = requests.request("POST", URL, headers=headers, data = payload)
11
print(response.text.encode('utf8'))
Copied!