Skip to content
This repository was archived by the owner on Jan 28, 2019. It is now read-only.

DBW Client

iDerp edited this page Mar 27, 2018 · 2 revisions

How to setup the client:

const Discord = require("discord.js");
const client = new Discord.Client();

var dbwapi = require('discordbotworld-api');
const dbw = new dbwapi('DiscordBotWorld Token', client);

After doing this, you can now make calls to DBW!

You can also optionally automate updating the bot stats by simply passing true to the end:

const dbw = new dbwapi('DiscordBotWorld Token', client, true);

To know more about automating bot stats, check it out here

Clone this wiki locally