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
@dellybot
dellybot / api-delpy-example.py
Created February 18, 2025 16:47
api-delpy-example.py
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',
@dellybot
dellybot / api-deljs-example.js
Last active February 18, 2025 16:43
api-deljs-example.js
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
{
"error": false,
"status": 200,
"user": {
"id": "1100295355800748073",
"name": "carolina.slay",
"discrim": "0",
"fullUsername": "@carolina.slay",
"flags": 128,
"avatar": {
{
"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": "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",
{
"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": "Discord Extreme List",
"prefix": "del,",
"library": "Other",
"tags": [
"Fun",
{
"error": false,
"status": 200,
"redis_ok": true,
"mongo_ok": true,
"redis_ping": 0,
"mongo_ping": 10
}
{
"status": 200,
"error": false,
"servers": {
"total": 71
},
"bots": {
"total": 417,
"approved": 344,
"premium": 2