2b2t

1.0.2 • Public • Published

2b2t


A Lightweight & easy to use 2b2t package for discord.js.

Additional Dependencies Required:

discord.js discord.js npm install discord.js

node-fetch node-fetch npm i node-fetch

How to install:

npm install 2b2t

PrioQ:

const Discord = require('discord.js');
const client = new Discord.Client();
let prioQ = require('2b2t'); // Require 2b2t prioQ
 
client.on('message', async (message) => {
 
if(message.content === "!prioq") {
 
let prio = await prioQ();
 
const embed = new Discord.MessageEmbed()
.setTitle('2b2t Priority Queue:')
.setDescription(`Players in PrioQ: ${prio[1]}\n
Estimated Time in PrioQ: ${prio[2]}`)
 
message.channel.send(embed)
 
  }
})
 
 

Support

https://discord.gg/nPPyxc4

Credits:

Thank you LolRiTTeR for the 2b2t API.

Thank you Discord.js for discord.js.

Thank you Node-Fetch for node-fetch.

Readme

Keywords

Package Sidebar

Install

npm i 2b2t

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

3.7 kB

Total Files

5

Last publish

Collaborators

  • vypr_ysl