Installation and Setup - shysolocup/willclient GitHub Wiki
Installation
npm i willclient
npm i paigeroid/willclient
Setting Up
Discord.JS Client
WC is built off of Discord.JS so for it to work you need Discord.JS.
const { Client } = require('discord.js');
const client = new Client({
// your stuff here
});
WC Client
once you have your Discord.JS client you can add in WC
const { WillClient } = require('willclient');
const wc = new WillClient({
client: client,
prefix: "!",
token: token
});
once you have your client set up and working you can run it using either of these:
client.login(token); // normal discord.js
wc.run(token); // optional alternative