2b2t 中文文档教程

发布于 4年前 浏览 24 项目主页 更新于 3年前


2b2t


轻量级 discord.js 易于使用的 2b2t 包。

Additional Dependencies Required:

discord.js discord.js npm install discord.js

node-fetch node-fetch npm i 节点-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:

感谢 LolRiTTeR 提供 2b2t API。

感谢 Discord.js discord.js< /a>。

感谢 Node-Fetch节点获取


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.

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文