0.0.1 • Published 4 years ago
firelist.js v0.0.1
FireList
Kullanıcının oy verip vermediğini kontrol etme
const Discord = require("discord.js"),
client = new Discord.Client(),
a = require('firelistapi.js'),
b = new a('Anahtarınız');
client.on('message', async (msg) => {
let check = await b.oykontrol(msg.author.id)
if (check) {
// Eğer oy vermiş ise
} else {
// Eğer oy vermemiş ise
}
})
Bot bilgilerini gönderme
const Discord = require("discord.js"),
client = new Discord.Client(),
a = require('firelistapi.js'),
b = new a('Anahtarınız');
client.on('message', async (msg) => {
await b.yolla(client.guilds.cache.size)
})
Bot bilgilerini gösterme
const Discord = require("discord.js"),
client = new Discord.Client(),
a = require('firelistapi.js'),
b = new a('Anahtarınız');
client.on('message', async (msg) => {
let bot = await b.bot("botid")
console.log(bot)//console a botun bilgilerini atar
})
0.0.1
4 years ago