UNPKG

blackcode-api

Version:

BlackCode Botlist İçin API Modülü

19 lines (16 loc) 590 B
const axios = require('axios') class API { static async hasVoted(bot, id) { const hasvotes = await axios.get(`https://web.blackcodetr.cf/api/${bot}/voted/${id}`).then(a => a.data.hasvote) return await hasvotes } static async info(bot) { const infos = await axios.get(`https://web.blackcodetr.cf/api/${bot}`).then(a => a.data) return await infos } static async search(value) { const results = await axios.get(`https://web.blackcodetr.cf/api/search/${value}`).then(a => a.data) return await results } } module.exports = API