1.1.0 • Published 3 years ago
tmweb-api v1.1.0
TheMechanic's web-api
Discord: https://discord.gg/ep7JKPYVym Web: https://themechanics-web.glitch.me/
İndirme
npm i tmweb-api
Başlangıç
const mcapi = require(
tmweb-api)
Bot bilgileri
{
"avatar":"",
"botID":"",
"username":"",
"discrim":"",
"shortDesc":"",
"prefix":"",
"votes":"",
"ownerID":"",
"owner":"",
"coowners": [""],
"tags": [""],
"longDesc":"",
"github":"",
"support":"",
"website":""
}
let a = await mcapi.Botinfos("BOT ID");
console.log(`
${a.username}
${a.prefix}
${a.vote}
`)
Bot oy api
{
"voted":"",
}
let v = await mcapi.Botvoted("USER ID" , "BOT TOKKEN")
console.log(`${v.voted}`)
Örnek komut
const mcapi = require("themechanics-web")
const { Client, Message, MessageEmbed } = require("discord.js");
exports.run = async (client, message, args) => {
// Botinfos kısmına kendi botumun ID sini yazdım kendi botunuzunki ile değiştirin
let b = await mcapi.Botinfos("902586375805739038");
// Botvoted kısmına {userID} {botTOKEN} olcak şekilde yazın ör olarak kendi id mi ve botumun tokenini yazdım test edebilirsiniz
// !! bot tokeni dediğimiz sizin Discordaki botunuzun tokeni deil sitemizdeki botun tokeni :)
let v = await mcapi.Botvoted("401706174778572800" , "QfUlEAbaCJoQelZUYzEeOABc")
// bu şekilde verileri çekiğ işleye bilirsiniz . Kolay gelsin :)
console.log(`${b.username}`)
console.log(`${v.voted}`)
}
exports.help = {
name: "bot",
aliases: [],
usage: `test`,
guildOnly: true,
category: "test",
description: "Bir test komudu"
}
// TheMechanic's Geliştirci ekibi sunar
// TheMechanic's Developer Team presents
Siteden bot tokeni almak
Sitedeki token sizin botunuzun gerçek tokeni deildir Botunuz sitede açın ve sağ taraftaki bilgiler kısmından tokeni kopyalayın