Skip to content

dbots-online/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

dbotsonline

NPM Package

Join our discord
Support: https://dbots.online/dc
NPM: npmjs.com/package/dbots.online

NPM version NPM downloads

npm installnfo

Installation

If you have trouble with the installation, please feel free to visit our discord address.

  • npm i dbots.online

Define Module & Client

const Discord = require("discord.js");
const client = new Discord.Client();
const dbots = require("dbots.online");
const dbl = new dbots("TOKEN-HERE", client);

client.login("BotToken");

Server Count & Shard Count Posting

client.on("ready", async () => {
  dbl.serverCount();
  /* 
  -> Server count posted. 
  or 
  -> Server count & shard count posted.
  */

});

Vote Checking

let hasVote = await dbl.hasVoted("671390595184459782"); // -> User ID
  if(hasVote === true) {
      console.log("Voted")
    } else {
      console.log("Vote please.")
  }
// -> Vote please.

Search on dbots.online

let botFind = await dbl.search("842752825888342056");
console.log(botFind.username) // -> Allegro

Python Package

Join our discord
Support: https://dbots.online/dc
Package: pypi.org/project/dbots.py/

PIP version PIP downloads

Installation

If you have trouble with the installation, please feel free to visit our discord address.

  • pip install bhbotlist

Import packages and define client

from dbots.py import dbots
from discord.ext import commands

client = commands.Bot(command_prefix="!") 
dbl = dbots(client,"token of dbots")

Post server count

@client.event
async def on_ready():
  await dbl.serverCountPost()
  print("Posted")

client.run("token") 

Questions?

Come talk to us here:

Dbots.online

About

Official api of Dbots.online

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published