├── events └── ready.js ├── baslat.bat ├── package.json ├── README.md ├── komut ├── karşılama.js ├── iliski.js ├── katılım.js ├── renk.js ├── takım.js ├── oyun.js └── burç.js ├── LICENSE ├── info.json └── katreos.js /events/ready.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /baslat.bat: -------------------------------------------------------------------------------- 1 | echo off 2 | color 0B 3 | cls 4 | :a 5 | node katreos.js 6 | goto a -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "katreos-roles", 3 | "version": "0.0.1", 4 | "description": "rol alma botu", 5 | "main": "katreos.js", 6 | "scripts": { 7 | "test": "node katreos.js" 8 | }, 9 | "author": "Katreos", 10 | "license": "ISC", 11 | "dependencies": { 12 | "@discordjs/voice": "^0.14.0", 13 | "croxydb": "^0.0.7", 14 | "discord.js": "^14.7.1" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # v14-rol-alma 2 | piyasaya hediyemdir 50 star 25 forkta setuplusu gelicektir 3 | hiçbir çalışmayan aksamı yoktur hepsi test edildi kesinlikle herşeyi sorunsuz çalışmaktadır herkes gibi iş görmüyecek bot değil işinize yarayacak bir bot paylaşmaktayım bir sorun olursa discord üzerinden katreos adlı discord hesabına yazmanız yeterli olacaktır hepinizi seviyorum proje lisanslıdır ticari amaç için satılamaz veya başka bir ad ile piyasaya sürülemez. 4 | 5 | ![image](https://github.com/Katrejs/v14-rol-alma/assets/167353445/464f3af4-7432-4fb5-8239-36cbb3e205f6) 6 | 7 | ![image](https://github.com/Katrejs/v14-rol-alma/assets/167353445/03ef1f3d-2a3e-415e-acbd-46c08f152703) 8 | 9 | ![image](https://github.com/Katrejs/v14-rol-alma/assets/167353445/b802df4a-de41-4c45-9afc-7fbf1f57844b) 10 | 11 | -------------------------------------------------------------------------------- /komut/karşılama.js: -------------------------------------------------------------------------------- 1 | const { ActionRowBuilder, StringSelectMenuBuilder, Events, ButtonBuilder, ButtonStyle } = require("discord.js") 2 | const info = require("../info.json") 3 | module.exports.run = (client, message, args, interaction) => { 4 | if (message.member.id !== info.rolessahip) return; 5 | 6 | var mesaj = `Merhaba dostum hızlı girişler olduğu zaman bot bazı kişileri gözden kaçırabiliyor bu durumlarda rolsüz kalmamanız için aşağıda ki butona basarak kendinize kayıtsız rolü verdirebilirsiniz 7 | ` 8 | const ec1 = new ActionRowBuilder() 9 | .addComponents( 10 | new ButtonBuilder() 11 | .setCustomId('kyt') 12 | .setLabel('Kayıtsız') 13 | .setEmoji('🔔') 14 | .setStyle(ButtonStyle.Success) 15 | ) 16 | 17 | message.delete() 18 | message.channel.send({ content: `${mesaj}`, components: [ec1] }) 19 | 20 | } 21 | module.exports.name ="role-karşılama", 22 | module.exports.use = ['kk','karşılama'] -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Katreoss 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /info.json: -------------------------------------------------------------------------------- 1 | { 2 | "roleprefix": "", 3 | "roletoken": "", 4 | "rolessahip": "", 5 | "roledurum": "Created by Katreos", 6 | "rolestat": "dnd", 7 | "roleses": "", 8 | "tag": "", 9 | "rolescolor": "Random", 10 | "taglı": "", 11 | "booster": "", 12 | "kayıtsız": "", 13 | "registerchat": "", 14 | "katılım": { 15 | "roleetkinkatılım": "", 16 | "roleçekilkatılım": "" 17 | }, 18 | "takım": { 19 | "fener": "", 20 | "galat": "", 21 | "besik": "", 22 | "trabzon": "", 23 | "basak": "" 24 | }, 25 | "ilişki": { 26 | "couple": "", 27 | "alone": "" 28 | }, 29 | "oyun": { 30 | "mlbb": "", 31 | "csgo": "", 32 | "pubg":"", 33 | "lol": "", 34 | "valorant": "", 35 | "gtav": "" 36 | }, 37 | "renk": { 38 | "kırmızı": "", 39 | "beyaz": "", 40 | "mavi": "", 41 | "sarı": "", 42 | "yeşil": "" 43 | }, 44 | "burç": { 45 | "akrep": "", 46 | "boğa": "", 47 | "başak": "", 48 | "ikizler": "", 49 | "kova": "", 50 | "koç": "", 51 | "yengeç": "", 52 | "oğlak": "", 53 | "terazi": "", 54 | "aslan": "", 55 | "balık": "", 56 | "yay": "" 57 | } 58 | 59 | } -------------------------------------------------------------------------------- /komut/iliski.js: -------------------------------------------------------------------------------- 1 | const { ActionRowBuilder, StringSelectMenuBuilder, Events } = require("discord.js") 2 | const info = require("../info.json") 3 | module.exports.run = (client, message, args, interaction) => { 4 | if (message.member.id !== info.rolessahip) return; 5 | 6 | var rolesmesaj = `:tada: Sevgili **__${message.guild.name}__** üyeleri kendinize uygun **İlişki** rollerini aşağıda ki açılır menüden alabilirsiniz.` 7 | 8 | const iliski = new ActionRowBuilder() 9 | .addComponents( 10 | new StringSelectMenuBuilder() 11 | .setCustomId('iliskiseç') 12 | .setPlaceholder('İlişki Rolleri') 13 | .addOptions( 14 | { 15 | label: 'Sevgilim var', 16 | description: 'Couple rolü', 17 | value: 'i1', 18 | emoji: '👩🏻‍❤️‍👨🏻' 19 | }, 20 | { 21 | label: 'Sevgilim yok', 22 | description: 'Alone rolü', 23 | value: 'i2', 24 | emoji: '😔' 25 | 26 | }, 27 | { 28 | label: 'Temizle', 29 | description: 'üzerinizden ilişki rolünü alır', 30 | value: 'i3', 31 | emoji: '🚯' 32 | 33 | }, 34 | ) 35 | ) 36 | message.delete() 37 | message.channel.send({ content: `${rolesmesaj}`, components: [iliski] }) 38 | 39 | } 40 | module.exports.name ="role-ilişki", 41 | module.exports.use = ['ri','ilişki'] -------------------------------------------------------------------------------- /komut/katılım.js: -------------------------------------------------------------------------------- 1 | const { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder } = require("discord.js") 2 | const info = require("../info.json") 3 | const dtb = require("croxydb") 4 | module.exports.run = (client, message, args, interaction) => { 5 | if (message.member.id !== info.rolessahip) return; 6 | 7 | var mesaj = `Herkese merhaba **${message.guild.name}** Ailesi Bildiğiniz üzere sunucumuzda birçok **Çekiliş**,**Konser**,**Etkinlik**,**Oyun** günleri düzenlenicektir. 8 | \n*__everyone__*,*__here__* gibi topluluğu rahatsız edicek etiketleri atmayacağız **Etkinlik** ve **Çekilişlerden** Haberdar olmak için asaşğıda ki butonlardan ilgili rolü alabilirsiniz. 9 | \n**▪︎** **Oyun** & **Etkinlik** günlerinden haberdar olmak için <@&${info.katılım.roleetkinkatılım}> Rolünü alabilirsiniz. 10 | \n**▪︎** **Konser** & **Çekiliş** günlerinden haberdar olmak için <@&${info.katılım.roleçekilkatılım}> Rolünü alabilirsiniz. 11 | ` 12 | const ec = new ActionRowBuilder() 13 | .addComponents( 14 | new ButtonBuilder() 15 | .setCustomId('eck1') 16 | .setLabel('Çekiliş') 17 | .setEmoji('🎁') 18 | .setStyle(ButtonStyle.Danger), 19 | new ButtonBuilder() 20 | .setCustomId('eck2') 21 | .setLabel('Etkinlik') 22 | .setEmoji('🎉') 23 | .setStyle(ButtonStyle.Success) 24 | ) 25 | 26 | message.delete() 27 | message.channel.send({ content: `${mesaj}`, components: [ec] }) 28 | 29 | } 30 | module.exports.name ="role-katılımcı", 31 | module.exports.use = ['rk','katılım'] -------------------------------------------------------------------------------- /komut/renk.js: -------------------------------------------------------------------------------- 1 | const { ActionRowBuilder, StringSelectMenuBuilder, Events } = require("discord.js") 2 | const info = require("../info.json") 3 | module.exports.run = (client, message, args, interaction) => { 4 | if (message.member.id !== info.rolessahip) return; 5 | 6 | var rolesmesaj = `:tada: Sevgili **__${message.guild.name}__** üyeleri kendinize uygun **Renk** rollerini aşağıda ki açılır menüden alabilirsiniz.` 7 | 8 | const takım = new ActionRowBuilder() 9 | .addComponents( 10 | new StringSelectMenuBuilder() 11 | .setCustomId('renkseç') 12 | .setPlaceholder('Renk Rolleri') 13 | .addOptions( 14 | { 15 | label: 'Kırmızı', 16 | description: 'Kırmızı rolü', 17 | value: 'renk1', 18 | emoji: '🍒' 19 | }, 20 | { 21 | label: 'Beyaz', 22 | description: 'Beyaz rolü', 23 | value: 'renk2', 24 | emoji: '🥥' 25 | 26 | }, 27 | { 28 | label: 'Mavi', 29 | description: 'Mavi rolü', 30 | value: 'renk3', 31 | emoji: '🍇' 32 | 33 | }, 34 | ) 35 | .addOptions( 36 | { 37 | label: 'Sarı', 38 | description: 'Sarı rolü', 39 | value: 'renk4', 40 | emoji: '🍋' 41 | }, 42 | { 43 | label: 'Yeşil', 44 | description: 'Yeşil rolü', 45 | value: 'renk5', 46 | emoji: '🥑' 47 | 48 | }, 49 | { 50 | label: 'Temizle', 51 | description: 'Üzerinizden renk rolünü alır', 52 | value: 'renk6', 53 | emoji: '🚯' 54 | 55 | }, 56 | ) 57 | ) 58 | message.delete() 59 | message.channel.send({ content: `${rolesmesaj}`, components: [takım] }) 60 | 61 | } 62 | module.exports.name ="role-renk", 63 | module.exports.use = ['rr','renk'] -------------------------------------------------------------------------------- /komut/takım.js: -------------------------------------------------------------------------------- 1 | const { ActionRowBuilder, StringSelectMenuBuilder, Events } = require("discord.js") 2 | const info = require("../info.json") 3 | module.exports.run = (client, message, args, interaction) => { 4 | if (message.member.id !== info.rolessahip) return; 5 | 6 | var rolesmesaj = `:tada: Sevgili **__${message.guild.name}__** üyeleri kendinize uygun **Takım** rollerini aşağıda ki açılır menüden alabilirsiniz.` 7 | 8 | const takım = new ActionRowBuilder() 9 | .addComponents( 10 | new StringSelectMenuBuilder() 11 | .setCustomId('takımseç') 12 | .setPlaceholder('Takım Rolleri') 13 | .addOptions( 14 | { 15 | label: 'Fenebahçe', 16 | description: 'Fenerbahçe takım rolü', 17 | value: 'takım1', 18 | emoji: '⭐' 19 | }, 20 | { 21 | label: 'Galatasaray', 22 | description: 'Galatasaray takım rolü', 23 | value: 'takım2', 24 | emoji: '⭐' 25 | 26 | }, 27 | { 28 | label: 'Beşiktaş', 29 | description: 'Beşiktaş takım rolü', 30 | value: 'takım3', 31 | emoji: '⭐' 32 | 33 | }, 34 | ) 35 | .addOptions( 36 | { 37 | label: 'Trabzonspor', 38 | description: 'Trabzonspor takım rolü', 39 | value: 'takım4', 40 | emoji: '⭐' 41 | }, 42 | { 43 | label: 'Başakşehir', 44 | description: 'Başakşehir takım rolü', 45 | value: 'takım5', 46 | emoji: '⭐' 47 | 48 | }, 49 | { 50 | label: 'Temizle', 51 | description: 'Üzerinizden takım rolünü alır', 52 | value: 'takım6', 53 | emoji: '🚯' 54 | 55 | }, 56 | ) 57 | ) 58 | message.delete() 59 | message.channel.send({ content: `${rolesmesaj}`, components: [takım] }) 60 | 61 | } 62 | module.exports.name ="role-takım", 63 | module.exports.use = ['rt','takım'] -------------------------------------------------------------------------------- /komut/oyun.js: -------------------------------------------------------------------------------- 1 | const { ActionRowBuilder, StringSelectMenuBuilder, Events } = require("discord.js") 2 | const info = require("../info.json") 3 | module.exports.run = (client, message, args, interaction) => { 4 | if (message.member.id !== info.rolessahip) return; 5 | 6 | var rolesmesaj = `:tada: Sevgili **__${message.guild.name}__** üyeleri kendinize uygun **Oyun** rollerini aşağıda ki açılır menüden alabilirsiniz.` 7 | 8 | const takım = new ActionRowBuilder() 9 | .addComponents( 10 | new StringSelectMenuBuilder() 11 | .setCustomId('oyunseç') 12 | .setPlaceholder('Oyun Rolleri') 13 | .addOptions( 14 | { 15 | label: 'Mobile Legends', 16 | description: 'Mobile Legends rolü', 17 | value: 'oyun1', 18 | emoji: '🕹️', 19 | }, 20 | { 21 | label: 'CS:GO', 22 | description: 'CS:GO rolü', 23 | value: 'oyun2', 24 | emoji: '🕹️' 25 | 26 | }, 27 | { 28 | label: 'PUBG', 29 | description: 'PUBG rolü', 30 | value: 'oyun3', 31 | emoji: '🕹️' 32 | 33 | }, 34 | ) 35 | .addOptions( 36 | { 37 | label: 'League of Legends', 38 | description: 'League of Legends rolü', 39 | value: 'oyun4', 40 | emoji: '🕹️' 41 | }, 42 | { 43 | label: 'Valorant', 44 | description: 'Valorant rolü', 45 | value: 'oyun5', 46 | emoji: '🕹️' 47 | 48 | }, 49 | { 50 | label: 'Gta V', 51 | description: 'Gta V rolü', 52 | value: 'oyun6', 53 | emoji: '🕹️' 54 | 55 | }, 56 | ) 57 | .addOptions( 58 | { 59 | label: 'Temizle', 60 | description: 'Üzerinizden oyun rollerini alır', 61 | value: 'oyun7', 62 | emoji: '🚯' 63 | }, 64 | ) 65 | ) 66 | message.delete() 67 | message.channel.send({ content: `${rolesmesaj}`, components: [takım] }) 68 | 69 | } 70 | module.exports.name ="role-oyun", 71 | module.exports.use = ['ro','oyun'] -------------------------------------------------------------------------------- /komut/burç.js: -------------------------------------------------------------------------------- 1 | const { ActionRowBuilder, StringSelectMenuBuilder, Events } = require("discord.js") 2 | const info = require("../info.json") 3 | module.exports.run = (client, message, args, interaction) => { 4 | if (message.member.id !== info.rolessahip) return; 5 | 6 | var rolesmesaj = `:tada: Sevgili **__${message.guild.name}__** üyeleri kendinize uygun **Burç** rollerini aşağıda ki açılır menüden alabilirsiniz.` 7 | 8 | const takım = new ActionRowBuilder() 9 | .addComponents( 10 | new StringSelectMenuBuilder() 11 | .setCustomId('burcseç') 12 | .setPlaceholder('Burç Rolleri') 13 | .addOptions( 14 | { 15 | label: 'Akrep', 16 | description: 'Akrep burcu rolü', 17 | value: 'b1', 18 | emoji: '♏', 19 | }, 20 | { 21 | label: 'Boğa', 22 | description: 'Boğa burcu rolü', 23 | value: 'b2', 24 | emoji: '♉' 25 | 26 | }, 27 | { 28 | label: 'Başak', 29 | description: 'Başak burcu rolü', 30 | value: 'b3', 31 | emoji: '♍' 32 | 33 | }, 34 | ) 35 | .addOptions( 36 | { 37 | label: 'İkizler', 38 | description: 'İkizler burcu rolü', 39 | value: 'b4', 40 | emoji: '♊' 41 | }, 42 | { 43 | label: 'Kova', 44 | description: 'Kova burcu rolü', 45 | value: 'b5', 46 | emoji: '♒' 47 | 48 | }, 49 | { 50 | label: 'Koç', 51 | description: 'Koç burcu rolü', 52 | value: 'b6', 53 | emoji: '♈' 54 | 55 | }, 56 | ) 57 | .addOptions( 58 | { 59 | label: 'Yengeç', 60 | description: 'Yengeç burcu rolü', 61 | value: 'b7', 62 | emoji: '♋' 63 | }, 64 | { 65 | label: 'Oğlak', 66 | description: 'Oğlak burcu rolü', 67 | value: 'b8', 68 | emoji: '♑' 69 | }, 70 | { 71 | label: 'Terazi', 72 | description: 'Terazi burcu rolü', 73 | value: 'b9', 74 | emoji: '♎' 75 | }, 76 | ) 77 | .addOptions( 78 | { 79 | label: 'Aslan', 80 | description: 'Aslan burcu rolü', 81 | value: 'b10', 82 | emoji: '♌' 83 | }, 84 | { 85 | label: 'Balık', 86 | description: 'Balık burcu rolü', 87 | value: 'b11', 88 | emoji: '♓' 89 | }, 90 | { 91 | label: 'Yay', 92 | description: 'Yay burcu rolü', 93 | value: 'b12', 94 | emoji: '♐' 95 | }, 96 | ) 97 | .addOptions( 98 | { 99 | label: 'Temizle', 100 | description: 'Üzerinizden oyun rollerini alır', 101 | value: 'b13', 102 | emoji: '🚯' 103 | }, 104 | ) 105 | ) 106 | message.delete() 107 | message.channel.send({ content: `${rolesmesaj}`, components: [takım] }) 108 | 109 | } 110 | module.exports.name ="role-burç", 111 | module.exports.use = ['rb','burç'] -------------------------------------------------------------------------------- /katreos.js: -------------------------------------------------------------------------------- 1 | const { Client, Partials, GatewayIntentBits, Collection, Events, ActivityType } = require("discord.js"); 2 | const fs = require('node:fs'); 3 | const path = require('node:path'); 4 | const { joinVoiceChannel, VoiceConnectionStatus } = require("@discordjs/voice") 5 | const info = require("./info.json") 6 | 7 | const client = new Client({ fetchAllMembers : true , 8 | intents: [GatewayIntentBits.Guilds, 9 | GatewayIntentBits.GuildMembers, 10 | GatewayIntentBits.GuildEmojisAndStickers, 11 | GatewayIntentBits.GuildIntegrations, 12 | GatewayIntentBits.GuildWebhooks, 13 | GatewayIntentBits.GuildInvites, 14 | GatewayIntentBits.GuildVoiceStates, 15 | GatewayIntentBits.GuildPresences, 16 | GatewayIntentBits.GuildMessages, 17 | GatewayIntentBits.GuildMessageReactions, 18 | GatewayIntentBits.GuildMessageTyping, 19 | GatewayIntentBits.DirectMessages, 20 | GatewayIntentBits.DirectMessageReactions, 21 | GatewayIntentBits.DirectMessageTyping, 22 | GatewayIntentBits.MessageContent], shards: "auto", partials: [Partials.Message, Partials.Channel, Partials.GuildMember, Partials.Reaction, Partials.GuildScheduledEvent, Partials.User, Partials.ThreadMember]}); 23 | 24 | client.commands = new Collection(); 25 | client.aliases = new Collection(); 26 | client.events = new Collection(); 27 | 28 | const eventsPath = path.join(__dirname, 'events'); 29 | const eventFiles = fs.readdirSync(eventsPath).filter(file => file.endsWith('.js')); 30 | 31 | 32 | 33 | for (const file of eventFiles) { 34 | const filePath = path.join(eventsPath, file); 35 | const event = require(filePath); 36 | if (event.once) { 37 | client.once(event.name, (...args) => event.execute(...args)); 38 | } else { 39 | client.on(event.name, (...args) => event.execute(...args)); 40 | } 41 | console.log(`[EVENT] ${event.name} yüklendi`) 42 | } 43 | 44 | const commands = fs.readdirSync("./komut").filter(file => file.endsWith(".js")) 45 | for(file of commands) { 46 | const commandName = file.split(".")[0] 47 | const command = require(`./komut/${commandName}`) 48 | client.commands.set(commandName, command) 49 | console.log(`[KOMUT] ${commandName} yüklendi`) 50 | } 51 | const prefix = `${info.roleprefix}` 52 | client.on('messageCreate', async (message) => { 53 | if(message.content.startsWith(prefix)) { 54 | const args = message.content.slice(prefix.length).trim().split(/ +/g) 55 | const commandName = args.shift() 56 | const command = client.commands.get(commandName) || client.commands.find(u => u.use && u.use.includes(commandName)); 57 | if(!command) return 58 | command.run(client, message, args) 59 | } 60 | }) 61 | 62 | client.on(Events.ClientReady, async() => { 63 | console.log(`${client.user.tag} Aktif edildi`) 64 | client.user.setActivity(`${info.roledurum}`, { type: ActivityType.Playing }); 65 | client.user.setStatus(`${info.rolestat}`); 66 | 67 | const katreses = client.channels.cache.get(info.roleses); 68 | const connection = joinVoiceChannel({ 69 | channelId: katreses.id, 70 | guildId: katreses.guild.id, 71 | adapterCreator: katreses.guild.voiceAdapterCreator, 72 | selfDeaf: true, 73 | selfMute: true, 74 | }); 75 | connection.on(VoiceConnectionStatus.Ready, () => { 76 | console.log('Ses bağlantısı tanımlandı'); 77 | }); 78 | 79 | 80 | }) 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | client.on(Events.InteractionCreate, async (interaction) => { 90 | if(interaction.isButton()) { 91 | 92 | if (interaction.customId === 'eck1') { 93 | let çrolesvar = await interaction.member.roles.cache.get(info.katılım.roleçekilkatılım); 94 | if (!çrolesvar) { 95 | 96 | await interaction.member.roles.add(info.katılım.roleçekilkatılım); 97 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** Üyesi üzerinize <@&${info.katılım.roleçekilkatılım}> rolü verildi.`, ephemeral: 'true' } ) 98 | } else { 99 | 100 | interaction.member.roles.remove(info.katılım.roleçekilkatılım) 101 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** Üyesi üzerinizden <@&${info.katılım.roleçekilkatılım}> rolü alındı.`, ephemeral: 'true' } ) 102 | } 103 | } 104 | if (interaction.customId === 'eck2') { 105 | let erolesvar = await interaction.member.roles.cache.get(info.katılım.roleetkinkatılım); 106 | if (!erolesvar) { 107 | await interaction.member.roles.add(info.katılım.roleetkinkatılım); 108 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** Üyesi üzerinize <@&${info.katılım.roleetkinkatılım}> rolü verildi.`, ephemeral: 'true' } ) 109 | } else { 110 | await interaction.member.roles.remove(info.katılım.roleetkinkatılım); 111 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** Üyesi üzerinizden <@&${info.katılım.roleetkinkatılım}> rolü alındı.`, ephemeral: 'true' } ) 112 | } 113 | 114 | } 115 | 116 | if (interaction.customId === 'kyt') { 117 | const memberRoles = interaction.member.roles.cache.filter(x => x.id !== interaction.guild.id).size; 118 | 119 | 120 | if(memberRoles === 0) { 121 | await interaction.member.roles.add(info.kayıtsız) 122 | await interaction.member.setNickname(`${info.tag} İsim | Yaş`) 123 | interaction.reply({ content: `Başarıyla <@&${info.kayıtsız}> rolünü verdim ve ismini \`${info.tag} İsim | Yaş\` olarak ayarladım <#${info.registerchat}> kanalına yazabilirsin ^^`, ephemeral: true }) 124 | 125 | } else { 126 | interaction.reply({ content: `Üzgünüm bu işlem için üzerinde hiçbir rolün bulunmaması gerekiyor`, ephemeral: true }) 127 | }} 128 | } 129 | if (interaction.isStringSelectMenu()) { 130 | const seçim = interaction.values[0]; 131 | 132 | const takımroller = [info.takım.basak, info.takım.besik, info.takım.fener, info.takım.galat, info.takım.trabzon] 133 | const oyunroller = [info.oyun.csgo, info.oyun.gtav, info.oyun.lol, info.oyun.mlbb, info.oyun.pubg, info.oyun.valorant] 134 | const renkroller = [info.renk.beyaz, info.renk.kırmızı, info.renk.mavi, info.renk.sarı, info.renk.yeşil] 135 | const burçroller = [info.burç.akrep, info.burç.aslan, info.burç.balık, info.burç.başak, info.burç.boğa, info.burç.ikizler, info.burç.kova, info.burç.koç, info.burç.oğlak, info.burç.terazi, info.burç.yay, info.burç.yengeç] 136 | 137 | if (seçim === 'takım1') { 138 | let frol = await interaction.member.roles.cache.get(info.takım.fener) 139 | 140 | if(!frol) { 141 | 142 | await interaction.member.roles.remove(takımroller); 143 | await interaction.member.roles.add(info.takım.fener); 144 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.takım.fener}> rolünü ekledim`, ephemeral: true }) 145 | } else { 146 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.takım.fener}> rolüne zaten sahipsiniz.`, ephemeral: true }) 147 | }} 148 | 149 | 150 | if (seçim === 'takım2') { 151 | let grol = await interaction.member.roles.cache.get(info.takım.galat) 152 | 153 | if(!grol) { 154 | 155 | await interaction.member.roles.remove(takımroller); 156 | await interaction.member.roles.add(info.takım.galat); 157 | await interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.takım.galat}> rolünü ekledim`, ephemeral: true }) 158 | } else { 159 | await interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.takım.galat}> rolüne zaten sahipsiniz.`, ephemeral: true }) 160 | } 161 | } 162 | 163 | if (seçim === 'takım3') { 164 | let brol = await interaction.member.roles.cache.get(info.takım.besik) 165 | 166 | if(!brol) { 167 | 168 | await interaction.member.roles.remove(takımroller); 169 | await interaction.member.roles.add(info.takım.besik); 170 | await interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.takım.besik}> rolünü ekledim`, ephemeral: true }) 171 | } else { 172 | await interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.takım.besik}> rolüne zaten sahipsiniz.`, ephemeral: true }) 173 | } 174 | } 175 | 176 | if (seçim === 'takım4') { 177 | let trol = await interaction.member.roles.cache.get(info.takım.trabzon) 178 | 179 | if(!trol) { 180 | 181 | await interaction.member.roles.remove(takımroller); 182 | await interaction.member.roles.add(info.takım.trabzon); 183 | await interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.takım.trabzon}> rolünü ekledim`, ephemeral: true }) 184 | } else { 185 | await interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.takım.trabzon}> rolüne zaten sahipsiniz.`, ephemeral: true }) 186 | } 187 | } 188 | 189 | if (seçim === 'takım5') { 190 | let mbrol = await interaction.member.roles.cache.get(info.takım.basak) 191 | 192 | if(!mbrol) { 193 | 194 | await interaction.member.roles.remove(takımroller); 195 | await interaction.member.roles.add(info.takım.basak); 196 | await interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.takım.basak}> rolünü ekledim`, ephemeral: true }) 197 | } else { 198 | await interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.takım.basak}> rolüne zaten sahipsiniz.`, ephemeral: true }) 199 | } 200 | } 201 | 202 | if (seçim === 'takım6') { 203 | 204 | await interaction.member.roles.remove(takımroller); 205 | await interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi **Takım** rolleriniz sıfırlandı`, ephemeral: true }) 206 | } 207 | 208 | if (seçim === 'i1') { 209 | let i1var = interaction.member.roles.cache.get(info.ilişki.couple) 210 | if(!i1var) { 211 | await interaction.member.roles.remove(info.ilişki.alone) 212 | await interaction.member.roles.add(info.ilişki.couple) 213 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.ilişki.couple}> rolünü ekledim`, ephemeral: true }) 214 | } else { 215 | await interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.ilişki.couple}> rolüne zaten sahipsiniz.`, ephemeral: true }) 216 | } 217 | } 218 | 219 | if (seçim === 'i2') { 220 | let i2var = interaction.member.roles.cache.get(info.ilişki.alone) 221 | if(!i2var) { 222 | await interaction.member.roles.remove(info.ilişki.couple) 223 | await interaction.member.roles.add(info.ilişki.alone) 224 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.ilişki.alone}> rolünü ekledim`, ephemeral: true }) 225 | } else { 226 | await interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.ilişki.alone}> rolüne zaten sahipsiniz.`, ephemeral: true }) 227 | } 228 | } 229 | if (seçim === 'i3') { 230 | await interaction.member.roles.remove(info.ilişki.couple) 231 | await interaction.member.roles.remove(info.ilişki.alone) 232 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi **İlişki** rolleriniz sıfırlandı`, ephemeral: true }) 233 | } 234 | 235 | 236 | if (seçim === 'oyun1') { 237 | let frol = await interaction.member.roles.cache.get(info.oyun.mlbb) 238 | 239 | if(!frol) { 240 | 241 | await interaction.member.roles.add(info.oyun.mlbb); 242 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.oyun.mlbb}> rolünü ekledim`, ephemeral: true }) 243 | } else { 244 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.oyun.mlbb}> rolüne zaten sahipsiniz.`, ephemeral: true }) 245 | }} 246 | 247 | 248 | if (seçim === 'oyun2') { 249 | let frol = await interaction.member.roles.cache.get(info.oyun.csgo) 250 | 251 | if(!frol) { 252 | 253 | await interaction.member.roles.add(info.oyun.csgo); 254 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.oyun.csgo}> rolünü ekledim`, ephemeral: true }) 255 | } else { 256 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.oyun.csgo}> rolüne zaten sahipsiniz.`, ephemeral: true }) 257 | }} 258 | 259 | if (seçim === 'oyun3') { 260 | let frol = await interaction.member.roles.cache.get(info.oyun.pubg) 261 | 262 | if(!frol) { 263 | 264 | await interaction.member.roles.add(info.oyun.pubg); 265 | await interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.oyun.pubg}> rolünü ekledim`, ephemeral: true }) 266 | } else { 267 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.oyun.pubg}> rolüne zaten sahipsiniz.`, ephemeral: true }) 268 | }} 269 | 270 | if (seçim === 'oyun4') { 271 | let frol = await interaction.member.roles.cache.get(info.oyun.lol) 272 | 273 | if(!frol) { 274 | 275 | await interaction.member.roles.add(info.oyun.lol); 276 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.oyun.lol}> rolünü ekledim`, ephemeral: true }) 277 | } else { 278 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.oyun.lol}> rolüne zaten sahipsiniz.`, ephemeral: true }) 279 | }} 280 | 281 | 282 | if (seçim === 'oyun5') { 283 | let frol = await interaction.member.roles.cache.get(info.oyun.valorant) 284 | 285 | if(!frol) { 286 | 287 | await interaction.member.roles.add(info.oyun.valorant); 288 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.oyun.valorant}> rolünü ekledim`, ephemeral: true }) 289 | } else { 290 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.oyun.valorant}> rolüne zaten sahipsiniz.`, ephemeral: true }) 291 | }} 292 | 293 | 294 | if (seçim === 'oyun6') { 295 | let frol = await interaction.member.roles.cache.get(info.oyun.gtav) 296 | 297 | if(!frol) { 298 | 299 | await interaction.member.roles.add(info.oyun.gtav); 300 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.oyun.gtav}> rolünü ekledim`, ephemeral: true }) 301 | } else { 302 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.oyun.gtav}> rolüne zaten sahipsiniz.`, ephemeral: true }) 303 | }} 304 | 305 | 306 | if (seçim === 'oyun7') { 307 | 308 | 309 | await interaction.member.roles.remove(oyunroller); 310 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinizden **oyun** rolleri alındı`, ephemeral: true }) 311 | } 312 | 313 | 314 | 315 | if (seçim === 'renk1') { 316 | let frol = await interaction.member.roles.cache.get(info.renk.kırmızı) 317 | 318 | let member = interaction.member; 319 | if(!member.roles.cache.has(info.taglı) && !member.roles.cache.has(info.booster)) { 320 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi **renk** rolleri sadece __taglı & booster__ üyelerimiz içindir`, ephemeral: true }) 321 | return 322 | } 323 | 324 | 325 | 326 | if(!frol) { 327 | 328 | await interaction.member.roles.remove(renkroller) 329 | await interaction.member.roles.add(info.renk.kırmızı); 330 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.renk.kırmızı}> rolünü ekledim`, ephemeral: true }) 331 | } else { 332 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.renk.kırmızı}> rolüne zaten sahipsiniz.`, ephemeral: true }) 333 | }} 334 | 335 | 336 | if (seçim === 'renk2') { 337 | let frol = await interaction.member.roles.cache.get(info.renk.beyaz) 338 | 339 | let member = interaction.member; 340 | if(!member.roles.cache.has(info.taglı) && !member.roles.cache.has(info.booster)) { 341 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi **renk** rolleri sadece __taglı & booster__ üyelerimiz içindir`, ephemeral: true }) 342 | return 343 | } 344 | 345 | if(!frol) { 346 | 347 | await interaction.member.roles.remove(renkroller) 348 | await interaction.member.roles.add(info.renk.beyaz); 349 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.renk.beyaz}> rolünü ekledim`, ephemeral: true }) 350 | } else { 351 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.renk.beyaz}> rolüne zaten sahipsiniz.`, ephemeral: true }) 352 | }} 353 | 354 | if (seçim === 'renk3') { 355 | let frol = await interaction.member.roles.cache.get(info.renk.mavi) 356 | 357 | if(!frol) { 358 | 359 | let member = interaction.member; 360 | if(!member.roles.cache.has(info.taglı) && !member.roles.cache.has(info.booster)) { 361 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi **renk** rolleri sadece __taglı & booster__ üyelerimiz içindir`, ephemeral: true }) 362 | return 363 | } 364 | 365 | await interaction.member.roles.remove(renkroller) 366 | await interaction.member.roles.add(info.renk.mavi); 367 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.renk.mavi}> rolünü ekledim`, ephemeral: true }) 368 | } else { 369 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.renk.mavi}> rolüne zaten sahipsiniz.`, ephemeral: true }) 370 | }} 371 | 372 | 373 | if (seçim === 'renk4') { 374 | let frol = await interaction.member.roles.cache.get(info.renk.sarı) 375 | 376 | if(!frol) { 377 | 378 | let member = interaction.member; 379 | if(!member.roles.cache.has(info.taglı) && !member.roles.cache.has(info.booster)) { 380 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi **renk** rolleri sadece __taglı & booster__ üyelerimiz içindir`, ephemeral: true }) 381 | return 382 | } 383 | 384 | await interaction.member.roles.remove(renkroller) 385 | await interaction.member.roles.add(info.renk.sarı); 386 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.renk.sarı}> rolünü ekledim`, ephemeral: true }) 387 | } else { 388 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.renk.sarı}> rolüne zaten sahipsiniz.`, ephemeral: true }) 389 | }} 390 | 391 | if (seçim === 'renk5') { 392 | let frol = await interaction.member.roles.cache.get(info.renk.yeşil) 393 | 394 | if(!frol) { 395 | 396 | let member = interaction.member; 397 | if(!member.roles.cache.has(info.taglı) && !member.roles.cache.has(info.booster)) { 398 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi **renk** rolleri sadece __taglı & booster__ üyelerimiz içindir`, ephemeral: true }) 399 | return 400 | } 401 | 402 | await interaction.member.roles.remove(renkroller) 403 | await interaction.member.roles.add(info.renk.yeşil); 404 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.renk.yeşil}> rolünü ekledim`, ephemeral: true }) 405 | } else { 406 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.renk.yeşil}> rolüne zaten sahipsiniz.`, ephemeral: true }) 407 | }} 408 | 409 | if (seçim === 'renk6') { 410 | 411 | let member = interaction.member; 412 | if(!member.roles.cache.has(info.taglı) && !member.roles.cache.has(info.booster)) { 413 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi **renk** rolleri sadece __taglı & booster__ üyelerimiz içindir`, ephemeral: true }) 414 | return 415 | } 416 | 417 | await interaction.member.roles.remove(renkroller); 418 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinizden **renk** rolleri alındı`, ephemeral: true }) 419 | } 420 | 421 | 422 | 423 | 424 | if (seçim === 'b1') { 425 | let frol = await interaction.member.roles.cache.get(info.burç.akrep) 426 | 427 | if(!frol) { 428 | await interaction.member.roles.remove(burçroller) 429 | await interaction.member.roles.add(info.burç.akrep); 430 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.burç.akrep}> rolünü ekledim`, ephemeral: true }) 431 | } else { 432 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.burç.akrep}> rolüne zaten sahipsiniz.`, ephemeral: true }) 433 | }} 434 | 435 | if (seçim === 'b2') { 436 | let frol = await interaction.member.roles.cache.get(info.burç.boğa) 437 | 438 | if(!frol) { 439 | await interaction.member.roles.remove(burçroller) 440 | await interaction.member.roles.add(info.burç.boğa); 441 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.burç.boğa}> rolünü ekledim`, ephemeral: true }) 442 | } else { 443 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.burç.boğa}> rolüne zaten sahipsiniz.`, ephemeral: true }) 444 | }} 445 | 446 | if (seçim === 'b3') { 447 | let frol = await interaction.member.roles.cache.get(info.burç.başak) 448 | 449 | if(!frol) { 450 | await interaction.member.roles.remove(burçroller) 451 | await interaction.member.roles.add(info.burç.başak); 452 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.burç.başak}> rolünü ekledim`, ephemeral: true }) 453 | } else { 454 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.burç.başak}> rolüne zaten sahipsiniz.`, ephemeral: true }) 455 | }} 456 | 457 | if (seçim === 'b4') { 458 | let frol = await interaction.member.roles.cache.get(info.burç.ikizler) 459 | 460 | if(!frol) { 461 | await interaction.member.roles.remove(burçroller) 462 | await interaction.member.roles.add(info.burç.ikizler); 463 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.burç.ikizler}> rolünü ekledim`, ephemeral: true }) 464 | } else { 465 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.burç.ikizler}> rolüne zaten sahipsiniz.`, ephemeral: true }) 466 | }} 467 | 468 | if (seçim === 'b5') { 469 | let frol = await interaction.member.roles.cache.get(info.burç.kova) 470 | 471 | if(!frol) { 472 | await interaction.member.roles.remove(burçroller) 473 | await interaction.member.roles.add(info.burç.kova); 474 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.burç.kova}> rolünü ekledim`, ephemeral: true }) 475 | } else { 476 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.burç.kova}> rolüne zaten sahipsiniz.`, ephemeral: true }) 477 | }} 478 | 479 | if (seçim === 'b6') { 480 | let frol = await interaction.member.roles.cache.get(info.burç.koç) 481 | 482 | if(!frol) { 483 | await interaction.member.roles.remove(burçroller) 484 | await interaction.member.roles.add(info.burç.koç); 485 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.burç.koç}> rolünü ekledim`, ephemeral: true }) 486 | } else { 487 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.burç.koç}> rolüne zaten sahipsiniz.`, ephemeral: true }) 488 | }} 489 | 490 | if (seçim === 'b7') { 491 | let frol = await interaction.member.roles.cache.get(info.burç.yengeç) 492 | 493 | if(!frol) { 494 | await interaction.member.roles.remove(burçroller) 495 | await interaction.member.roles.add(info.burç.yengeç); 496 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.burç.yengeç}> rolünü ekledim`, ephemeral: true }) 497 | } else { 498 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.burç.yengeç}> rolüne zaten sahipsiniz.`, ephemeral: true }) 499 | }} 500 | 501 | if (seçim === 'b8') { 502 | let frol = await interaction.member.roles.cache.get(info.burç.oğlak) 503 | 504 | if(!frol) { 505 | await interaction.member.roles.remove(burçroller) 506 | await interaction.member.roles.add(info.burç.oğlak); 507 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.burç.oğlak}> rolünü ekledim`, ephemeral: true }) 508 | } else { 509 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.burç.oğlak}> rolüne zaten sahipsiniz.`, ephemeral: true }) 510 | }} 511 | 512 | if (seçim === 'b9') { 513 | let frol = await interaction.member.roles.cache.get(info.burç.terazi) 514 | 515 | if(!frol) { 516 | await interaction.member.roles.remove(burçroller) 517 | await interaction.member.roles.add(info.burç.terazi); 518 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.burç.terazi}> rolünü ekledim`, ephemeral: true }) 519 | } else { 520 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.burç.terazi}> rolüne zaten sahipsiniz.`, ephemeral: true }) 521 | }} 522 | 523 | if (seçim === 'b10') { 524 | let frol = await interaction.member.roles.cache.get(info.burç.aslan) 525 | 526 | if(!frol) { 527 | await interaction.member.roles.remove(burçroller) 528 | await interaction.member.roles.add(info.burç.aslan); 529 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.burç.aslan}> rolünü ekledim`, ephemeral: true }) 530 | } else { 531 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.burç.aslan}> rolüne zaten sahipsiniz.`, ephemeral: true }) 532 | }} 533 | 534 | if (seçim === 'b11') { 535 | let frol = await interaction.member.roles.cache.get(info.burç.balık) 536 | 537 | if(!frol) { 538 | await interaction.member.roles.remove(burçroller) 539 | await interaction.member.roles.add(info.burç.balık); 540 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.burç.balık}> rolünü ekledim`, ephemeral: true }) 541 | } else { 542 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.burç.balık}> rolüne zaten sahipsiniz.`, ephemeral: true }) 543 | }} 544 | 545 | if (seçim === 'b12') { 546 | let frol = await interaction.member.roles.cache.get(info.burç.yay) 547 | 548 | if(!frol) { 549 | await interaction.member.roles.remove(burçroller) 550 | await interaction.member.roles.add(info.burç.yay); 551 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinize <@&${info.burç.yay}> rolünü ekledim`, ephemeral: true }) 552 | } else { 553 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi <@&${info.burç.yay}> rolüne zaten sahipsiniz.`, ephemeral: true }) 554 | }} 555 | 556 | if (seçim === 'b13') { 557 | await interaction.member.roles.remove(burçroller); 558 | interaction.reply({ content: `Sevgili **__${interaction.guild.name}__** üyesi üzerinizden **burç** rolleri alındı`, ephemeral: true }) 559 | } 560 | } 561 | }) 562 | client.login(info.roletoken) 563 | --------------------------------------------------------------------------------