Advertisement
gaber-elsayed

booster system

Sep 18th, 2021
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. const Discord = require("discord.js");
  2. const ayarlar = require('./ayarlar.json')
  3. const client = global.client;
  4. const logs = require('discord-logs');
  5. logs(client);
  6.  
  7. client.on('guildMemberBoost', (member) => {
  8.  
  9. let sunucuID = ("Sunucu ID")
  10. let kanalID = ("Mesajın Atılacağı Kanal ID")
  11. let boostrol = ("Booster Rol ID")
  12.  
  13. let boost = client.guilds.cache.get(sunucuID).premiumSubscriptionCount
  14. let tier = client.guilds.cache.get(sunucuID).premiumTier
  15.  
  16. const cubbeli = new Discord.MessageEmbed()
  17. .setColor("#ff66f0").setDescription(`<@${member.user.id}> Sunucumuza Boost Bastı
  18. Sunucunun Güncel Boost Seviyesi : \`${tier}\`
  19. Sunucunun Güncel Boost Sayısı : \`${boost}\``)
  20. client.channels.cache.get(kanalID).send(cubbeli);});
  21.  
  22.  
  23. client.on('guildMemberUnBoost', (member) => {
  24. let sunucuID = ("Sunucu ID")
  25. let kanalID = ("Mesajın Atılacağı Kanal ID")
  26. let boostrol = ("Booster Rol ID")
  27.  
  28. let boost = client.guilds.cache.get(sunucuID).premiumSubscriptionCount
  29. let tier = client.guilds.cache.get(sunucuID).premiumTier
  30.  
  31. const cubbeli = new Discord.MessageEmbed()
  32. .setColor("#ff66f0").setDescription(`<@${member.user.id}> Sunucumuzdaki Boostu Çekti
  33. Sunucunun Güncel Boost Seviyesi : \`${tier}\`
  34. Sunucunun Güncel Boost Sayısı : \`${boost}\``)
  35. client.channels.cache.get(kanalID).send(cubbeli);});
  36.  
  37.  
  38. client.on("guildBoostLevelUp", (guild, oldLevel, newLevel) => {
  39. let sunucuID = ("Sunucu ID")
  40. let kanalID = ("Mesajın Atılacağı Kanal ID")
  41. let boostrol = ("Booster Rol ID")
  42.  
  43. let boost = client.guilds.cache.get(sunucuID).premiumSubscriptionCount
  44. let tier = client.guilds.cache.get(sunucuID).premiumTier
  45. const cubbeli = new Discord.MessageEmbed()
  46. .setColor("#ff66f0").setDescription(`Sunucumuz ${tier} Seviyesine Yükseldi
  47. Sunucunun Güncel Boost Seviyesi : \`${tier}\`
  48. Sunucunun Güncel Boost Sayısı : \`${boost}\``)
  49. client.channels.cache.get(kanalID).send(cubbeli);});
  50.  
  51.  
  52. client.on("guildBoostLevelDown", (guild, oldLevel, newLevel) => {
  53. let sunucuID = ("Sunucu ID")
  54. let kanalID = ("Mesajın Atılacağı Kanal ID")
  55. let boostrol = ("Booster Rol ID")
  56.  
  57. let boost = client.guilds.cache.get(sunucuID).premiumSubscriptionCount
  58. let tier = client.guilds.cache.get(sunucuID).premiumTier
  59. const cubbeli = new Discord.MessageEmbed()
  60. .setColor("ff66f0").setDescription(`Sunucumuzun ${tier} Seviyesine Düştü
  61. Sunucunun Güncel Boost Seviyesi : \`${tier}\`
  62. Sunucunun Güncel Boost Sayısı : \`${boost}\``)
  63. client.channels.cache.get(kanalID).send(cubbeli);});
  64. client.login(ayarlar.token)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement