1.2.0 • Published 3 years ago

@zerotwobot/del.js v1.2.0

Weekly downloads
-
License
OSL-3.0
Repository
github
Last release
3 years ago

DiscordExtremeList's API Wrapper

Getting Started

Importing and "initializing" the package

const DEL = require('@zerotwobot/del.js') // importing del
const del = new DEL("auth token", "client id") // initializing it
Arguments
ParameterTypeOptionalDescription
keyStringfalseThe API Token found on your bot's page.
idSnowflakefalseYour bot's client ID.

example

const Discord = require("discord.js")
const client = new Discord.Client()
const prefix = "del.";
const DEL = require("@zerotwobot/del.js")
const del = new DEL("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
});

client.login("token")