Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require('discord.js');
- const database = require('../database.js');
- exports.run = async function (dcl, message, args) {
- if (args[0]) {
- const usuario =
- message.mentions.users.first() || dcl.users.get(args[0]) || false;
- if (usuario) {
- if (usuario.bot) {
- database.Bots.findOne({
- botID: usuario.id
- }, function (berro, botDb) {
- if (botDb) {
- var votos
- if (botDb.vote === 1) {
- votos = 'voto'
- } else {
- votos = 'votos'
- }
- let dono2 = dcl.users.get(`${botDb.outrosdonos}`.slice(0, 18))
- let dono3 = dcl.users.get(`${botDb.outrosdonos}`.slice(20, 38))
- if(!dono2) dono2 = 'Nenhum'
- if(!dono3) dono3 = ''
- let top = `${botDb.top1}`.replace(true, '<a:hypersquad:629664043405148183>').replace(false, '') + `${botDb.top2}`. replace(true, '🥈').replace(false, '') + `${botDb.top3}`.replace(true, '🥉').replace(false, '') || '<:Robot_DCL:628626782995873795>'
- message.channel.send(message.author, new Discord.RichEmbed()
- .setTitle(top + `\`${usuario.tag}\` ${usuario.presence.status}`.replace('dnd', '<:dnd2:627567550850400266>').replace('online', '<:online2:627548847270527035>').replace('idle', '<:idle2:627567211535532063>').replace('offline', '<:offline2:627567737316835328>'))
- .setDescription(`\`${botDb.descshort}\``)
- .addField(`<:user_indentidade:630464064975405056> **»** Desenvolvedor`, `<@${botDb.owner}>`, true)
- .addField(`<:nuvem:630904397244661770> **»** Programação`, `\`${botDb.lingp}\``, true)
- .addField(`<:up:630902883092660225> **»** Votos`, `**${botDb.vote}** ${votos}`, true)
- .addField(`<:Code_DCL:628627031646666790> **»** Prefix`, `\`${botDb.prefix}\``, true)
- .addField(`<:servidor:628274368228753433> **»** Suporte`, `${botDb.suporte}`, true)
- .addField(`<:bank_user:627600835634790414> **»** Outros donos:`, `${dono2}, ${dono3}`.replace('Nenhum,', 'Nenhum').replace(',', ''), true)
- .addField(`<:world:631613505342144522> **»** Linguagem`, `${botDb.ling}`, true)
- .addField(`<:Level_DCL:628628070760185856> **»** Funções`, `\`${botDb.funções}\``, true)
- .addField(`<:github:631618333539827713> **»** GitHub`, `${botDb.github}`, true)
- .addField(`<:satelite:627593945744146433> **»** Site`, `${botDb.site}`, true)
- .addField(`<:Enviar:628193512554364928> **»** Convite`, `[Adicionar](https://discordapp.com/api/oauth2/authorize?client_id=${usuario.id}&permissions=2147483127&scope=bot)`, true)
- .addField(`<:pasta:627796710705332234> **»** Descrição detalhada`, `${botDb.desclong}`)
- .setThumbnail(usuario.displayAvatarURL)
- .setFooter(`Comando solicitado por: ${message.author.tag}`, message.author.displayAvatarURL)
- .setColor("#36393e")
- .setTimestamp()
- )
- } else {
- message.channel.send(message.author, new Discord.RichEmbed()
- .setTitle(`<a:no:627585035326849043> Você não informou um **BOT** registrado!`)
- .setColor("#36393e")
- )
- }
- })
- } else {
- message.channel.send(message.author, new Discord.RichEmbed()
- .setTitle(`<a:no:627585035326849043> Este **USUÁRIO** não é um **BOT**!`)
- .setColor("#36393e")
- )
- }
- } else {
- message.channel.send(message.author, new Discord.RichEmbed()
- .setTitle(`<a:no:627585035326849043> Este **BOT** não está no servidor!!`)
- .setColor("#36393e")
- )
- }
- } else {
- message.channel.send(message.author, new Discord.RichEmbed()
- .setTitle(`<a:no:627585035326849043> Você não informou um **BOT**!`)
- .setColor("#36393e")
- )
- }
- }
- exports.help = {
- name: 'pagina',
- aliases: ['page', 'página', 'home']
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement