This file contains hidden or 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 delpy | |
import logging | |
from discord.ext import commands, tasks | |
from logging.handlers import RotatingFileHandler | |
logger = logging.getLogger('del.py') | |
logger.setLevel(logging.DEBUG) | |
handler = RotatingFileHandler( | |
filename='path/to/prefered/log_dir/del.log', |
This file contains hidden or 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 Discord = require("discord.js"); | |
const client = new Discord.Client(); | |
const DEL = require("del.js"); | |
const del = new DEL.Del("API auth token", client.user.id); | |
client.on("ready", () => { | |
console.log(`Logged in as ${client.user.tag}.`); | |
setInterval(() => { | |
del.post(client.guilds.cache.size, 0) // You will probably need to change this. | |
}, 600000); // 10 minutes in milliseconds |
This file contains hidden or 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": "1100295355800748073", | |
"name": "carolina.slay", | |
"discrim": "0", | |
"fullUsername": "@carolina.slay", | |
"flags": 128, | |
"avatar": { |
This file contains hidden or 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 hidden or 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": "Delly", | |
"shortDesc": "The official Discord server of Discord Extreme List: Discord's unbiased list, giving bots & servers a big chance!", | |
"longDesc": "The official Discord server of Discord Extreme List: Discord's unbiased list, giving bots & servers a big chance!", | |
"tags": [ | |
"Gaming", |
This file contains hidden or 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 hidden or 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 hidden or 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": "Discord Extreme List", | |
"prefix": "del,", | |
"library": "Other", | |
"tags": [ | |
"Fun", |
This file contains hidden or 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, | |
"redis_ping": 0, | |
"mongo_ping": 10 | |
} |
This file contains hidden or 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 |
NewerOlder