This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error": false, | |
"status": 200, | |
"user": { | |
"id": "208105877838888960", | |
"name": "Cairo", | |
"discrim": "1123", | |
"fullUsername": "Cairo#1123", | |
"avatar": { | |
"hash": "15e61c1a5e5c043793cd93013c9b684e", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error": false, | |
"status": 200, | |
"template": { | |
"id": "aUe6qZZgnhGh", | |
"name": "Discord Extreme List", | |
"region": "sydney", | |
"locale": "en-US", | |
"afkTimeout": 60, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error": false, | |
"status": 200, | |
"server": { | |
"id": "568567800910839811", | |
"name": "Discord Extreme List", | |
"shortDesc": "the delly server", | |
"longDesc": "such server", | |
"tags": [ | |
"Gaming", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error": false, | |
"status": 200, | |
"guildCount": 0 | |
"shardCount": 0 // Won't always be returned | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"guildCount": 0 | |
"shardCount": 0 // Optional | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error": false, | |
"status": 200, | |
"bot": { | |
"id": "568254611354419211", | |
"name": "Delly", | |
"prefix": "del,", | |
"tags": [ | |
"Fun", | |
"Social", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error": false, | |
"status": 200, | |
"redis_ok": true, | |
"mongo_ok": true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": 200, | |
"error": false, | |
"servers": { | |
"total": 71 | |
}, | |
"bots": { | |
"total": 417, | |
"approved": 344, | |
"premium": 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |