2b2t 中文文档教程
轻量级 discord.js 易于使用的 2b2t 包。
Additional Dependencies Required:
discord.js npm install discord.js
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
Credits:
感谢 Discord.js discord.js< /a>。
感谢 Node-Fetch 的 节点获取。
A Lightweight & easy to use 2b2t package for discord.js.
Additional Dependencies Required:
discord.js npm install discord.js
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
Credits:
Thank you LolRiTTeR for the 2b2t API.
Thank you Discord.js for discord.js.
Thank you Node-Fetch for node-fetch.
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。原文