Advertisement
Guest User

Untitled

a guest
Nov 16th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.68 KB | None | 0 0
  1. const Discord = require('discord.js');
  2. const database = require('../database.js');
  3.  
  4. exports.run = async function (dcl, message, args) {
  5.  
  6. if (args[0]) {
  7. const usuario =
  8. message.mentions.users.first() || dcl.users.get(args[0]) || false;
  9. if (usuario) {
  10. if (usuario.bot) {
  11. database.Bots.findOne({
  12. botID: usuario.id
  13. }, function (berro, botDb) {
  14. if (botDb) {
  15. var votos
  16. if (botDb.vote === 1) {
  17. votos = 'voto'
  18. } else {
  19. votos = 'votos'
  20. }
  21. let dono2 = dcl.users.get(`${botDb.outrosdonos}`.slice(0, 18))
  22. let dono3 = dcl.users.get(`${botDb.outrosdonos}`.slice(20, 38))
  23.  
  24. if(!dono2) dono2 = 'Nenhum'
  25. if(!dono3) dono3 = ''
  26. 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>'
  27. message.channel.send(message.author, new Discord.RichEmbed()
  28. .setTitle(top + `\`${usuario.tag}\` ${usuario.presence.status}`.replace('dnd', '<:dnd2:627567550850400266>').replace('online', '<:online2:627548847270527035>').replace('idle', '<:idle2:627567211535532063>').replace('offline', '<:offline2:627567737316835328>'))
  29. .setDescription(`\`${botDb.descshort}\``)
  30. .addField(`<:user_indentidade:630464064975405056> **»** Desenvolvedor`, `<@${botDb.owner}>`, true)
  31. .addField(`<:nuvem:630904397244661770> **»** Programação`, `\`${botDb.lingp}\``, true)
  32. .addField(`<:up:630902883092660225> **»** Votos`, `**${botDb.vote}** ${votos}`, true)
  33. .addField(`<:Code_DCL:628627031646666790> **»** Prefix`, `\`${botDb.prefix}\``, true)
  34. .addField(`<:servidor:628274368228753433> **»** Suporte`, `${botDb.suporte}`, true)
  35. .addField(`<:bank_user:627600835634790414> **»** Outros donos:`, `${dono2}, ${dono3}`.replace('Nenhum,', 'Nenhum').replace(',', ''), true)
  36. .addField(`<:world:631613505342144522> **»** Linguagem`, `${botDb.ling}`, true)
  37. .addField(`<:Level_DCL:628628070760185856> **»** Funções`, `\`${botDb.funções}\``, true)
  38. .addField(`<:github:631618333539827713> **»** GitHub`, `${botDb.github}`, true)
  39. .addField(`<:satelite:627593945744146433> **»** Site`, `${botDb.site}`, true)
  40. .addField(`<:Enviar:628193512554364928> **»** Convite`, `[Adicionar](https://discordapp.com/api/oauth2/authorize?client_id=${usuario.id}&permissions=2147483127&scope=bot)`, true)
  41. .addField(`<:pasta:627796710705332234> **»** Descrição detalhada`, `${botDb.desclong}`)
  42. .setThumbnail(usuario.displayAvatarURL)
  43. .setFooter(`Comando solicitado por: ${message.author.tag}`, message.author.displayAvatarURL)
  44. .setColor("#36393e")
  45. .setTimestamp()
  46. )
  47. } else {
  48. message.channel.send(message.author, new Discord.RichEmbed()
  49. .setTitle(`<a:no:627585035326849043> Você não informou um **BOT** registrado!`)
  50. .setColor("#36393e")
  51. )
  52. }
  53. })
  54. } else {
  55. message.channel.send(message.author, new Discord.RichEmbed()
  56. .setTitle(`<a:no:627585035326849043> Este **USUÁRIO** não é um **BOT**!`)
  57. .setColor("#36393e")
  58. )
  59. }
  60. } else {
  61. message.channel.send(message.author, new Discord.RichEmbed()
  62. .setTitle(`<a:no:627585035326849043> Este **BOT** não está no servidor!!`)
  63. .setColor("#36393e")
  64. )
  65. }
  66. } else {
  67. message.channel.send(message.author, new Discord.RichEmbed()
  68. .setTitle(`<a:no:627585035326849043> Você não informou um **BOT**!`)
  69. .setColor("#36393e")
  70. )
  71. }
  72. }
  73.  
  74. exports.help = {
  75. name: 'pagina',
  76. aliases: ['page', 'página', 'home']
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement