Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 KB | None | 0 0
  1. const Discord = require("discord.js");
  2.  
  3. module.exports.run = async (bot, message, args) => {
  4.  
  5. message.delete().catch(O_o=>{});
  6. const embed = new Discord.RichEmbed()
  7. .setAuthor(message.author.username, message.author.avatarURL)
  8. .setThumbnail(`${bot.user.avatarURL}`)
  9. .setTitle(":smiley: Menu De Ajuda")
  10. .setColor("BLUE")
  11. .setDescription(`Ei ${message.author.username} ! Aqui estão as coisas basicas do bot`)
  12. .addField(":interrobang: Prefixo", "O prefixo padrão do bot é: **;** mas pode ser alterado com o comando **;prefix (novo prefixo)**")
  13. .addField(":helmet_with_cross: Ajuda com comandos.", "Clique nas reações para ir a proxima pagina!")
  14. .addField(":cop: Desevolvedor:", "O meu desenvolvedor é o D4rkks ;)")
  15. .addField("Use 🎮 Para ver os comandos de jogos", "E veja todos os comandos relacionados a jogos e etc..")
  16. .setFooter("Help | EatGhost")
  17.  
  18. message.channel.send(embed)
  19.  
  20.  
  21. .then(async msg => {
  22. await msg.react("🎮")
  23. await msg.react("👮")
  24.  
  25. const filter = (reaction, user) => {
  26. return ['🎮'].includes(reaction.emoji.name) && user.id === message.author.id;
  27. return ['👮'].includes(reaction.emoji.name) && user.id === message.author.id;
  28. };
  29.  
  30. msg.awaitReactions(filter, { max: 1, time: 120000, errors: ['time'] })
  31. .then(collected => {
  32. const reaction = collected.first();
  33.  
  34. if (reaction.emoji.name === '🎮') {
  35.  
  36. let string = ''
  37. let finalStr = string
  38.  
  39. let names = message.guild.fetchAuditLogs({type: 'MEMBER_UPDATE', user: 'DESIRED USER ID'}).then(async (audit) => {
  40. let log = audit.entries.first().changes
  41. console.log(log)
  42. })
  43.  
  44.  
  45. const embed = new Discord.RichEmbed()
  46. .setTitle(`🎮 Jogos/Miscelania!`)
  47. .setThumbnail(bot.user.displayAvatarURL)
  48. .setTimestamp()
  49. .setColor("RED")
  50. .setFooter(message.author.tag, message.author.displayAvatarURL)
  51. .addField("<:7190_linkpepehype:603637457140973568> Avatar (@pessoa)", "Este comando é usado para pegar o avatar de outras pessoas")
  52. .addField(":robot: Botinfo", "Este comando é usado para saber sobre mim!")
  53. .addField(":thumbsup: Calcular 1+1", "Use isso para calcular dificeis equações!")
  54. .addField(":white_sun_small_cloud: Clima (cidade)", "Utilize isso para ver o clima da sua cidade!")
  55. .addField(":arrow_right: Continued (@pessoa)", "To be continued!")
  56. .addField(":cry: Cry", "Mostre sua tristeza para todas as pessoas :C")
  57. .addField(":dog: Cachorro", "Veja foto de catchorineos para se alegrar!")
  58. .addField(":cat: Gato", "Olha o catineo bonitinhu!")
  59. .addField("<:unnamed:614482631417135104> Google (pesquisa)", "Faça pesquisas no google!")
  60. .addField(":large_orange_diamond: Laranjo (palavra)", "Faça memes do laranjo rapidamente!")
  61. .addField(":eggplant: Meme", "Veja memes estilo gringo!")
  62. .addField(":ping_pong: Ping", "Veja a latencia da API do discord!!")
  63. .addField(":heart: Ship", "Veja se vc é compativel com alguem!!")
  64.  
  65. message.channel.send(embed)
  66.  
  67. msg.delete()
  68.  
  69.  
  70. let colors = ["#ff0000", "#fffb00", "#0c56f5", "#0ccef5", "#227d43", "#7c18ad"]
  71. let randomColor = Math.floor((Math.random() * colors.length) + 0);
  72.  
  73.  
  74. }
  75.  
  76.  
  77. })
  78. message.awaitReactions(filter, { max: 1, time: 120000, errors: ['time'] })
  79. .then(collected => {
  80. const reaction = collected.first();
  81. if (reaction.emoji.name === '👮') {
  82. message.channel.send("abc123")
  83. message.delete()
  84. }
  85.  
  86. })
  87. })
  88.  
  89.  
  90.  
  91.  
  92. }
  93.  
  94.  
  95.  
  96. module.exports.help = {
  97. name: "help"
  98. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement