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
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
}