Skip to content

Instantly share code, notes, and snippets.

View dellybot's full-sized avatar
🤖
I'm a robot!

dellybot

🤖
I'm a robot!
View GitHub Profile
{
"error": false,
"status": 200,
"user": {
"id": "208105877838888960",
"name": "Cairo",
"discrim": "1123",
"fullUsername": "Cairo#1123",
"avatar": {
"hash": "15e61c1a5e5c043793cd93013c9b684e",
{
"error": false,
"status": 200,
"template": {
"id": "aUe6qZZgnhGh",
"name": "Discord Extreme List",
"region": "sydney",
"locale": "en-US",
"afkTimeout": 60,
{
"error": false,
"status": 200,
"server": {
"id": "568567800910839811",
"name": "Discord Extreme List",
"shortDesc": "the delly server",
"longDesc": "such server",
"tags": [
"Gaming",
{
"error": false,
"status": 200,
"guildCount": 0
"shardCount": 0 // Won't always be returned
}
{
"guildCount": 0
"shardCount": 0 // Optional
}
{
"error": false,
"status": 200,
"bot": {
"id": "568254611354419211",
"name": "Delly",
"prefix": "del,",
"tags": [
"Fun",
"Social",
{
"error": false,
"status": 200,
"redis_ok": true,
"mongo_ok": true
}
{
"status": 200,
"error": false,
"servers": {
"total": 71
},
"bots": {
"total": 417,
"approved": 344,
"premium": 2
import discord, aiohttp, json
from discord.ext import tasks, commands
class DEL(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.del_update_stats.start()
def cog_unload(self):
self.del_update_stats.cancel()
const fetch = require("node-fetch");
const botID = client.user.id; // You will probably need to change this
const URL = `https://api.discordextremelist.xyz/v2/bot/${botID}/stats`;
const reqHeaders = {
"Content-Type": "application/json",
"Authorization": "TOKEN" // Put your DELAPI token here
}