Désactivez la boucle automatique et appelez les méthodes quand vous le souhaitez. Un envoi manuel reste soumis au quota de 10 requêtes/minute par bot.
JavaScript
const botillon = new BotillonClient({
token: process.env.BOTILLON_TOKEN,
autoStart: false,
});
await botillon.postStats({ server_count: client.guilds.cache.size });
await botillon.postHeartbeat();Python
botillon = BotillonClient(token=..., auto_start=False)
botillon.post_stats(server_count=len(bot.guilds))curl
export BOTILLON_TOKEN="blp_..."
curl -sS https://botillon.fr/api/v1/me/runtime/stats \
-H "Authorization: Bearer $BOTILLON_TOKEN" \
-H "Content-Type: application/json" \
-d '{"server_count":1234,"shard_count":2}'Toujours vivant
Sans envoi pendant 15 minutes, le bot passe Hors ligne. Pour un bot actif, laissez la boucle automatique ou envoyez un heartbeat toutes les 5 à 14 minutes.