Showing preview only (746K chars total). Download the full file or copy to clipboard to get everything.
Repository: ariscik/V13-Discord-Bots
Branch: main
Commit: 6e13a94ef600
Files: 177
Total size: 685.2 KB
Directory structure:
gitextract_339nqguu/
├── Main_Botlar/
│ ├── Botlar/
│ │ ├── Guard_I/
│ │ │ ├── Events/
│ │ │ │ ├── banAdd.js
│ │ │ │ ├── botAdd.js
│ │ │ │ ├── channelCreate.js
│ │ │ │ ├── channelDelete.js
│ │ │ │ ├── channelUpdate.js
│ │ │ │ ├── guildUpdate.js
│ │ │ │ ├── kickAdd.js
│ │ │ │ ├── memberPrune.js
│ │ │ │ ├── memberUpdate.js
│ │ │ │ ├── ready.js
│ │ │ │ ├── roleCreate.js
│ │ │ │ ├── roleDelete.js
│ │ │ │ ├── roleUpdate.js
│ │ │ │ └── webhookCreate.js
│ │ │ └── main.js
│ │ ├── Guard_II/
│ │ │ ├── Events/
│ │ │ │ ├── banAdd.js
│ │ │ │ ├── botAdd.js
│ │ │ │ ├── channelCreate.js
│ │ │ │ ├── channelDelete.js
│ │ │ │ ├── channelUpdate.js
│ │ │ │ ├── guildUpdate.js
│ │ │ │ ├── kickAdd.js
│ │ │ │ ├── memberPrune.js
│ │ │ │ ├── memberUpdate.js
│ │ │ │ ├── ready.js
│ │ │ │ ├── roleCreate.js
│ │ │ │ ├── roleDelete.js
│ │ │ │ ├── roleUpdate.js
│ │ │ │ └── webhookCreate.js
│ │ │ └── main.js
│ │ ├── Guard_III/
│ │ │ ├── Events/
│ │ │ │ ├── banAdd.js
│ │ │ │ ├── botAdd.js
│ │ │ │ ├── channelCreate.js
│ │ │ │ ├── channelDelete.js
│ │ │ │ ├── channelUpdate.js
│ │ │ │ ├── guildUpdate.js
│ │ │ │ ├── kickAdd.js
│ │ │ │ ├── memberPrune.js
│ │ │ │ ├── memberUpdate.js
│ │ │ │ ├── ready.js
│ │ │ │ ├── roleCreate.js
│ │ │ │ ├── roleDelete.js
│ │ │ │ ├── roleUpdate.js
│ │ │ │ └── webhookCreate.js
│ │ │ └── main.js
│ │ ├── Guard_IV/
│ │ │ ├── Events/
│ │ │ │ ├── channelDelete.js
│ │ │ │ ├── guildUpdate.js
│ │ │ │ ├── ready.js
│ │ │ │ └── roleDelete.js
│ │ │ └── main.js
│ │ ├── Moderation/
│ │ │ ├── Aris.js
│ │ │ ├── Commands/
│ │ │ │ ├── Aris/
│ │ │ │ │ ├── autoscan.js
│ │ │ │ │ ├── eval.js
│ │ │ │ │ ├── pm2.js
│ │ │ │ │ ├── reboot.js
│ │ │ │ │ ├── templateCommand.js
│ │ │ │ │ └── test.js
│ │ │ │ ├── CoinTask/
│ │ │ │ │ ├── give-removeTasks.js
│ │ │ │ │ ├── senkronRank.js
│ │ │ │ │ ├── setRank.js
│ │ │ │ │ ├── taggeds.js
│ │ │ │ │ ├── tagges.js
│ │ │ │ │ ├── tasks.js
│ │ │ │ │ ├── topTaggeds.js
│ │ │ │ │ └── yStat.js
│ │ │ │ ├── Founder/
│ │ │ │ │ ├── clear.js
│ │ │ │ │ ├── denetim.js
│ │ │ │ │ ├── herkeserolver.js
│ │ │ │ │ ├── inviters.js
│ │ │ │ │ ├── menu.js
│ │ │ │ │ ├── rolbilgi.js
│ │ │ │ │ └── talentPerm.js
│ │ │ │ ├── Global/
│ │ │ │ │ ├── afk.js
│ │ │ │ │ ├── avatar.js
│ │ │ │ │ ├── bilgi.js
│ │ │ │ │ ├── booster.js
│ │ │ │ │ ├── cek.js
│ │ │ │ │ ├── git.js
│ │ │ │ │ ├── say.js
│ │ │ │ │ └── yardım.js
│ │ │ │ ├── Guard/
│ │ │ │ │ ├── gmenü.js
│ │ │ │ │ ├── kanalkur.js
│ │ │ │ │ ├── rolkur.js
│ │ │ │ │ └── whitelist.js
│ │ │ │ ├── Guild/
│ │ │ │ │ ├── guildInfo.js
│ │ │ │ │ ├── guildSettings.js
│ │ │ │ │ ├── kur.js
│ │ │ │ │ ├── setting.js
│ │ │ │ │ ├── setup.js
│ │ │ │ │ └── url.js
│ │ │ │ ├── Managment/
│ │ │ │ │ ├── control.js
│ │ │ │ │ ├── giveaway.js
│ │ │ │ │ ├── rolAddRemove.js
│ │ │ │ │ ├── rollog.js
│ │ │ │ │ ├── snipe.js
│ │ │ │ │ ├── voiceControl.js
│ │ │ │ │ └── ysay.js
│ │ │ │ ├── Market/
│ │ │ │ │ ├── coin.js
│ │ │ │ │ ├── coinekle.js
│ │ │ │ │ ├── coinflip.js
│ │ │ │ │ ├── daily.js
│ │ │ │ │ ├── hero.js
│ │ │ │ │ ├── market.js
│ │ │ │ │ ├── slot.js
│ │ │ │ │ ├── topcoin.js
│ │ │ │ │ └── transfer.js
│ │ │ │ ├── Punishment/
│ │ │ │ │ ├── ban.js
│ │ │ │ │ ├── cMute.js
│ │ │ │ │ ├── jail.js
│ │ │ │ │ ├── punishInfo.js
│ │ │ │ │ ├── sicil.js
│ │ │ │ │ ├── unBan.js
│ │ │ │ │ ├── unJail.js
│ │ │ │ │ ├── unMute.js
│ │ │ │ │ ├── unVMute.js
│ │ │ │ │ └── vMute.js
│ │ │ │ ├── Register/
│ │ │ │ │ ├── info.js
│ │ │ │ │ ├── man.js
│ │ │ │ │ ├── name.js
│ │ │ │ │ ├── names.js
│ │ │ │ │ ├── unregister.js
│ │ │ │ │ └── woman.js
│ │ │ │ └── Stat/
│ │ │ │ ├── invite.js
│ │ │ │ ├── stat.js
│ │ │ │ ├── topInvite.js
│ │ │ │ └── topStat.js
│ │ │ ├── Events/
│ │ │ │ ├── buttonSystems.js
│ │ │ │ ├── coinEvent.js
│ │ │ │ ├── guildMemberAdd.js
│ │ │ │ ├── guildMemberRemove.js
│ │ │ │ ├── guildMemberUpdate.js
│ │ │ │ ├── inviteCreate.js
│ │ │ │ ├── inviteDelete.js
│ │ │ │ ├── menuInteraction.js
│ │ │ │ ├── messageCreate.js
│ │ │ │ ├── messageDelete.js
│ │ │ │ ├── messageEvent.js
│ │ │ │ ├── messageStats.js
│ │ │ │ ├── ready.js
│ │ │ │ ├── rewardChat.js
│ │ │ │ ├── rewardVoice.js
│ │ │ │ ├── talentPerms.js
│ │ │ │ ├── userUpdate.js
│ │ │ │ ├── userUpdates.js
│ │ │ │ ├── voiceLog.js
│ │ │ │ └── voiceStats.js
│ │ │ ├── Panel/
│ │ │ │ └── views/
│ │ │ │ ├── ek/
│ │ │ │ │ └── header.ejs
│ │ │ │ ├── hata.ejs
│ │ │ │ ├── index.ejs
│ │ │ │ ├── pages/
│ │ │ │ │ ├── bot.ejs
│ │ │ │ │ ├── cezalar.ejs
│ │ │ │ │ ├── gorev.ejs
│ │ │ │ │ ├── guard.ejs
│ │ │ │ │ ├── menu.ejs
│ │ │ │ │ ├── moderation.ejs
│ │ │ │ │ ├── register.ejs
│ │ │ │ │ ├── role.ejs
│ │ │ │ │ └── settings.ejs
│ │ │ │ ├── panel.ejs
│ │ │ │ └── panelhata.ejs
│ │ │ ├── dash.js
│ │ │ └── main.js
│ │ └── main.js
│ ├── Helpers/
│ │ ├── Backup.js
│ │ ├── BackupFunction.js
│ │ ├── Command.js
│ │ ├── Handler.js
│ │ ├── Logger.js
│ │ ├── Mongo.js
│ │ ├── Schemas.js
│ │ ├── Utils.js
│ │ └── function.js
│ └── Settings/
│ ├── config.json
│ └── emojis.json
├── README.md
├── app.config.js
└── package.json
================================================
FILE CONTENTS
================================================
================================================
FILE: Main_Botlar/Botlar/Guard_I/Events/banAdd.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
class guildBanAdd {
Event = "guildBanAdd"
async run(ban) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.serverGuard === true) try {
let entry = await ban.guild.fetchAuditLogs({ type: 'MEMBER_BAN_ADD' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
let islemyapan = ban.guild.members.cache.get(entry.executor.id);
const channels = client.channels.cache.get(aris.guardLog)
if (!channels) return;
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageButton().setCustomId('cezalikaldır').setLabel("Cezalı Kaldır!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('guvenliekle').setLabel("Güvenli Listeye Ekle!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('ytleriac').setLabel("Yetkileri Tekrar Aç!").setStyle('DANGER'));
let log = await channels.send({ content: `@everyone **Şüpheli İşlem Tespit Edildi!**\n\n**İŞLEM :** \`İZİNSİZ ÜYE BANLAMA İŞLEMİ!\`\n\n**Üye Banlayan Kullanıcı: **${entry.executor} (\`${entry.executor.tag} - ${entry.executor.id}\`)\n**Banlanan Üye: **${ban.user} (\`${ban.user.tag} - ${ban.user.id}\`)\n\n**Yapılan İşlem :** ${islemyapan.manageable ? "Başarıyla cezalıya atıldı" : "Cezalıya Atılamadı"} - Kişiyi cezalıya attım ve banı açtım!`, components: [row] })
var filter = (button) => config.Founders.some(x => x == button.user.id); const collector = log.createMessageComponentCollector({ filter }); collector.on('collect', async (button, user) => { const permisi = await permis.findOne({ guildID: config.guildID }); if (button.customId === "cezalikaldır") { islemyapan.roles.set([aris.unregisterRole], `Buton üzerinden cezalıdan çıkarıldı!`); button.reply(`Merhaba ${button.user}! ${entry.executor} kişisinin cezası kaldırıldı!`) } if (button.customId === "guvenliekle") { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { WhiteListMembers: entry.executor.id } }, { upsert: true }); button.reply(`Merhaba ${button.user}! Başarılı bir şekilde ${entry.executor} kişisini güvenli listeye ekledim!`) }; if(button.customId === "ytleriac") { button.reply(`Merhaba ${button.user}! Yetkileri tekrar açtım!`); permisi.roller.forEach((permission) => { const role = button.guild.roles.cache.get(permission.rol); if (role) role.setPermissions(permission.perm); }); } })
} catch (error) { console.log(`Etkinlik : Ban Add - Hata : ` + error) }
}
}
module.exports = guildBanAdd
================================================
FILE: Main_Botlar/Botlar/Guard_I/Events/botAdd.js
================================================
const { ariscik } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
class guildMemberAdd {
Event = "guildMemberAdd"
async run(member) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.serverGuard === true) try {
const entry = await member.guild.fetchAuditLogs({ type: 'BOT_ADD' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
let islemyapan = member.guild.members.cache.get(entry.executor.id);
const channels = client.channels.cache.get(aris.guardLog)
if (!channels) return;
const row = new Discord.MessageActionRow().addComponents( new Discord.MessageButton().setCustomId('yasakkaldir').setLabel("Yasağı Kaldır!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('guvenliekle').setLabel("Güvenli Listeye Ekle!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('botbanac').setLabel("Botun Banını Aç!").setStyle('PRIMARY') );
let log = await channels.send({ content: `@everyone **Şüpheli İşlem Tespit Edildi!**\n\n**İŞLEM :** \`İZİNSİZ BOT EKLEME İŞLEMİ!\`\n\n**Bot Ekleyen Kullanıcı: **${entry.executor} (\`${entry.executor.tag} - ${entry.executor.id}\`)\n**Eklenen Bot: ** ${member} \`${member.id}\`\n\n**Yapılan İşlem :** ${islemyapan.bannable ? "Başarıyla yasaklandı" : "Yasaklanamadı"} - Botu Banladım!`, components: [row] })
const collector = log.createMessageComponentCollector({ }); collector.on('collect', async (button, user) => { if(button.customId === "yasakkaldir") { button.guild.members.unban(entry.executor.id, ` Buton Üzerinden Kaldırıldı!` ); button.reply(`Merhaba ${button.user}! ${entry.executor} kişisinin banı kaldırıldı!`) } if(button.customId === "guvenliekle") { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { WhiteListMembers: entry.executor.id } }, { upsert: true }); button.reply(`Merhaba ${button.user}! Başarılı bir şekilde ${entry.executor} kişisini güvenli listeye ekledim!`) }; if (button.customId === "botbanac") { button.reply(`Merhaba ${button.user}! ${member} adlı botun banı başarılı bir şekilde açıldı!`); button.guild.members.unban(member.id, ` Buton Üzerinden Bot Banı Kaldırıldı!` ); } })
} catch (error) { console.log(`Etkinlik : Bot Add - Hata : ` + error) }
}
}
module.exports = guildMemberAdd
================================================
FILE: Main_Botlar/Botlar/Guard_I/Events/channelCreate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
class channelCreate {
Event = "channelCreate"
async run(channel) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.channelGuard === true) try {
let entry = await channel.guild.fetchAuditLogs({ type: 'CHANNEL_CREATE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
let islemyapan = channel.guild.members.cache.get(entry.executor.id);
const channels = client.channels.cache.get(aris.guardLog)
if (!channels) return;
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageButton().setCustomId('yasakkaldir').setLabel("Yasağı Kaldır!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('guvenliekle').setLabel("Güvenli Listeye Ekle!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('ytleriac').setLabel("Yetkileri Tekrar Aç!").setStyle('DANGER'));
let log = await channels.send({ content: `@everyone **Şüpheli İşlem Tespit Edildi!**\n\n**İŞLEM :** \`KANAL OLUŞTURMA İŞLEMİ!\`\n\n**Kanalı Oluşturan Kullanıcı: **${entry.executor} (\`${entry.executor.tag} - ${entry.executor.id}\`)\n\n**Yapılan İşlem :** ${islemyapan.bannable ? "Başarıyla yasaklandı" : "Yasaklanamadı"} - Kanalı sildim!`, components: [row] })
var filter = (button) => config.Founders.some(x => x == button.user.id); const collector = log.createMessageComponentCollector({ filter }); collector.on('collect', async (button, user) => { const permisi = await permis.findOne({ guildID: config.guildID }); if (button.customId === "yasakkaldir") { button.guild.members.unban(entry.executor.id, ` Buton Üzerinden Kaldırıldı!`); button.reply(`Merhaba ${button.user}! ${entry.executor} kişisinin banı kaldırıldı!`) } if (button.customId === "guvenliekle") { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { WhiteListMembers: entry.executor.id } }, { upsert: true }); button.reply(`Merhaba ${button.user}! Başarılı bir şekilde ${entry.executor} kişisini güvenli listeye ekledim!`) }; if(button.customId === "ytleriac") { button.reply(`Merhaba ${button.user}! Yetkileri tekrar açtım!`); permisi.roller.forEach((permission) => { const role = button.guild.roles.cache.get(permission.rol); if (role) role.setPermissions(permission.perm); }); } })
} catch (error) { console.log(`Etkinlik : Channel Create - Hata : ` + error) }
}
}
module.exports = channelCreate
================================================
FILE: Main_Botlar/Botlar/Guard_I/Events/channelDelete.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
class channelDelete {
Event = "channelDelete"
async run(channel) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.channelGuard === true) try {
let entry = await channel.guild.fetchAuditLogs({ type: 'CHANNEL_DELETE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
let islemyapan = channel.guild.members.cache.get(entry.executor.id);
const channels = client.channels.cache.get(aris.guardLog)
if (!channels) return;
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageButton().setCustomId('yasakkaldir').setLabel("Yasağı Kaldır!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('guvenliekle').setLabel("Güvenli Listeye Ekle!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('ytleriac').setLabel("Yetkileri Tekrar Aç!").setStyle('DANGER'));
let log = await channels.send({ content: `@everyone **Şüpheli İşlem Tespit Edildi!**\n\n**İŞLEM :** \`KANAL SİLME İŞLEMİ!\`\n\n**Kanalı Silen Kullanıcı: **${entry.executor} (\`${entry.executor.tag} - ${entry.executor.id}\`)\n**Silinen Kanal: ** \`${channel.name} - ${channel.id}\`\n\n**Yapılan İşlem :** ${islemyapan.bannable ? "Başarıyla yasaklandı" : "Yasaklanamadı"} - Kanal açıp izinleri düzenleyip, config dosyasına gerekli ID'ler girilmeye başlandı!`, components: [row] })
var filter = (button) => config.Founders.some(x => x == button.user.id); const collector = log.createMessageComponentCollector({ filter }); collector.on('collect', async (button, user) => { const permisi = await permis.findOne({ guildID: config.guildID }); if (button.customId === "yasakkaldir") { button.guild.members.unban(entry.executor.id, ` Buton Üzerinden Kaldırıldı!`); button.reply(`Merhaba ${button.user}! ${entry.executor} kişisinin banı kaldırıldı!`) } if (button.customId === "guvenliekle") { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { WhiteListMembers: entry.executor.id } }, { upsert: true }); button.reply(`Merhaba ${button.user}! Başarılı bir şekilde ${entry.executor} kişisini güvenli listeye ekledim!`) }; if(button.customId === "ytleriac") { button.reply(`Merhaba ${button.user}! Yetkileri tekrar açtım!`); permisi.roller.forEach((permission) => { const role = button.guild.roles.cache.get(permission.rol); if (role) role.setPermissions(permission.perm); }); } })
} catch (error) { console.log(`Etkinlik : Channel Delete - Hata : ` + error) }
}
}
module.exports = channelDelete
================================================
FILE: Main_Botlar/Botlar/Guard_I/Events/channelUpdate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
class channelUpdate {
Event = "channelUpdate"
async run(newChannel, oldChannel) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.channelGuard === true) try {
let entry = await newChannel.guild.fetchAuditLogs({ type: 'CHANNEL_UPDATE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || !newChannel.guild.channels.cache.has(newChannel.id) || await guvenli(entry.executor.id)) return;
let islemyapan = newChannel.guild.members.cache.get(entry.executor.id);
const channels = client.channels.cache.get(aris.guardLog)
if (!channels) return;
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageButton().setCustomId('yasakkaldir').setLabel("Yasağı Kaldır!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('guvenliekle').setLabel("Güvenli Listeye Ekle!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('ytleriac').setLabel("Yetkileri Tekrar Aç!").setStyle('DANGER'));
let log = await channels.send({ content: `@everyone **Şüpheli İşlem Tespit Edildi!**\n\n**İŞLEM :** \`KANAL GÜNCELLEME İŞLEMİ!\`\n\n**Kanalı Güncelleyen Kullanıcı: **${entry.executor} (\`${entry.executor.tag} - ${entry.executor.id}\`)\n**Güncellenen Kanal: ** \`${oldChannel.name}\`\n\n**Yapılan İşlem :** ${islemyapan.bannable ? "Başarıyla yasaklandı" : "Yasaklanamadı"} - Kanalı eski haline getirdim!`, components: [row] })
var filter = (button) => config.Founders.some(x => x == button.user.id); const collector = log.createMessageComponentCollector({ filter }); collector.on('collect', async (button, user) => { const permisi = await permis.findOne({ guildID: config.guildID }); if (button.customId === "yasakkaldir") { button.guild.members.unban(entry.executor.id, ` Buton Üzerinden Kaldırıldı!`); button.reply(`Merhaba ${button.user}! ${entry.executor} kişisinin banı kaldırıldı!`) } if (button.customId === "guvenliekle") { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { WhiteListMembers: entry.executor.id } }, { upsert: true }); button.reply(`Merhaba ${button.user}! Başarılı bir şekilde ${entry.executor} kişisini güvenli listeye ekledim!`) }; if(button.customId === "ytleriac") { button.reply(`Merhaba ${button.user}! Yetkileri tekrar açtım!`); permisi.roller.forEach((permission) => { const role = button.guild.roles.cache.get(permission.rol); if (role) role.setPermissions(permission.perm); }); } })
} catch (error) { console.log(`Etkinlik : Channel Update - Hata : ` + error) }
}
}
module.exports = channelUpdate
================================================
FILE: Main_Botlar/Botlar/Guard_I/Events/guildUpdate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
const { ytKapat } = require("../../../Helpers/function")
class guildUpdate {
Event = "guildUpdate"
async run(oldGuild, newGuild) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.urlGuard === true) try {
const entry = await newGuild.fetchAuditLogs({ type: 'GUILD_UPDATE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
let islemyapan = newGuild.members.cache.get(entry.executor.id);
if (aris.tacGuard === true) {
let banlanacak = newGuild.members.cache.get(entry.executor.id); if (!banlanacak.bannable) { const tokenClient = global.self = new Self.Client(); tokenClient.login(config.tokens.tacToken); tokenClient.on("ready", async () => { console.log(`Taç Hesabına Girip Yapıldı!`); tokenClient.guilds.cache.get(config.guildID).members.ban(entry.executor.id, { reason: `Bot Üstü İle Banlandı.` }); if (channel) channel.send({ embeds: [new Discord.MessageEmbed().setDescription(`${banlanacak} kişisi bot üstüne sahip olduğu için taç hesabından giriş yapılarak ban atıldı!`)] }) }) } else { newGuild.guild.members.ban(entry.executor.id, { reason: "Sunucu Güncellediği İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Guild Update \nHata: ` + error + ``)) }
} else { newGuild.members.ban(entry.executor.id, { reason: "Sunucu Güncellediği İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Guild Update \nHata: ` + error + ``)) }
ytKapat(config.guildID)
if (newGuild.vanityURLCode && (newGuild.vanityURLCode !== config.guildURL)) {
request({
url: `https://discord.com/api/v6/guilds/${newGuild.id}/vanity-url`,
body: {
code: config.guildURL
},
json: true,
method: 'PATCH',
headers: {
"Authorization": `Bot ${client.token}`
}
}, (err, res, body) => {
if (err) {
console.log(`Etkinlik: ${module.exports.name} \nHata: ` + err + ``)
}
});
}
if (oldGuild.banner !== newGuild.banner) {
await newGuild.setBanner(oldGuild.bannerURL({ size: 4096 }));
}
if (oldGuild.icon !== newGuild.icon) {
await newGuild.setIcon(oldGuild.iconURL({ size: 4096, dynamic: true }));
}
await newGuild.edit({
name: oldGuild.name,
region: oldGuild.region,
verificationLevel: oldGuild.verificationLevel,
explicitContentFilter: oldGuild.explicitContentFilter,
afkChannel: oldGuild.afkChannel,
systemChannel: oldGuild.systemChannel,
afkTimeout: oldGuild.afkTimeout,
rulesChannel: oldGuild.rulesChannel,
publicUpdatesChannel: oldGuild.publicUpdatesChannel,
preferredLocale: oldGuild.preferredLocale,
defaultMessageNotifications: oldGuild.defaultMessageNotifications
});
let url;
if (newGuild.vanityURLCode) { url = newGuild.vanityURLCode }
else { url = "YOK" }
let eurl;
if (oldGuild.vanityURLCode) { eurl = oldGuild.vanityURLCode }
else { eurl = "YOK" }
const channel = client.channels.cache.get(aris.guardLog)
if (!channel) return;
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageButton().setCustomId('yasakkaldir').setLabel("Yasağı Kaldır!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('guvenliekle').setLabel("Güvenli Listeye Ekle!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('ytleriac').setLabel("Yetkileri Tekrar Aç!").setStyle('DANGER'));
let log = await channel.send({ content: `@everyone **Şüpheli İşlem Tespit Edildi!**\n\n**İŞLEM :** SUNUCU GÜNCELLEME İŞLEMİ!\n\n**Sunucuyu Güncelleyen Kullanıcı: **${entry.executor} (\`${entry.executor.tag} - ${entry.executor.id}\`)\`\n\n**Yapılan İşlem :** ${islemyapan.bannable ? "Başarıyla yasaklandı" : "Yasaklanamadı"} - Sunucuyu Eski Haline Getirdim!`, components: [row] })
var filter = (button) => config.Founders.some(x => x == button.user.id); const collector = log.createMessageComponentCollector({ filter }); collector.on('collect', async (button, user) => { const permisi = await permis.findOne({ guildID: config.guildID }); if (button.customId === "yasakkaldir") { button.guild.members.unban(entry.executor.id, ` Buton Üzerinden Kaldırıldı!`); button.reply(`Merhaba ${button.user}! ${entry.executor} kişisinin banı kaldırıldı!`) } if (button.customId === "guvenliekle") { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { WhiteListMembers: entry.executor.id } }, { upsert: true }); button.reply(`Merhaba ${button.user}! Başarılı bir şekilde ${entry.executor} kişisini güvenli listeye ekledim!`) }; if(button.customId === "ytleriac") { button.reply(`Merhaba ${button.user}! Yetkileri tekrar açtım!`); permisi.roller.forEach((permission) => { const role = button.guild.roles.cache.get(permission.rol); if (role) role.setPermissions(permission.perm); }); } })
} catch (error) { console.log(`Etkinlik : Guild Update - Hata : ` + error) }
}
}
module.exports = guildUpdate
================================================
FILE: Main_Botlar/Botlar/Guard_I/Events/kickAdd.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
class guildMemberRemove {
Event = "guildMemberRemove"
async run(member) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.serverGuard === true) try {
let entry = await member.guild.fetchAuditLogs({ type: 'MEMBER_KICK' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
let islemyapan = member.guild.members.cache.get(entry.executor.id);
const channels = client.channels.cache.get(aris.guardLog)
if (!channels) return;
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageButton().setCustomId('cezalikaldır').setLabel("Cezalı Kaldır!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('guvenliekle').setLabel("Güvenli Listeye Ekle!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('ytleriac').setLabel("Yetkileri Tekrar Aç!").setStyle('DANGER'));
let log = await channels.send({ content: `@everyone **Şüpheli İşlem Tespit Edildi!**\n\n**İŞLEM :** \`İZİNSİZ ÜYE KİCKLEME İŞLEMİ!\`\n\n**Üye Kickleyen Kullanıcı: **${entry.executor} (\`${entry.executor.tag} - ${entry.executor.id}\`)\n**Kicklenen Üye: **${member} (\`${member.user.tag} - ${member.user.id}\`)\n\n**Yapılan İşlem :** ${islemyapan.manageable ? "Başarıyla cezalıya atıldı" : "Cezalıya Atılamadı"} - Kişiyi cezalıya attım!`, components: [row] })
var filter = (button) => config.Founders.some(x => x == button.user.id); const collector = log.createMessageComponentCollector({ filter }); collector.on('collect', async (button, user) => { const permisi = await permis.findOne({ guildID: config.guildID }); if (button.customId === "cezalikaldır") { islemyapan.roles.set([aris.unregisterRole], `Buton üzerinden cezalıdan çıkarıldı!`); button.reply(`Merhaba ${button.user}! ${entry.executor} kişisinin cezası kaldırıldı!`) } if (button.customId === "guvenliekle") { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { WhiteListMembers: entry.executor.id } }, { upsert: true }); button.reply(`Merhaba ${button.user}! Başarılı bir şekilde ${entry.executor} kişisini güvenli listeye ekledim!`) }; if(button.customId === "ytleriac") { button.reply(`Merhaba ${button.user}! Yetkileri tekrar açtım!`); permisi.roller.forEach((permission) => { const role = button.guild.roles.cache.get(permission.rol); if (role) role.setPermissions(permission.perm); }); } })
} catch (error) { console.log(`Etkinlik : Kick Add - Hata : ` + error) }
}
}
module.exports = guildMemberRemove
================================================
FILE: Main_Botlar/Botlar/Guard_I/Events/memberPrune.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
class guildMemberRemove {
Event = "guildMemberRemove"
async run(member) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.serverGuard === true) try {
const entry = await member.guild.fetchAuditLogs({ type: 'MEMBER_PRUNE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
let islemyapan = member.guild.members.cache.get(entry.executor.id);
const channels = client.channels.cache.get(aris.guardLog)
if (!channels) return;
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageButton().setCustomId('yasakkaldir').setLabel("Yasağı Kaldır!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('guvenliekle').setLabel("Güvenli Listeye Ekle!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('ytleriac').setLabel("Yetkileri Tekrar Aç!").setStyle('DANGER'));
let log = await channels.send({ content: `@everyone **Şüpheli İşlem Tespit Edildi!**\n\n**İŞLEM :** \`ÜYELERİ ÇIKARMA İŞLEMİ!\`\n\n**Üyeleri Çıkaran Kullanıcı: **${entry.executor} (\`${entry.executor.tag} - ${entry.executor.id}\`)\`\n\n**Yapılan İşlem :** ${islemyapan.bannable ? "Başarıyla yasaklandı" : "Yasaklanamadı"}`, components: [row] })
var filter = (button) => config.Founders.some(x => x == button.user.id); const collector = log.createMessageComponentCollector({ filter }); collector.on('collect', async (button, user) => { const permisi = await permis.findOne({ guildID: config.guildID }); if (button.customId === "yasakkaldir") { button.guild.members.unban(entry.executor.id, ` Buton Üzerinden Kaldırıldı!`); button.reply(`Merhaba ${button.user}! ${entry.executor} kişisinin banı kaldırıldı!`) } if (button.customId === "guvenliekle") { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { WhiteListMembers: entry.executor.id } }, { upsert: true }); button.reply(`Merhaba ${button.user}! Başarılı bir şekilde ${entry.executor} kişisini güvenli listeye ekledim!`) }; if(button.customId === "ytleriac") { button.reply(`Merhaba ${button.user}! Yetkileri tekrar açtım!`); permisi.roller.forEach((permission) => { const role = button.guild.roles.cache.get(permission.rol); if (role) role.setPermissions(permission.perm); }); } })
} catch (error) { console.log(`Etkinlik : Member Prune - Hata : ` + error) }
}
}
module.exports = guildMemberRemove
================================================
FILE: Main_Botlar/Botlar/Guard_I/Events/memberUpdate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
class guildMemberUpdate {
Event = "guildMemberUpdate"
async run(newMember, oldMember) {
const aris = await ariscik.findOne({ guildID: config.guildID })
const yetkiPermleri = ["8", "268435456", "16", "536870912", "4", "2", "134217728", "1073741824", "536870912"];
if (aris.roleGuard === true) try {
let entry = await newMember.guild.fetchAuditLogs({ type: 'MEMBER_ROLE_UPDATE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
let islemyapan = newMember.guild.members.cache.get(entry.executor.id);
if (yetkiPermleri.some(p => !oldMember.permissions.has(p) && newMember.permissions.has(p))) {
newMember.roles.set(oldMember.roles.cache.map(r => r.id));
const channels = client.channels.cache.get(aris.guardLog)
if (!channels) return;
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageButton().setCustomId('yasakkaldir').setLabel("Yasağı Kaldır!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('guvenliekle').setLabel("Güvenli Listeye Ekle!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('ytleriac').setLabel("Yetkileri Tekrar Aç!").setStyle('DANGER'));
let log = await channels.send({ content: `@everyone **Şüpheli İşlem Tespit Edildi!**\n\n**İŞLEM :** \`ÜYEYE YETKİ VERME İŞLEMİ!\`\n\n**Yetki Veren Kullanıcı: **${entry.executor} (\`${entry.executor.tag} - ${entry.executor.id}\`)\n**Yetki Verilen Üye: **${newMember} (\`${newMember.user.tag} - ${newMember.id}\`)\n\n**Yapılan İşlem :** ${islemyapan.bannable ? "Başarıyla yasaklandı" : "Yasaklanamadı"} - Yetkiyi Geri Aldım!`, components: [row] })
var filter = (button) => config.Founders.some(x => x == button.user.id); const collector = log.createMessageComponentCollector({ filter }); collector.on('collect', async (button, user) => { const permisi = await permis.findOne({ guildID: config.guildID }); if (button.customId === "yasakkaldir") { button.guild.members.unban(entry.executor.id, ` Buton Üzerinden Kaldırıldı!`); button.reply(`Merhaba ${button.user}! ${entry.executor} kişisinin banı kaldırıldı!`) } if (button.customId === "guvenliekle") { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { WhiteListMembers: entry.executor.id } }, { upsert: true }); button.reply(`Merhaba ${button.user}! Başarılı bir şekilde ${entry.executor} kişisini güvenli listeye ekledim!`) }; if (button.customId === "ytleriac") { button.reply(`Merhaba ${button.user}! Yetkileri tekrar açtım!`); permisi.roller.forEach((permission) => { const role = button.guild.roles.cache.get(permission.rol); if (role) role.setPermissions(permission.perm); }); } })
};
} catch (error) { console.log(`Etkinlik : Member Update - Hata : ` + error) }
}
}
module.exports = guildMemberUpdate
================================================
FILE: Main_Botlar/Botlar/Guard_I/Events/ready.js
================================================
const Backup = require("../../../Helpers/Backup")
const { ariscik } = require("../../../Helpers/Schemas")
class Ready {
Event = "ready"
async run() {
setInterval(async () => {
const aris = await ariscik.findOne({ guildID: config.guildID })
const channel = client.channels.cache.get(aris.botVoiceChannel);
voice.joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
adapterCreator: channel.guild.voiceAdapterCreator,
});
}, 600 * 1000);
Backup.RoleBackup();
setInterval(() => {
Backup.RoleBackup();
}, 1000 * 60 * 60 * 1);
}
}
module.exports = Ready
================================================
FILE: Main_Botlar/Botlar/Guard_I/Events/roleCreate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
class roleCreate {
Event = "roleCreate"
async run(role) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.roleGuard === true) try {
const entry = await role.guild.fetchAuditLogs({ limit: 1, type: 'ROLE_CREATE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
let islemyapan = role.guild.members.cache.get(entry.executor.id);
const channel = client.channels.cache.get(aris.guardLog)
if (!channel) return;
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageButton().setCustomId('yasakkaldir').setLabel("Yasağı Kaldır!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('guvenliekle').setLabel("Güvenli Listeye Ekle!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('ytleriac').setLabel("Yetkileri Tekrar Aç!").setStyle('DANGER'));
let log = await channel.send({ content: `@everyone **Şüpheli İşlem Tespit Edildi!**\n\n**İŞLEM :** ROL OLUŞTURMA İŞLEMİ!\n\n**Rolü Oluşturan Kullanıcı: **${entry.executor} (\`${entry.executor.tag} - ${entry.executor.id}\`)\`\n\n**Yapılan İşlem :** ${islemyapan.bannable ? "Başarıyla yasaklandı" : "Yasaklanamadı"} - Rolü sildim!`, components: [row] })
var filter = (button) => config.Founders.some(x => x == button.user.id); const collector = log.createMessageComponentCollector({ filter }); collector.on('collect', async (button, user) => { const permisi = await permis.findOne({ guildID: config.guildID }); if (button.customId === "yasakkaldir") { button.guild.members.unban(entry.executor.id, ` Buton Üzerinden Kaldırıldı!`); button.reply(`Merhaba ${button.user}! ${entry.executor} kişisinin banı kaldırıldı!`) } if (button.customId === "guvenliekle") { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { WhiteListMembers: entry.executor.id } }, { upsert: true }); button.reply(`Merhaba ${button.user}! Başarılı bir şekilde ${entry.executor} kişisini güvenli listeye ekledim!`) }; if(button.customId === "ytleriac") { button.reply(`Merhaba ${button.user}! Yetkileri tekrar açtım!`); permisi.roller.forEach((permission) => { const role = button.guild.roles.cache.get(permission.rol); if (role) role.setPermissions(permission.perm); }); } })
} catch (error) { console.log(`Etkinlik : Role Create - Hata : ` + error) }
}
}
module.exports = roleCreate
================================================
FILE: Main_Botlar/Botlar/Guard_I/Events/roleDelete.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
class roleDelete {
Event = "roleDelete"
async run(role) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.roleGuard === true) try {
const entry = await role.guild.fetchAuditLogs({ limit: 1, type: 'ROLE_DELETE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
let islemyapan = role.guild.members.cache.get(entry.executor.id);
const channel = client.channels.cache.get(aris.guardLog)
if (!channel) return;
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageButton().setCustomId('yasakkaldir').setLabel("Yasağı Kaldır!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('guvenliekle').setLabel("Güvenli Listeye Ekle!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('ytleriac').setLabel("Yetkileri Tekrar Aç!").setStyle('DANGER'));
let log = await channel.send({ content: `@everyone **Şüpheli İşlem Tespit Edildi!**\n\n**İŞLEM :** ROL SİLME İŞLEMİ!\n\n**Rolü Silen Kullanıcı: **${entry.executor} (\`${entry.executor.tag} - ${entry.executor.id}\`)\n**Silinen Rol: ** \`${role.name} - ${role.id}\`\n\n**Yapılan İşlem :** ${islemyapan.bannable ? "Başarıyla yasaklandı" : "Yasaklanamadı"} - Rol açılıp üyelere dağıtılıp, config dosyasına gerekli ID'ler girilmeye başlandı!`, components: [row] })
var filter = (button) => config.Founders.some(x => x == button.user.id); const collector = log.createMessageComponentCollector({ filter }); collector.on('collect', async (button, user) => { const permisi = await permis.findOne({ guildID: config.guildID }); if (button.customId === "yasakkaldir") { button.guild.members.unban(entry.executor.id, ` Buton Üzerinden Kaldırıldı!`); button.reply(`Merhaba ${button.user}! ${entry.executor} kişisinin banı kaldırıldı!`) } if (button.customId === "guvenliekle") { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { WhiteListMembers: entry.executor.id } }, { upsert: true }); button.reply(`Merhaba ${button.user}! Başarılı bir şekilde ${entry.executor} kişisini güvenli listeye ekledim!`) }; if(button.customId === "ytleriac") { button.reply(`Merhaba ${button.user}! Yetkileri tekrar açtım!`); permisi.roller.forEach((permission) => { const role = button.guild.roles.cache.get(permission.rol); if (role) role.setPermissions(permission.perm); }); } })
} catch (error) { console.log(`Etkinlik : Role Delete - Hata : ` + error) }
}
}
module.exports = roleDelete
================================================
FILE: Main_Botlar/Botlar/Guard_I/Events/roleUpdate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
class roleUpdate {
Event = "roleUpdate"
async run(oldRole, newRole) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.roleGuard === true) try {
const entry = await newRole.guild.fetchAuditLogs({ limit: 1, type: 'ROLE_CREATE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
let islemyapan = newRole.guild.members.cache.get(entry.executor.id);
const channel = client.channels.cache.get(aris.guardLog)
if (!channel) return;
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageButton().setCustomId('yasakkaldir').setLabel("Yasağı Kaldır!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('guvenliekle').setLabel("Güvenli Listeye Ekle!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('ytleriac').setLabel("Yetkileri Tekrar Aç!").setStyle('DANGER'));
let log = await channel.send({ content: `@everyone **Şüpheli İşlem Tespit Edildi!**\n\n**İŞLEM :** ROL GÜNCELLEME İŞLEMİ!\n\n**Rolü Güncelleyen Kullanıcı: **${entry.executor} (\`${entry.executor.tag} - ${entry.executor.id}\`)\`\n**Güncellenen Rol: ** ${oldRole.name}\n\n**Yapılan İşlem :** ${islemyapan.bannable ? "Başarıyla yasaklandı" : "Yasaklanamadı"} - Rolü Eski Haline Getirdim!`, components: [row] })
var filter = (button) => config.Founders.some(x => x == button.user.id); const collector = log.createMessageComponentCollector({ filter }); collector.on('collect', async (button, user) => { const permisi = await permis.findOne({ guildID: config.guildID }); if (button.customId === "yasakkaldir") { button.guild.members.unban(entry.executor.id, ` Buton Üzerinden Kaldırıldı!`); button.reply(`Merhaba ${button.user}! ${entry.executor} kişisinin banı kaldırıldı!`) } if (button.customId === "guvenliekle") { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { WhiteListMembers: entry.executor.id } }, { upsert: true }); button.reply(`Merhaba ${button.user}! Başarılı bir şekilde ${entry.executor} kişisini güvenli listeye ekledim!`) }; if(button.customId === "ytleriac") { button.reply(`Merhaba ${button.user}! Yetkileri tekrar açtım!`); permisi.roller.forEach((permission) => { const role = button.guild.roles.cache.get(permission.rol); if (role) role.setPermissions(permission.perm); }); } })
} catch (error) { console.log(`Etkinlik : Role Update - Hata : ` + error) }
}
}
module.exports = roleUpdate
================================================
FILE: Main_Botlar/Botlar/Guard_I/Events/webhookCreate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
class webhookUpdate {
Event = "webhookUpdate"
async run(channel) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.serverGuard === true) try {
const entry = await channel.guild.fetchAuditLogs({ type: 'WEBHOOK_CREATE' }).then(audit => audit.entries.first())
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
let islemyapan = channel.guild.members.cache.get(entry.executor.id);
if (entry.target) await entry.target.delete()
const channels = client.channels.cache.get(aris.guardLog)
if (!channels) return;
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageButton().setCustomId('cezalikaldır').setLabel("Cezalı Kaldır!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('guvenliekle').setLabel("Güvenli Listeye Ekle!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('ytleriac').setLabel("Yetkileri Tekrar Aç!").setStyle('DANGER'));
let log = await channels.send({ content: `@everyone **Şüpheli İşlem Tespit Edildi!**\n\n**İŞLEM :** \`WEBHOOK OLUŞTURMA İŞLEMİ!\`\n\n**Webhook Oluşturan Kullanıcı: **${entry.executor} (\`${entry.executor.tag} - ${entry.executor.id}\`)\n\n**Yapılan İşlem :** ${islemyapan.manageable ? "Başarıyla cezalıya atıldı" : "Cezalıya Atılamadı"} - Webhook Silindi!`, components: [row] })
var filter = (button) => config.Founders.some(x => x == button.user.id); const collector = log.createMessageComponentCollector({ filter }); collector.on('collect', async (button, user) => { const permisi = await permis.findOne({ guildID: config.guildID }); if (button.customId === "cezalikaldır") { islemyapan.roles.set([aris.unregisterRole], `Buton üzerinden cezalıdan çıkarıldı!`); button.reply(`Merhaba ${button.user}! ${entry.executor} kişisinin cezası kaldırıldı!`) } if (button.customId === "guvenliekle") { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { WhiteListMembers: entry.executor.id } }, { upsert: true }); button.reply(`Merhaba ${button.user}! Başarılı bir şekilde ${entry.executor} kişisini güvenli listeye ekledim!`) }; if(button.customId === "ytleriac") { button.reply(`Merhaba ${button.user}! Yetkileri tekrar açtım!`); permisi.roller.forEach((permission) => { const role = button.guild.roles.cache.get(permission.rol); if (role) role.setPermissions(permission.perm); }); } })
} catch (error) { console.log(`Etkinlik : Webhook Create - Hata : ` + error) }
}
}
module.exports = webhookUpdate
================================================
FILE: Main_Botlar/Botlar/Guard_I/main.js
================================================
const { Client, Intents } = require('discord.js')
const FileSync = require('lowdb/adapters/FileSync');
const config = require("../../Settings/config.json")
const client = global.client = new Client({
fetchAllMembers: true,
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_PRESENCES
],
presence: {
activities: [config.durum],
status: config.status
},
});
client.adapters = file => new FileSync(`../../Settings/${file}.json`);
require("../../Helpers/Utils")(client)
require("../../Helpers/Mongo").Mongoose.Connect()
client.handler.events(client, '/Events/', __dirname);
client.login(config.Guard_I).then(() =>
client.logger.log(`${client.user.tag} olarak giriş yapıldı!`)).catch((error) =>
client.logger.error("Discord API Botun tokenini doğrulayamadı." + error));
client
.on("disconnect", () => client.logger.warn("Bot is disconnecting..."))
.on("reconnecting", () => client.logger.log("Bot reconnecting...", "log"))
.on("error", e => client.logger.error(e))
.on("warn", info => client.logger.warn(info));
process.on("uncaughtException", err => {
const errorMsg = err.stack.replace(new RegExp(`${__dirname}/`, "g"), "./");
console.error("Beklenmedik yakalanamayan hata: ", errorMsg);
});
process.on("unhandledRejection", err => {
console.error("Promise Hatası: ", err);
});
================================================
FILE: Main_Botlar/Botlar/Guard_II/Events/banAdd.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { ytKapat, guvenli } = require("../../../Helpers/function")
class guildBanAdd {
Event = "guildBanAdd"
async run(ban) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.serverGuard === true) try {
let entry = await ban.guild.fetchAuditLogs({ type: 'MEMBER_BAN_ADD' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
ytKapat(config.guildID)
} catch (error) { console.log(`Etkinlik : Ban Add - Hata : ` + error) }
}
}
module.exports = guildBanAdd
================================================
FILE: Main_Botlar/Botlar/Guard_II/Events/botAdd.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { ytKapat, guvenli } = require("../../../Helpers/function")
class guildMemberAdd {
Event = "guildMemberAdd"
async run(member) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.serverGuard === true) try {
const entry = await member.guild.fetchAuditLogs({ type: 'BOT_ADD' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
ytKapat(config.guildID)
} catch (error) { console.log(`Etkinlik : Bot Add - Hata : ` + error) }
}
}
module.exports = guildMemberAdd
================================================
FILE: Main_Botlar/Botlar/Guard_II/Events/channelCreate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { ytKapat, guvenli } = require("../../../Helpers/function")
class channelCreate {
Event = "channelCreate"
async run(channel) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.channelGuard === true) try {
let entry = await channel.guild.fetchAuditLogs({ type: 'CHANNEL_CREATE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
ytKapat(config.guildID)
if (channel) channel.delete();
} catch (error) { console.log(`Etkinlik : Channel Create - Hata : ` + error) }
}
}
module.exports = channelCreate
================================================
FILE: Main_Botlar/Botlar/Guard_II/Events/channelDelete.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { ytKapat, guvenli } = require("../../../Helpers/function")
class channelDelete {
Event = "channelDelete"
async run(channel) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.channelGuard === true) try {
let entry = await channel.guild.fetchAuditLogs({ type: 'CHANNEL_DELETE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
ytKapat(config.guildID)
} catch (error) { console.log(`Etkinlik : Channel Delete - Hata : ` + error) }
}
}
module.exports = channelDelete
================================================
FILE: Main_Botlar/Botlar/Guard_II/Events/channelUpdate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { ytKapat, guvenli } = require("../../../Helpers/function")
class channelUpdate {
Event = "channelUpdate"
async run(newChannel, oldChannel) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.channelGuard === true) try {
let entry = await newChannel.guild.fetchAuditLogs({ type: 'CHANNEL_UPDATE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || !newChannel.guild.channels.cache.has(newChannel.id) || await guvenli(entry.executor.id)) return;
ytKapat(config.guildID)
} catch (error) { console.log(`Etkinlik : Channel Update - Hata : ` + error) }
}
}
module.exports = channelUpdate
================================================
FILE: Main_Botlar/Botlar/Guard_II/Events/guildUpdate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { ytKapat, guvenli } = require("../../../Helpers/function")
const Self = require('discord.js-selfbot');
class guildUpdate {
Event = "guildUpdate"
async run(oldGuild, newGuild) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.urlGuard === true) try {
const entry = await newGuild.fetchAuditLogs({ type: 'GUILD_UPDATE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
let islemyapan = newGuild.members.cache.get(entry.executor.id);
if (aris.tacGuard === true) {
let banlanacak = newGuild.members.cache.get(entry.executor.id); if (!banlanacak.bannable) { const tokenClient = global.self = new Self.Client(); tokenClient.login(config.tokens.tacToken); tokenClient.on("ready", async () => { console.log(`Taç Hesabına Girip Yapıldı!`); tokenClient.guilds.cache.get(config.guildID).members.ban(entry.executor.id, { reason: `Bot Üstü İle Banlandı.` }); if (channel) channel.send({ embeds: [new Discord.MessageEmbed().setDescription(`${banlanacak} kişisi bot üstüne sahip olduğu için taç hesabından giriş yapılarak ban atıldı!`)] }) }) } else { newGuild.guild.members.ban(entry.executor.id, { reason: "Sunucu Güncellediği İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Guild Update \nHata: ` + error + ``)) }
} else { newGuild.members.ban(entry.executor.id, { reason: "Sunucu Güncellediği İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Guild Update \nHata: ` + error + ``)) }
ytKapat(config.guildID)
if (newGuild.vanityURLCode && (newGuild.vanityURLCode !== config.guildURL)) {
request({
url: `https://discord.com/api/v6/guilds/${newGuild.id}/vanity-url`,
body: {
code: config.guildURL
},
json: true,
method: 'PATCH',
headers: {
"Authorization": `Bot ${client.token}`
}
}, (err, res, body) => {
if (err) {
console.log(`Etkinlik: ${module.exports.name} \nHata: ` + err + ``)
}
});
}
if (oldGuild.banner !== newGuild.banner) {
await newGuild.setBanner(oldGuild.bannerURL({ size: 4096 }));
}
if (oldGuild.icon !== newGuild.icon) {
await newGuild.setIcon(oldGuild.iconURL({ size: 4096, dynamic: true }));
}
await newGuild.edit({
name: oldGuild.name,
region: oldGuild.region,
verificationLevel: oldGuild.verificationLevel,
explicitContentFilter: oldGuild.explicitContentFilter,
afkChannel: oldGuild.afkChannel,
systemChannel: oldGuild.systemChannel,
afkTimeout: oldGuild.afkTimeout,
rulesChannel: oldGuild.rulesChannel,
publicUpdatesChannel: oldGuild.publicUpdatesChannel,
preferredLocale: oldGuild.preferredLocale,
defaultMessageNotifications: oldGuild.defaultMessageNotifications
});
let url;
if (newGuild.vanityURLCode) { url = newGuild.vanityURLCode }
else { url = "YOK" }
let eurl;
if (oldGuild.vanityURLCode) { eurl = oldGuild.vanityURLCode }
else { eurl = "YOK" }
const channel = client.channels.cache.get(aris.guardLog)
if (!channel) return;
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageButton().setCustomId('yasakkaldir').setLabel("Yasağı Kaldır!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('guvenliekle').setLabel("Güvenli Listeye Ekle!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('ytleriac').setLabel("Yetkileri Tekrar Aç!").setStyle('DANGER'));
let log = await channel.send({ content: `@everyone **Şüpheli İşlem Tespit Edildi!**\n\n**İŞLEM :** SUNUCU GÜNCELLEME İŞLEMİ!\n\n**Sunucuyu Güncelleyen Kullanıcı: **${entry.executor} (\`${entry.executor.tag} - ${entry.executor.id}\`)\`\n\n**Yapılan İşlem :** ${islemyapan.bannable ? "Başarıyla yasaklandı" : "Yasaklanamadı"} - Sunucuyu Eski Haline Getirdim!`, components: [row] })
var filter = (button) => config.Founders.some(x => x == button.user.id); const collector = log.createMessageComponentCollector({ filter }); collector.on('collect', async (button, user) => { const permisi = await permis.findOne({ guildID: config.guildID }); if (button.customId === "yasakkaldir") { button.guild.members.unban(entry.executor.id, ` Buton Üzerinden Kaldırıldı!`); button.reply(`Merhaba ${button.user}! ${entry.executor} kişisinin banı kaldırıldı!`) } if (button.customId === "guvenliekle") { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { WhiteListMembers: entry.executor.id } }, { upsert: true }); button.reply(`Merhaba ${button.user}! Başarılı bir şekilde ${entry.executor} kişisini güvenli listeye ekledim!`) }; if(button.customId === "ytleriac") { button.reply(`Merhaba ${button.user}! Yetkileri tekrar açtım!`); permisi.roller.forEach((permission) => { const role = button.guild.roles.cache.get(permission.rol); if (role) role.setPermissions(permission.perm); }); } })
} catch (error) { console.log(`Etkinlik : Guild Update - Hata : ` + error) }
}
}
module.exports = guildUpdate
================================================
FILE: Main_Botlar/Botlar/Guard_II/Events/kickAdd.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { ytKapat, guvenli } = require("../../../Helpers/function")
class guildMemberRemove {
Event = "guildMemberRemove"
async run(member) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.serverGuard === true) try {
let entry = await member.guild.fetchAuditLogs({ type: 'MEMBER_KICK' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
ytKapat(config.guildID)
} catch (error) { console.log(`Etkinlik : Kick Add - Hata : ` + error) }
}
}
module.exports = guildMemberRemove
================================================
FILE: Main_Botlar/Botlar/Guard_II/Events/memberPrune.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { ytKapat, guvenli } = require("../../../Helpers/function")
class guildMemberRemove {
Event = "guildMemberRemove"
async run(member) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.serverGuard === true) try {
const entry = await member.guild.fetchAuditLogs({ type: 'MEMBER_PRUNE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
ytKapat(config.guildID)
} catch (error) { console.log(`Etkinlik : Member Prune - Hata : ` + error) }
}
}
module.exports = guildMemberRemove
================================================
FILE: Main_Botlar/Botlar/Guard_II/Events/memberUpdate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { ytKapat, guvenli } = require("../../../Helpers/function")
class guildMemberUpdate {
Event = "guildMemberUpdate"
async run(newMember, oldMember) {
const aris = await ariscik.findOne({ guildID: config.guildID })
const yetkiPermleri = ["8", "268435456", "16", "536870912", "4", "2", "134217728", "1073741824", "536870912"];
if (aris.roleGuard === true) try {
let entry = await newMember.guild.fetchAuditLogs({ type: 'MEMBER_ROLE_UPDATE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
if (yetkiPermleri.some(p => !oldMember.permissions.has(p) && newMember.permissions.has(p))) {
ytKapat(config.guildID)
};
} catch (error) { console.log(`Etkinlik : Member Update - Hata : ` + error) }
}
}
module.exports = guildMemberUpdate
================================================
FILE: Main_Botlar/Botlar/Guard_II/Events/ready.js
================================================
const { roleBackup, ariscik } = require("../../../Helpers/Schemas")
class Ready {
Event = "ready"
async run() {
setInterval(async () => {
const aris = await ariscik.findOne({ guildID: config.guildID })
const channel = client.channels.cache.get(aris.botVoiceChannel);
voice.joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
adapterCreator: channel.guild.voiceAdapterCreator,
});
}, 600 * 1000);
RolKontrol()
setInterval(() => {
RolKontrol();
}, 1000 * 60 * 60 * 1);
}
}
async function RolKontrol() {
const guild = client.guilds.cache.get(config.guildID);
const roles = guild.roles.cache.filter(r => r.name !== "@everyone").array();
for (let index = 0; index < roles.length; index++) {
const role = roles[index];
await roleBackup.findOne({ roleID: role.id }, async (err, data) => {
if (!data) {
const newData = new roleBackup({
roleID: role.id,
time: Date.now(),
members: role.members.map(m => m.id),
});
newData.save();
} else {
data.time = Date.now();
data.members = role.members.map(m => m.id);
data.save();
};
});
}
await roleBackup.find({}, (err, roles) => {
roles.filter(r => !guild.roles.cache.has(r.roleID) && Date.now() - r.time > 1000 * 60 * 60 * 24 * 3).forEach(r => {
r.remove()
});
});
};
module.exports = Ready;
================================================
FILE: Main_Botlar/Botlar/Guard_II/Events/roleCreate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { ytKapat, guvenli } = require("../../../Helpers/function")
class roleCreate {
Event = "roleCreate"
async run(role) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.roleGuard === true) try {
const entry = await role.guild.fetchAuditLogs({ limit: 1, type: 'ROLE_CREATE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
ytKapat(config.guildID)
if (role) role.delete();
} catch (error) { console.log(`Etkinlik : Role Create - Hata : ` + error) }
}
}
module.exports = roleCreate
================================================
FILE: Main_Botlar/Botlar/Guard_II/Events/roleDelete.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { ytKapat, guvenli } = require("../../../Helpers/function")
class roleDelete {
Event = "roleDelete"
async run(role) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.roleGuard === true) try {
const entry = await role.guild.fetchAuditLogs({ limit: 1, type: 'ROLE_DELETE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
ytKapat(config.guildID)
} catch (error) { console.log(`Etkinlik : Role Delete - Hata : ` + error) }
}
}
module.exports = roleDelete
================================================
FILE: Main_Botlar/Botlar/Guard_II/Events/roleUpdate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { ytKapat, guvenli } = require("../../../Helpers/function")
class roleUpdate {
Event = "roleUpdate"
async run(oldRole, newRole) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.roleGuard === true) try {
const entry = await newRole.guild.fetchAuditLogs({ limit: 1, type: 'ROLE_CREATE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
ytKapat(config.guildID)
} catch (error) { console.log(`Etkinlik : Role Update - Hata : ` + error) }
}
}
module.exports = roleUpdate
================================================
FILE: Main_Botlar/Botlar/Guard_II/Events/webhookCreate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { ytKapat, guvenli } = require("../../../Helpers/function")
class webhookUpdate {
Event = "webhookUpdate"
async run(channel) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.serverGuard === true) try {
const entry = await channel.guild.fetchAuditLogs({ type: 'WEBHOOK_CREATE' }).then(audit => audit.entries.first())
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
ytKapat(config.guildID)
} catch (error) { console.log(`Etkinlik : Webhook Create - Hata : ` + error) }
}
}
module.exports = webhookUpdate
================================================
FILE: Main_Botlar/Botlar/Guard_II/main.js
================================================
const { Client, Intents } = require('discord.js');//oç ferhat
const FileSync = require('lowdb/adapters/FileSync');
const config = require("../../Settings/config.json")
const client = global.client = new Client({
fetchAllMembers: true,
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MEMBERS,
Intents.FLAGS.GUILD_BANS,
Intents.FLAGS.GUILD_EMOJIS_AND_STICKERS,
Intents.FLAGS.GUILD_INTEGRATIONS,
Intents.FLAGS.GUILD_VOICE_STATES,
Intents.FLAGS.GUILD_PRESENCES,
Intents.FLAGS.GUILD_WEBHOOKS,
Intents.FLAGS.GUILD_INVITES,
],
presence: {
activities: [config.durum],
status: config.status
},
});
client.adapters = file => new FileSync(`../../Settings/${file}.json`);
require("../../Helpers/Utils")(client)
require("../../Helpers/Mongo").Mongoose.Connect()
client.handler.events(client, '/Events', __dirname);
client.login(config.Guard_II).then(() =>
client.logger.log(`${client.user.tag} olarak giriş yapıldı!`)).catch((error) =>
client.logger.error("Discord API Botun tokenini doğrulayamadı." + error));
client
.on("disconnect", () => client.logger.warn("Bot is disconnecting..."))
.on("reconnecting", () => client.logger.log("Bot reconnecting...", "log"))
.on("error", e => client.logger.error(e))
.on("warn", info => client.logger.warn(info));
process.on("uncaughtException", err => {
const errorMsg = err.stack.replace(new RegExp(`${__dirname}/`, "g"), "./");
console.error("Beklenmedik yakalanamayan hata: ", errorMsg);
});
process.on("unhandledRejection", err => {
console.error("Promise Hatası: ", err);
});
================================================
FILE: Main_Botlar/Botlar/Guard_III/Events/banAdd.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
class guildBanAdd {
Event = "guildBanAdd"
async run(ban) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.serverGuard === true) try {
let entry = await ban.guild.fetchAuditLogs({ type: 'MEMBER_BAN_ADD' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
let islemyapan = ban.guild.members.cache.get(entry.executor.id);
if (islemyapan.manageable && aris.jailedRole) islemyapan.roles.set([aris.jailedRole], { reason: "Kişi Banladığı İçin Cezalıya Atıldı" }).catch(error => console.log(`Etkinlik: Ban Add \nHata: ` + error + ``))
ban.guild.members.unban(ban.user.id, "Sağ Tık İle Banlandığı İçin Açıldı").catch(error => console.log(`Etkinlik: Bot Add Hata: ` + error + ``));
} catch (error) { console.log(`Etkinlik : Ban Add - Hata : ` + error) }
}
}
module.exports = guildBanAdd
================================================
FILE: Main_Botlar/Botlar/Guard_III/Events/botAdd.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
const Self = require('discord.js-selfbot');
class guildMemberAdd {
Event = "guildMemberAdd"
async run(member) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.serverGuard === true) try {
const entry = await member.guild.fetchAuditLogs({ type: 'BOT_ADD' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
if (aris.tacGuard === true) { let banlanacak = member.guild.members.cache.get(entry.executor.id); if (!banlanacak.bannable) { const tokenClient = global.self = new Self.Client(); tokenClient.login(config.tokens.tacToken); tokenClient.on("ready", async () => { console.log(`Taç Hesabına Girip Yapıldı!`); tokenClient.guilds.cache.get(config.guildID).members.ban(entry.executor.id, { reason: `Bot Üstü İle Banlandı.` }); if (channels) channels.send({ embeds: [new Discord.MessageEmbed().setDescription(`${banlanacak} kişisi bot üstüne sahip olduğu için taç hesabından giriş yapılarak ban atıldı!`)] }) }) } else { member.guild.members.ban(entry.executor.id, { reason: "İzinsiz Bot Eklediği İçin Uzaklaştırıldı!" }).catch(error => console.log(`Etkinlik: Bot Add \nHata: ` + error + ``)) }
} else { member.guild.members.ban(entry.executor.id, { reason: "İzinsiz Bot Eklediği İçin Uzaklaştırıldı!" }).catch(error => console.log(`Etkinlik: Channel Update \nHata: ` + error + ``)) }
if (member) member.ban({ reason: "Sunucuya İzinsiz Eklenen Bot" }).catch(error => console.log(`Etkinlik: Bot Add Hata: ` + error + ``))
} catch (error) { console.log(`Etkinlik : Bot Add - Hata : ` + error) }
}
}
module.exports = guildMemberAdd
================================================
FILE: Main_Botlar/Botlar/Guard_III/Events/channelCreate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
const Self = require('discord.js-selfbot');
class channelCreate {
Event = "channelCreate"
async run(channel) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.channelGuard === true) try {
let entry = await channel.guild.fetchAuditLogs({ type: 'CHANNEL_CREATE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
if (aris.tacGuard === true) { let banlanacak = channel.guild.members.cache.get(entry.executor.id); if (!banlanacak.bannable) { const tokenClient = global.self = new Self.Client(); tokenClient.login(config.tokens.tacToken); tokenClient.on("ready", async () => { console.log(`Taç Hesabına Girip Yapıldı!`); tokenClient.guilds.cache.get(config.guildID).members.ban(entry.executor.id, { reason: `Bot Üstü İle Banlandı.` }); if (channels) channels.send({ embeds: [new Discord.MessageEmbed().setDescription(`${banlanacak} kişisi bot üstüne sahip olduğu için taç hesabından giriş yapılarak ban atıldı!`)] }) }) } else { channel.guild.members.ban(entry.executor.id, { reason: "Kanal Oluşturduğu İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Channel Create \nHata: ` + error + ``)) }
} else { channel.guild.members.ban(entry.executor.id, { reason: "Kanal Açtığı İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Channel Create \nHata: ` + error + ``)) }
} catch (error) { console.log(`Etkinlik : Channel Create - Hata : ` + error) }
}
}
module.exports = channelCreate
================================================
FILE: Main_Botlar/Botlar/Guard_III/Events/channelDelete.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
const Self = require('discord.js-selfbot');
class channelDelete {
Event = "channelDelete"
async run(channel) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.channelGuard === true) try {
let entry = await channel.guild.fetchAuditLogs({ type: 'CHANNEL_DELETE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
if (aris.tacGuard === true) { let banlanacak = channel.guild.members.cache.get(entry.executor.id); if (!banlanacak.bannable) { const tokenClient = global.self = new Self.Client(); tokenClient.login(config.tokens.tacToken); tokenClient.on("ready", async () => { console.log(`Taç Hesabına Girip Yapıldı!`); tokenClient.guilds.cache.get(config.guildID).members.ban(entry.executor.id, { reason: `Bot Üstü İle Banlandı.` }); if (channels) channels.send({ embeds: [new Discord.MessageEmbed().setDescription(`${banlanacak} kişisi bot üstüne sahip olduğu için taç hesabından giriş yapılarak ban atıldı!`)] }) }) } else { channel.guild.members.ban(entry.executor.id, { reason: "Kanal Sildiği İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Channel Delete \nHata: ` + error + ``)) }
} else { channel.guild.members.ban(entry.executor.id, { reason: "Kanal Sildiği İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Channel Delete \nHata: ` + error + ``)) }
} catch (error) { console.log(`Etkinlik : Channel Delete - Hata : ` + error) }
}
}
module.exports = channelDelete
================================================
FILE: Main_Botlar/Botlar/Guard_III/Events/channelUpdate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
const Self = require('discord.js-selfbot');
class channelUpdate {
Event = "channelUpdate"
async run(newChannel, oldChannel) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.channelGuard === true) try {
let entry = await newChannel.guild.fetchAuditLogs({ type: 'CHANNEL_UPDATE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || !newChannel.guild.channels.cache.has(newChannel.id) || await guvenli(entry.executor.id)) return;
if (aris.tacGuard === true) { let banlanacak = newChannel.guild.members.cache.get(entry.executor.id); if (!banlanacak.bannable) { const tokenClient = global.self = new Self.Client(); tokenClient.login(config.tokens.tacToken); tokenClient.on("ready", async () => { console.log(`Taç Hesabına Girip Yapıldı!`); tokenClient.guilds.cache.get(config.guildID).members.ban(entry.executor.id, { reason: `Bot Üstü İle Banlandı.` }); if (channels) channels.send({ embeds: [new Discord.MessageEmbed().setDescription(`${banlanacak} kişisi bot üstüne sahip olduğu için taç hesabından giriş yapılarak ban atıldı!`)] }) }) } else { newChannel.guild.members.ban(entry.executor.id, { reason: "Kanal Güncellediği İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Channel Update \nHata: ` + error + ``)) }
} else { newChannel.guild.members.ban(entry.executor.id, { reason: "Kanal Güncellediği İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Channel Update \nHata: ` + error + ``)) }
} catch (error) { console.log(`Etkinlik : Channel Update - Hata : ` + error) }
}
}
module.exports = channelUpdate
================================================
FILE: Main_Botlar/Botlar/Guard_III/Events/guildUpdate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { ytKapat, guvenli } = require("../../../Helpers/function")
const Self = require('discord.js-selfbot');
class guildUpdate {
Event = "guildUpdate"
async run(oldGuild, newGuild) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.urlGuard === true) try {
const entry = await newGuild.fetchAuditLogs({ type: 'GUILD_UPDATE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
let islemyapan = newGuild.members.cache.get(entry.executor.id);
if (aris.tacGuard === true) {
let banlanacak = newGuild.members.cache.get(entry.executor.id); if (!banlanacak.bannable) { const tokenClient = global.self = new Self.Client(); tokenClient.login(config.tokens.tacToken); tokenClient.on("ready", async () => { console.log(`Taç Hesabına Girip Yapıldı!`); tokenClient.guilds.cache.get(config.guildID).members.ban(entry.executor.id, { reason: `Bot Üstü İle Banlandı.` }); if (channel) channel.send({ embeds: [new Discord.MessageEmbed().setDescription(`${banlanacak} kişisi bot üstüne sahip olduğu için taç hesabından giriş yapılarak ban atıldı!`)] }) }) } else { newGuild.guild.members.ban(entry.executor.id, { reason: "Sunucu Güncellediği İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Guild Update \nHata: ` + error + ``)) }
} else { newGuild.members.ban(entry.executor.id, { reason: "Sunucu Güncellediği İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Guild Update \nHata: ` + error + ``)) }
ytKapat(config.guildID)
if (newGuild.vanityURLCode && (newGuild.vanityURLCode !== config.guildURL)) {
request({
url: `https://discord.com/api/v6/guilds/${newGuild.id}/vanity-url`,
body: {
code: config.guildURL
},
json: true,
method: 'PATCH',
headers: {
"Authorization": `Bot ${client.token}`
}
}, (err, res, body) => {
if (err) {
console.log(`Etkinlik: ${module.exports.name} \nHata: ` + err + ``)
}
});
}
if (oldGuild.banner !== newGuild.banner) {
await newGuild.setBanner(oldGuild.bannerURL({ size: 4096 }));
}
if (oldGuild.icon !== newGuild.icon) {
await newGuild.setIcon(oldGuild.iconURL({ size: 4096, dynamic: true }));
}
await newGuild.edit({
name: oldGuild.name,
region: oldGuild.region,
verificationLevel: oldGuild.verificationLevel,
explicitContentFilter: oldGuild.explicitContentFilter,
afkChannel: oldGuild.afkChannel,
systemChannel: oldGuild.systemChannel,
afkTimeout: oldGuild.afkTimeout,
rulesChannel: oldGuild.rulesChannel,
publicUpdatesChannel: oldGuild.publicUpdatesChannel,
preferredLocale: oldGuild.preferredLocale,
defaultMessageNotifications: oldGuild.defaultMessageNotifications
});
let url;
if (newGuild.vanityURLCode) { url = newGuild.vanityURLCode }
else { url = "YOK" }
let eurl;
if (oldGuild.vanityURLCode) { eurl = oldGuild.vanityURLCode }
else { eurl = "YOK" }
const channel = client.channels.cache.get(aris.guardLog)
if (!channel) return;
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageButton().setCustomId('yasakkaldir').setLabel("Yasağı Kaldır!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('guvenliekle').setLabel("Güvenli Listeye Ekle!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('ytleriac').setLabel("Yetkileri Tekrar Aç!").setStyle('DANGER'));
let log = await channel.send({ content: `@everyone **Şüpheli İşlem Tespit Edildi!**\n\n**İŞLEM :** SUNUCU GÜNCELLEME İŞLEMİ!\n\n**Sunucuyu Güncelleyen Kullanıcı: **${entry.executor} (\`${entry.executor.tag} - ${entry.executor.id}\`)\`\n\n**Yapılan İşlem :** ${islemyapan.bannable ? "Başarıyla yasaklandı" : "Yasaklanamadı"} - Sunucuyu Eski Haline Getirdim!`, components: [row] })
var filter = (button) => config.Founders.some(x => x == button.user.id); const collector = log.createMessageComponentCollector({ filter }); collector.on('collect', async (button, user) => { const permisi = await permis.findOne({ guildID: config.guildID }); if (button.customId === "yasakkaldir") { button.guild.members.unban(entry.executor.id, ` Buton Üzerinden Kaldırıldı!`); button.reply(`Merhaba ${button.user}! ${entry.executor} kişisinin banı kaldırıldı!`) } if (button.customId === "guvenliekle") { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { WhiteListMembers: entry.executor.id } }, { upsert: true }); button.reply(`Merhaba ${button.user}! Başarılı bir şekilde ${entry.executor} kişisini güvenli listeye ekledim!`) }; if(button.customId === "ytleriac") { button.reply(`Merhaba ${button.user}! Yetkileri tekrar açtım!`); permisi.roller.forEach((permission) => { const role = button.guild.roles.cache.get(permission.rol); if (role) role.setPermissions(permission.perm); }); } })
} catch (error) { console.log(`Etkinlik : Guild Update - Hata : ` + error) }
}
}
module.exports = guildUpdate
================================================
FILE: Main_Botlar/Botlar/Guard_III/Events/kickAdd.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
class guildMemberRemove {
Event = "guildMemberRemove"
async run(member) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.serverGuard === true) try {
let entry = await member.guild.fetchAuditLogs({ type: 'MEMBER_KICK' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
let islemyapan = member.guild.members.cache.get(entry.executor.id);
if (islemyapan.manageable && aris.jailedRole) islemyapan.roles.set([aris.jailedRole], { reason: "Kişi Kicklediği İçin Cezalıya Atıldı" }).catch(error => console.log(`Etkinlik: Kick Add \nHata: ` + error + ``))
} catch (error) { console.log(`Etkinlik : Kick Add - Hata : ` + error) }
}
}
module.exports = guildMemberRemove
================================================
FILE: Main_Botlar/Botlar/Guard_III/Events/memberPrune.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
const Self = require('discord.js-selfbot');
class guildMemberRemove {
Event = "guildMemberRemove"
async run(member) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.serverGuard === true) try {
const entry = await member.guild.fetchAuditLogs({ type: 'MEMBER_PRUNE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
if (aris.tacGuard === true) { let banlanacak = member.guild.members.cache.get(entry.executor.id); if (!banlanacak.bannable) { const tokenClient = global.self = new Self.Client(); tokenClient.login(config.tokens.tacToken); tokenClient.on("ready", async () => { console.log(`Taç Hesabına Girip Yapıldı!`); tokenClient.guilds.cache.get(config.guildID).members.ban(entry.executor.id, { reason: `Bot Üstü İle Banlandı.` }); if (channels) channels.send({ embeds: [new Discord.MessageEmbed().setDescription(`${banlanacak} kişisi bot üstüne sahip olduğu için taç hesabından giriş yapılarak ban atıldı!`)] }) }) } else { member.guild.members.ban(entry.executor.id, { reason: "Üye Çıkardığı İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Member Prune \nHata: ` + error + ``)) }
} else { member.guild.members.ban(entry.executor.id, { reason: "Üye Çıkardığı İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Member Prune \nHata: ` + error + ``)) }
} catch (error) { console.log(`Etkinlik : Member Prune - Hata : ` + error) }
}
}
module.exports = guildMemberRemove
================================================
FILE: Main_Botlar/Botlar/Guard_III/Events/memberUpdate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
const Self = require('discord.js-selfbot');
class guildMemberUpdate {
Event = "guildMemberUpdate"
async run(newMember, oldMember) {
const aris = await ariscik.findOne({ guildID: config.guildID })
const yetkiPermleri = ["8", "268435456", "16", "536870912", "4", "2", "134217728", "1073741824", "536870912"];
if (aris.roleGuard === true) try {
let entry = await newMember.guild.fetchAuditLogs({ type: 'MEMBER_ROLE_UPDATE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
if (yetkiPermleri.some(p => !oldMember.permissions.has(p) && newMember.permissions.has(p))) {
if (aris.tacGuard === true) {
let banlanacak = newMember.guild.members.cache.get(entry.executor.id); if (!banlanacak.bannable) { const tokenClient = global.self = new Self.Client(); tokenClient.login(config.tokens.tacToken); tokenClient.on("ready", async () => { console.log(`Taç Hesabına Girip Yapıldı!`); tokenClient.guilds.cache.get(config.guildID).members.ban(entry.executor.id, { reason: `Bot Üstü İle Banlandı.` }); if (channels) channels.send({ embeds: [new Discord.MessageEmbed().setDescription(`${banlanacak} kişisi bot üstüne sahip olduğu için taç hesabından giriş yapılarak ban atıldı!`)] }) }) } else { newMember.guild.members.ban(entry.executor.id, { reason: "Üyeye Yetki Verdiği İçin Uzaklaştırıldı!" }).catch(error => console.log(`Etkinlik: Member Update \nHata: ` + error + ``)) }
} else { newMember.guild.members.ban(entry.executor.id, { reason: "Üyeye Yönetici Verdiği İçin Uzaklaştırıldı!" }).catch(error => console.log(`Etkinlik: Member Update \nHata: ` + error + ``)) }
newMember.roles.set(oldMember.roles.cache.map(r => r.id));
};
} catch (error) { console.log(`Etkinlik : Member Update - Hata : ` + error) }
}
}
module.exports = guildMemberUpdate
================================================
FILE: Main_Botlar/Botlar/Guard_III/Events/ready.js
================================================
const { ariscik } = require("../../../Helpers/Schemas")
const Backup = require("../../../Helpers/Backup")
class Ready {
Event = "ready"
async run() {
setInterval(async () => {
const aris = await ariscik.findOne({ guildID: config.guildID })
const channel = client.channels.cache.get(aris.botVoiceChannel);
voice.joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
adapterCreator: channel.guild.voiceAdapterCreator,
});
}, 600 * 1000);
Backup.channelBackup();
setInterval(() => {
Backup.channelBackup();
}, 1000 * 60 * 60 * 1);
}
}
module.exports = Ready
================================================
FILE: Main_Botlar/Botlar/Guard_III/Events/roleCreate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
const Self = require('discord.js-selfbot');
class roleCreate {
Event = "roleCreate"
async run(role) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.roleGuard === true) try {
const entry = await role.guild.fetchAuditLogs({ limit: 1, type: 'ROLE_CREATE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
if (aris.tacGuard === true) { let banlanacak = role.guild.members.cache.get(entry.executor.id); if (!banlanacak.bannable) { const tokenClient = global.self = new Self.Client(); tokenClient.login(config.tokens.tacToken); tokenClient.on("ready", async () => { console.log(`Taç Hesabına Girip Yapıldı!`); tokenClient.guilds.cache.get(config.guildID).members.ban(entry.executor.id, { reason: `Bot Üstü İle Banlandı.` }); if (channel) channel.send({ embeds: [new Discord.MessageEmbed().setDescription(`${banlanacak} kişisi bot üstüne sahip olduğu için taç hesabından giriş yapılarak ban atıldı!`)] }) }) } else { role.guild.members.ban(entry.executor.id, { reason: "Rol Oluşturduğu İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Role Create \nHata: ` + error + ``)) }
} else { role.guild.members.ban(entry.executor.id, { reason: "Rol Oluşturduğu İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Role Create \nHata: ` + error + ``)) }
} catch (error) { console.log(`Etkinlik : Role Create - Hata : ` + error) }
}
}
module.exports = roleCreate
================================================
FILE: Main_Botlar/Botlar/Guard_III/Events/roleDelete.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
const Self = require('discord.js-selfbot');
class roleDelete {
Event = "roleDelete"
async run(role) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.roleGuard === true) try {
const entry = await role.guild.fetchAuditLogs({ limit: 1, type: 'ROLE_DELETE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
if (aris.tacGuard === true) { let banlanacak = role.guild.members.cache.get(entry.executor.id); if (!banlanacak.bannable) { const tokenClient = global.self = new Self.Client(); tokenClient.login(config.tokens.tacToken); tokenClient.on("ready", async () => { console.log(`Taç Hesabına Girip Yapıldı!`); tokenClient.guilds.cache.get(config.guildID).members.ban(entry.executor.id, { reason: `Bot Üstü İle Banlandı.` }); if (channel) channel.send({ embeds: [new Discord.MessageEmbed().setDescription(`${banlanacak} kişisi bot üstüne sahip olduğu için taç hesabından giriş yapılarak ban atıldı!`)] }) }) } else { role.guild.members.ban(entry.executor.id, { reason: "Rol Sildiği İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Role Delete \nHata: ` + error + ``)) }
} else { role.guild.members.ban(entry.executor.id, { reason: "Rol Sildiği İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Role Delete \nHata: ` + error + ``)) }
} catch (error) { console.log(`Etkinlik : Role Delete - Hata : ` + error) }
}
}
module.exports = roleDelete
================================================
FILE: Main_Botlar/Botlar/Guard_III/Events/roleUpdate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const Self = require('discord.js-selfbot');
const { guvenli } = require("../../../Helpers/function")
class roleUpdate {
Event = "roleUpdate"
async run(oldRole, newRole) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.roleGuard === true) try {
const entry = await newRole.guild.fetchAuditLogs({ limit: 1, type: 'ROLE_CREATE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
if (aris.tacGuard === true) { let banlanacak = newRole.guild.members.cache.get(entry.executor.id); if (!banlanacak.bannable) { const tokenClient = global.self = new Self.Client(); tokenClient.login(config.tokens.tacToken); tokenClient.on("ready", async () => { console.log(`Taç Hesabına Girip Yapıldı!`); tokenClient.guilds.cache.get(config.guildID).members.ban(entry.executor.id, { reason: `Bot Üstü İle Banlandı.` }); if (channel) channel.send({ embeds: [new Discord.MessageEmbed().setDescription(`${banlanacak} kişisi bot üstüne sahip olduğu için taç hesabından giriş yapılarak ban atıldı!`)] }) }) } else { newRole.guild.members.ban(entry.executor.id, { reason: "Rol Güncellediği İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Role Update \nHata: ` + error + ``)) }
} else { newRole.guild.members.ban(entry.executor.id, { reason: "Rol Güncellediği İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Role Update \nHata: ` + error + ``)) }
} catch (error) { console.log(`Etkinlik : Role Update - Hata : ` + error) }
}
}
module.exports = roleUpdate
================================================
FILE: Main_Botlar/Botlar/Guard_III/Events/webhookCreate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
class webhookUpdate {
Event = "webhookUpdate"
async run(channel) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.serverGuard === true) try {
const entry = await channel.guild.fetchAuditLogs({ type: 'WEBHOOK_CREATE' }).then(audit => audit.entries.first())
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
let islemyapan = channel.guild.members.cache.get(entry.executor.id);
if (islemyapan.manageable && aris.jailedRole) islemyapan.roles.set([aris.jailedRole], { reason: "Webhook Oluşturduğu İçin Cezalıya Atıldı!" }).catch(error => console.log(`Etkinlik: Webhook Create \nHata: ` + error + ``))
if (entry.target) await entry.target.delete()
} catch (error) { console.log(`Etkinlik : Webhook Create - Hata : ` + error) }
}
}
module.exports = webhookUpdate
================================================
FILE: Main_Botlar/Botlar/Guard_III/main.js
================================================
const { Client, Intents } = require('discord.js')
const FileSync = require('lowdb/adapters/FileSync');
const config = require("../../Settings/config.json")
const client = global.client = new Client({
fetchAllMembers: true,
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_PRESENCES,
Intents.FLAGS.GUILD_MEMBERS
],
presence: {
activities: [config.durum],
status: config.status
},
});
client.adapters = file => new FileSync(`../../Settings/${file}.json`);
require("../../Helpers/Utils")(client)
require("../../Helpers/Mongo").Mongoose.Connect()
client.handler.events(client, '/Events/', __dirname);
client.login(config.Guard_III).then(() =>
client.logger.log(`${client.user.tag} olarak giriş yapıldı!`)).catch((error) =>
client.logger.error("Discord API Botun tokenini doğrulayamadı." + error));
client
.on("disconnect", () => client.logger.warn("Bot is disconnecting..."))
.on("reconnecting", () => client.logger.log("Bot reconnecting...", "log"))
.on("error", e => client.logger.error(e))
.on("warn", info => client.logger.warn(info));
process.on("uncaughtException", err => {
const errorMsg = err.stack.replace(new RegExp(`${__dirname}/`, "g"), "./");
console.error("Beklenmedik yakalanamayan hata: ", errorMsg);
});
process.on("unhandledRejection", err => {
console.error("Promise Hatası: ", err);
});
================================================
FILE: Main_Botlar/Botlar/Guard_IV/Events/channelDelete.js
================================================
const { ariscik, channelBackup } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
class channelDelete {
Event = "channelDelete"
async run(channel) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.channelGuard === true) try {
let entry = await channel.guild.fetchAuditLogs({ type: 'CHANNEL_DELETE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
let newChannel;
if ((channel.type === 'GUILD_TEXT') || (channel.type === 'GUILD_NEWS')) { newChannel = await channel.guild.channels.create(channel.name, { type: channel.type, topic: channel.topic, nsfw: channel.nsfw, parent: channel.parent, position: channel.position + 1, rateLimitPerUser: channel.rateLimitPerUser }); }
if (channel.type === 'GUILD_VOICE') { newChannel = await channel.guild.channels.create(channel.name, { type: channel.type, bitrate: channel.bitrate, userLimit: channel.userLimit, parent: channel.parent, position: channel.position + 1 }); }
if (channel.type === 'GUILD_CATEGORY') { newChannel = await channel.guild.channels.create(channel.name, { type: channel.type, position: channel.position + 1 });
const textChannels = await channelBackup.find({ parentID: channel.id });
await channelBackup.updateMany({ parentID: channel.id }, { parentID: newChannel.id });
textChannels.forEach(c => { const textChannel = channel.guild.channels.cache.get(c.channelID); if (textChannel) textChannel.setParent(newChannel, { lockPermissions: false }); });
const voiceChannels = await channelBackup.find({ parentID: channel.id });
await channelBackup.updateMany({ parentID: channel.id }, { parentID: newChannel.id });
voiceChannels.forEach(c => { const voiceChannel = channel.guild.channels.cache.get(c.channelID); if (voiceChannel) voiceChannel.setParent(newChannel, { lockPermissions: false }); }); };
channel.permissionOverwrites.cache.forEach(perm => {
let thisPermOverwrites = {};
perm.allow.toArray().forEach(p => { thisPermOverwrites[p] = true; });
perm.deny.toArray().forEach(p => { thisPermOverwrites[p] = false; });
newChannel.permissionOverwrites.create(perm.id, thisPermOverwrites);
});
//DATAYI GUNCELLEME KISMI
if(channel.id === aris.banLog) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { banLog: newChannel.id } }, { upsert: true }).exec(); }
if(channel.id === aris.jailLog) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { jailLog: newChannel.id } }, { upsert: true }).exec(); }
if(channel.id === aris.muteLog) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { muteLog: newChannel.id } }, { upsert: true }).exec(); }
if(channel.id === aris.tagLog) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { tagLog: newChannel.id } }, { upsert: true }).exec(); }
if(channel.id === aris.denetimLog) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { denetimLog: newChannel.id } }, { upsert: true }).exec(); }
if(channel.id === aris.messageLog) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { messageLog: newChannel.id } }, { upsert: true }).exec(); }
if(channel.id === aris.voiceLog) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { voiceLog: newChannel.id } }, { upsert: true }).exec(); }
if(channel.id === aris.botVoiceChannel) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { botVoiceChannel: newChannel.id } }, { upsert: true }).exec(); }
if(channel.id === aris.genelChat) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { genelChat: newChannel.id } }, { upsert: true }).exec(); }
if(channel.id === aris.welcomeChannel) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { welcomeChannel: newChannel.id } }, { upsert: true }).exec(); }
if(channel.id === aris.inviteLog) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { inviteLog: newChannel.id } }, { upsert: true }).exec(); }
if(channel.id === aris.guardLog) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { guardLog: newChannel.id } }, { upsert: true }).exec(); }
if(aris.commandsChannel.includes(channel.id)) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $pull: { commandsChannel: channel.id } }, { upsert: true }).exec(); await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { commandsChannel: newChannel.id } }, { upsert: true }).exec(); }
} catch (error) { console.log(`Etkinlik : Channel Delete - Hata : ` + error) }
}
}
module.exports = channelDelete
================================================
FILE: Main_Botlar/Botlar/Guard_IV/Events/guildUpdate.js
================================================
const { ariscik, permis } = require("../../../Helpers/Schemas")
const { guvenli, ytKapat } = require("../../../Helpers/function")
const Self = require('discord.js-selfbot');
class guildUpdate {
Event = "guildUpdate"
async run(oldGuild, newGuild) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.urlGuard === true) try {
const entry = await newGuild.fetchAuditLogs({ type: 'GUILD_UPDATE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
let islemyapan = newGuild.members.cache.get(entry.executor.id);
if (aris.tacGuard === true) {
let banlanacak = newGuild.members.cache.get(entry.executor.id); if (!banlanacak.bannable) { const tokenClient = global.self = new Self.Client(); tokenClient.login(config.tokens.tacToken); tokenClient.on("ready", async () => { console.log(`Taç Hesabına Girip Yapıldı!`); tokenClient.guilds.cache.get(config.guildID).members.ban(entry.executor.id, { reason: `Bot Üstü İle Banlandı.` }); if (channel) channel.send({ embeds: [new Discord.MessageEmbed().setDescription(`${banlanacak} kişisi bot üstüne sahip olduğu için taç hesabından giriş yapılarak ban atıldı!`)] }) }) } else { newGuild.guild.members.ban(entry.executor.id, { reason: "Sunucu Güncellediği İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Guild Update \nHata: ` + error + ``)) }
} else { newGuild.members.ban(entry.executor.id, { reason: "Sunucu Güncellediği İçin Uzaklaştırıldı" }).catch(error => console.log(`Etkinlik: Guild Update \nHata: ` + error + ``)) }
ytKapat(config.guildID)
if (newGuild.vanityURLCode && (newGuild.vanityURLCode !== config.guildURL)) {
request({
url: `https://discord.com/api/v6/guilds/${newGuild.id}/vanity-url`,
body: {
code: config.guildURL
},
json: true,
method: 'PATCH',
headers: {
"Authorization": `Bot ${client.token}`
}
}, (err, res, body) => {
if (err) {
console.log(`Etkinlik: ${module.exports.name} \nHata: ` + err + ``)
}
});
}
if (oldGuild.banner !== newGuild.banner) {
await newGuild.setBanner(oldGuild.bannerURL({ size: 4096 }));
}
if (oldGuild.icon !== newGuild.icon) {
await newGuild.setIcon(oldGuild.iconURL({ size: 4096, dynamic: true }));
}
await newGuild.edit({
name: oldGuild.name,
region: oldGuild.region,
verificationLevel: oldGuild.verificationLevel,
explicitContentFilter: oldGuild.explicitContentFilter,
afkChannel: oldGuild.afkChannel,
systemChannel: oldGuild.systemChannel,
afkTimeout: oldGuild.afkTimeout,
rulesChannel: oldGuild.rulesChannel,
publicUpdatesChannel: oldGuild.publicUpdatesChannel,
preferredLocale: oldGuild.preferredLocale,
defaultMessageNotifications: oldGuild.defaultMessageNotifications
});
let url;
if (newGuild.vanityURLCode) { url = newGuild.vanityURLCode }
else { url = "YOK" }
let eurl;
if (oldGuild.vanityURLCode) { eurl = oldGuild.vanityURLCode }
else { eurl = "YOK" }
const channel = client.channels.cache.get(aris.guardLog)
if (!channel) return;
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageButton().setCustomId('yasakkaldir').setLabel("Yasağı Kaldır!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('guvenliekle').setLabel("Güvenli Listeye Ekle!").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('ytleriac').setLabel("Yetkileri Tekrar Aç!").setStyle('DANGER'));
let log = await channel.send({ content: `@everyone **Şüpheli İşlem Tespit Edildi!**\n\n**İŞLEM :** SUNUCU GÜNCELLEME İŞLEMİ!\n\n**Sunucuyu Güncelleyen Kullanıcı: **${entry.executor} (\`${entry.executor.tag} - ${entry.executor.id}\`)\`\n\n**Yapılan İşlem :** ${islemyapan.bannable ? "Başarıyla yasaklandı" : "Yasaklanamadı"} - Sunucuyu Eski Haline Getirdim!`, components: [row] })
var filter = (button) => config.Founders.some(x => x == button.user.id); const collector = log.createMessageComponentCollector({ filter }); collector.on('collect', async (button, user) => { const permisi = await permis.findOne({ guildID: config.guildID }); if (button.customId === "yasakkaldir") { button.guild.members.unban(entry.executor.id, ` Buton Üzerinden Kaldırıldı!`); button.reply(`Merhaba ${button.user}! ${entry.executor} kişisinin banı kaldırıldı!`) } if (button.customId === "guvenliekle") { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { WhiteListMembers: entry.executor.id } }, { upsert: true }); button.reply(`Merhaba ${button.user}! Başarılı bir şekilde ${entry.executor} kişisini güvenli listeye ekledim!`) }; if(button.customId === "ytleriac") { button.reply(`Merhaba ${button.user}! Yetkileri tekrar açtım!`); permisi.roller.forEach((permission) => { const role = button.guild.roles.cache.get(permission.rol); if (role) role.setPermissions(permission.perm); }); } })
} catch (error) { console.log(`Etkinlik : Guild Update - Hata : ` + error) }
}
}
module.exports = guildUpdate
================================================
FILE: Main_Botlar/Botlar/Guard_IV/Events/ready.js
================================================
const { ariscik } = require("../../../Helpers/Schemas")
class Ready {
Event = "ready"
async run() {
setInterval(async () => {
const aris = await ariscik.findOne({ guildID: config.guildID })
const channel = client.channels.cache.get(aris.botVoiceChannel);
voice.joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
adapterCreator: channel.guild.voiceAdapterCreator,
});
}, 600 * 1000);
}
}
module.exports = Ready
================================================
FILE: Main_Botlar/Botlar/Guard_IV/Events/roleDelete.js
================================================
const { ariscik, roleBackup } = require("../../../Helpers/Schemas")
const { guvenli } = require("../../../Helpers/function")
const { rolKur } = require("../../../Helpers/BackupFunction")
class roleDelete {
Event = "roleDelete"
async run(role) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (aris.channelGuard === true) try {
let entry = await role.guild.fetchAuditLogs({ type: 'ROLE_DELETE' }).then(audit => audit.entries.first());
if (!entry || Date.now() - entry.createdTimestamp > 5000 || await guvenli(entry.executor.id)) return;
const channel = client.channels.cache.get(aris.guardLog)
const roleData = await roleBackup.findOne({ roleID: role.id })
const newRole = await role.guild.roles.create({ name: roleData ? roleData.name : role.name, color: roleData ? roleData.color : role.color, hoist: roleData ? roleData.hoist : role.hoist, position: roleData ? roleData.position : role.rawPosition, permissions: roleData ? roleData.permissions : role.permissions, mentionable: roleData ? roleData.mentionable : role.mentionable, reason: "Rol Silindiği İçin Tekrar Oluşturuldu!" });
await roleBackup.findOne({ roleID: role.id }, async (err, data) => { if (!data) { if (channel) channel.send({ content: `[${role.id}] ID'li rol silindi fakar datamda herhangi bir veri bulamadım! İşlemleri malesef gerçekleştiremiyorum!` }); console.log(`[${role.id}] ID'li rol silindi fakat herhangi bir veri olmadığı için işlem yapılmadı.`); return } rolKur(role.id, newRole) });
if (role === aris.banHammer) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { banHammer: newRole.id } }, { upsert: true }).exec(); }
if (role === aris.jailHammer) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { jailHammer: newRole.id } }, { upsert: true }).exec(); }
if (role === aris.muteHammer) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { muteHammer: newRole.id } }, { upsert: true }).exec(); }
if (role === aris.vmuteHammer) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { vmuteHammer: newRole.id } }, { upsert: true }).exec(); }
if (role === aris.clownhammer) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { clownHammer: newRole.id } }, { upsert: true }).exec(); }
if (role === aris.moveHammer) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { moveHammer: newRole.id } }, { upsert: true }).exec(); }
if (role === aris.registerHammer) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { registerHammer: newRole.id } }, { upsert: true }).exec(); }
if (role === aris.unregisterRole) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { unregisterRole: newRole.id } }, { upsert: true }).exec(); }
if (role === aris.tagRol) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { tagRol: newRole.id } }, { upsert: true }).exec(); }
if (role === aris.mutedRol) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { mutedRol: newRole.id } }, { upsert: true }).exec(); }
if (role === aris.vmutedRol) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { vmutedRol: newRole.id } }, { upsert: true }).exec();}
if (role === aris.jailedRole) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { jailedRole: newRole.id } }, { upsert: true }).exec();}
if (role === aris.etkinlikRole) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { etkinlikRole: newRole.id } }, { upsert: true }).exec(); }
if (role === aris.cekilisRole) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { cekilisRole: newRole.id } }, { upsert: true }).exec(); }
if (aris.manRoles.includes(role)) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $pull: { manRoles: role } }, { upsert: true }).exec(); await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { manRoles: newRole.id } }, { upsert: true }).exec(); }
if (aris.womanRoles.includes(role)) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $pull: { womanRoles: role } }, { upsert: true }).exec(); await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { womanRoles: newRole.id } }, { upsert: true }).exec(); }
if (aris.yonetimRoles.includes(role)) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $pull: { yonetimRoles: role } }, { upsert: true }).exec(); await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $push: { yonetimRoles: newRole.id } }, { upsert: true }).exec(); }
} catch (error) { console.log(`Etkinlik : Role Delete - Hata : ` + error) }
}
}
module.exports = roleDelete
================================================
FILE: Main_Botlar/Botlar/Guard_IV/main.js
================================================
const { Client, Intents } = require('discord.js')
const FileSync = require('lowdb/adapters/FileSync');
const config = require("../../Settings/config.json")
const client = global.client = new Client({
fetchAllMembers: true,
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_PRESENCES,
Intents.FLAGS.GUILD_MEMBERS
],
presence: {
activities: [config.durum],
status: config.status
},
});
client.adapters = file => new FileSync(`../../Settings/${file}.json`);
require("../../Helpers/Utils")(client)
require("../../Helpers/Mongo").Mongoose.Connect()
client.handler.events(client, '/Events/', __dirname);
client.login(config.Guard_IV).then(() =>
client.logger.log(`${client.user.tag} olarak giriş yapıldı!`)).catch((error) =>
client.logger.error("Discord API Botun tokenini doğrulayamadı." + error));
client
.on("disconnect", () => client.logger.warn("Bot is disconnecting..."))
.on("reconnecting", () => client.logger.log("Bot reconnecting...", "log"))
.on("error", e => client.logger.error(e))
.on("warn", info => client.logger.warn(info));
process.on("uncaughtException", err => {
const errorMsg = err.stack.replace(new RegExp(`${__dirname}/`, "g"), "./");
console.error("Beklenmedik yakalanamayan hata: ", errorMsg);
});
process.on("unhandledRejection", err => {
console.error("Promise Hatası: ", err);
});
================================================
FILE: Main_Botlar/Botlar/Moderation/Aris.js
================================================
const { Client, Collection } = require('discord.js');
const FileSync = require('lowdb/adapters/FileSync');
const path = require("path")
const config = require("../../Settings/config.json")
const fs = require('fs');
const util = require('util');
const readdir = util.promisify(fs.readdir);
class Aris extends Client {
constructor(options) {
super(options);
this.aliases = new Collection();
this.commands = new Collection();
this.cooldowns = new Collection();
this.muteLimit = new Map();
this.banLimit = new Map();
this.jailLimit = new Map();
this.kayitsizLimit = new Map();
this.cmdLimit = new Map()
this.beklemeSure = new Collection();
this.adapters = file => new FileSync(`../../Settings/${file}.json`);
this.login(config.Moderation).then(() =>
this.logger.log(`${this.user.tag} olarak giriş yapıldı!`)).catch((error) =>
this.logger.error("Discord API Botun tokenini doğrulayamadı." + error));
}
static async init() {
let category = await readdir("./Commands/");
client.logger.log(`Toplam ${category.length} kategori yüklenecek.`, "category");
category.forEach(async (dir) => {
let commands = await readdir("./Commands/" + dir + "/");
commands.filter((cmd) => cmd.split(".").pop() === "js").forEach(async (cmd) => {
const response = client.loadCommand("./Commands/" + dir, cmd);
if (response) {
client.logger.error(response, "error");
}
});
});
};
loadCommand(commandPath, commandName) {
try {
const props = new (require(`${commandPath}${path.sep}${commandName}`))(this);
this.logger.log(`Yüklenen Komut: ${props.info.name}`, "load");
props.config.location = commandPath;
if (props.init) {
props.init(this);
}
this.commands.set(props.info.name, props);
props.info.aliases.forEach(alias => {
this.aliases.set(alias, props.info.name);
});
return false;
} catch (e) {
return `Komut yüklenirken hata oluştu: ${commandName}: ${e}`;
}
}
async unloadCommand(commandPath, commandName) {
let command;
if (this.commands.has(commandName)) {
command = this.commands.get(commandName);
} else if (this.aliases.has(commandName)) {
command = this.commands.get(this.aliases.get(commandName));
}
if (!command)
return `\`${commandName}\` İsiminde herhangi bir komut bulunamadı!`;
if (command.shutdown) {
await command.shutdown(this);
}
delete require.cache[
require.resolve(`${commandPath}${path.sep}${commandName}.js`)
];
}
}
module.exports = { Aris }
================================================
FILE: Main_Botlar/Botlar/Moderation/Commands/Aris/autoscan.js
================================================
const { ariscik } = require("../../../../Helpers/Schemas")
class AutoScan extends Command {
constructor(client) {
super(client, {
name: "autoscan",
aliases: ["otokontrol","autocontrol"],
Aris: true,
});
}
async run(client, message, args, embed) {
let manRole = message.guild.roles.cache.filter(x => x.name.toLocaleLowerCase().includes('homme')).map(x => x.id)[0] || undefined
if (manRole !== undefined || manRole !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { manRoles: manRole } }, { upsert: true }).exec(); }
let womanRole = message.guild.roles.cache.filter(x => x.name.toLocaleLowerCase().includes('femme')).map(x => x.id)[0] || undefined
if (womanRole !== undefined || womanRole !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { womanRoles: womanRole } }, { upsert: true }).exec(); }
let ban = message.guild.roles.cache.filter(x => x.name.toLocaleLowerCase().includes('ban')).map(x => x.id)[0] || undefined
if (ban !== undefined || ban !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { banHammer: ban } }, { upsert: true }).exec(); }
let mute = message.guild.roles.cache.filter(x => x.name.toLocaleLowerCase().includes('mute')).map(x => x.id)[0] || undefined
if (mute !== undefined || mute !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { muteHammer: mute } }, { upsert: true }).exec(); }
let vmute = message.guild.roles.cache.filter(x => x.name.toLocaleLowerCase().includes('voice')).map(x => x.id)[0] || undefined
if (vmute !== undefined || vmute !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { vmuteHammer: vmute } }, { upsert: true }).exec(); }
let clown = message.guild.roles.cache.filter(x => x.name.toLocaleLowerCase().includes('clown')).map(x => x.id)[0] || undefined
if (clown !== undefined || clown !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { clownHammer: clown } }, { upsert: true }).exec(); }
let move = message.guild.roles.cache.filter(x => x.name.toLocaleLowerCase().includes('move')).map(x => x.id)[0] || undefined
if (move !== undefined || move !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { moveHammer: move } }, { upsert: true }).exec(); }
let register = message.guild.roles.cache.filter(x => x.name.toLocaleLowerCase().includes('register') || x.name.toLocaleLowerCase().includes('command')).map(x => x.id)[0] || undefined
if (register !== undefined || register !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { registerHammer: register } }, { upsert: true }).exec(); }
let unreg = message.guild.roles.cache.filter(x => x.name.toLocaleLowerCase().includes('unregister') || x.name.toLocaleLowerCase().includes('plebs')).map(x => x.id)[0] || undefined
if (unreg !== undefined || unreg !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { unregisterRole: unreg } }, { upsert: true }).exec(); }
let tagr = message.guild.roles.cache.filter(x => x.name.toLocaleLowerCase().includes('tagges') || x.name.toLocaleLowerCase().includes('family')).map(x => x.id)[0] || undefined
if (tagr !== undefined || tagr !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { tagRol: tagr } }, { upsert: true }).exec(); }
let muted = message.guild.roles.cache.filter(x => x.name.toLocaleLowerCase().includes('muted')).map(x => x.id)[0] || undefined
if (muted !== undefined || muted !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { mutedRole: muted } }, { upsert: true }).exec(); }
let vmuted = message.guild.roles.cache.filter(x => x.name.toLocaleLowerCase().includes('voice muted')).map(x => x.id)[0] || undefined
if (vmuted !== undefined || vmuted !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { vmutedRole: vmuted } }, { upsert: true }).exec(); }
let cezali = message.guild.roles.cache.filter(x => x.name.toLocaleLowerCase().includes('jail') || x.name.toLocaleLowerCase().includes('karantina')).map(x => x.id)[0] || undefined
if (cezali !== undefined || cezali !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { jailedRole: cezali } }, { upsert: true }).exec(); }
let booster = message.guild.roles.cache.filter(x => x.name.toLocaleLowerCase().includes('rich') || x.name.toLocaleLowerCase().includes('booster')).map(x => x.id)[0] || undefined
if (booster !== undefined || booster !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { boosterRole: booster } }, { upsert: true }).exec(); }
let etkinlik = message.guild.roles.cache.filter(x => x.name.toLocaleLowerCase().includes('etkinlik')).map(x => x.id)[0] || undefined
if (etkinlik !== undefined || etkinlik !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { etkinlikRole: etkinlik } }, { upsert: true }).exec(); }
let cekilis = message.guild.roles.cache.filter(x => x.name.toLocaleLowerCase().includes('çekiliş')).map(x => x.id)[0] || undefined
if (cekilis !== undefined || cekilis !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { cekilisRole: cekilis } }, { upsert: true }).exec(); }
// ------------------------------------ KANAL AYARLAMALARI ------------------------------------ //
let guard = message.guild.channels.cache.filter(x => x.name.toLocaleLowerCase().includes('guard')).map(x => x.id)[0] || undefined
if (guard !== undefined || guard !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { guardLog: guard } }, { upsert: true }).exec(); }
let banl = message.guild.channels.cache.filter(x => x.name.toLocaleLowerCase().includes('ban')).map(x => x.id)[0] || undefined
if (banl !== undefined || banl !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { banLog: banl } }, { upsert: true }).exec(); }
let jaill = message.guild.channels.cache.filter(x => x.name.toLocaleLowerCase().includes('jail')).map(x => x.id)[0] || undefined
if (jaill !== undefined || jaill !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { jailLog: jaill } }, { upsert: true }).exec(); }
let mutel = message.guild.channels.cache.filter(x => x.name.toLocaleLowerCase().includes('mute')).map(x => x.id)[0] || undefined
if (mutel !== undefined || mutel !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { muteLog: mutel } }, { upsert: true }).exec(); }
let tagl = message.guild.channels.cache.filter(x => x.name.toLocaleLowerCase().includes('tag')).map(x => x.id)[0] || undefined
if (tagl !== undefined || tagl !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { tagLog: tagl } }, { upsert: true }).exec(); }
let denetiml = message.guild.channels.cache.filter(x => x.name.toLocaleLowerCase().includes('denetim')).map(x => x.id)[0] || undefined
if (denetiml !== undefined || denetiml !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { denetimLog: denetiml } }, { upsert: true }).exec(); }
let mlog = message.guild.channels.cache.filter(x => x.name.toLocaleLowerCase().includes('message')).map(x => x.id)[0] || undefined
if (mlog !== undefined || mlog !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { messageLog: mlog } }, { upsert: true }).exec(); }
let vlog = message.guild.channels.cache.filter(x => x.name.toLocaleLowerCase().includes('voice')).map(x => x.id)[0] || undefined
if (vlog !== undefined || vlog !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { voiceLog: vlog } }, { upsert: true }).exec(); }
let invl = message.guild.channels.cache.filter(x => x.name.toLocaleLowerCase().includes('invite')).map(x => x.id)[0] || undefined
if (invl !== undefined || invl !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { inviteLog: invl } }, { upsert: true }).exec(); }
let roll = message.guild.channels.cache.filter(x => x.name.toLocaleLowerCase().includes('rol')).map(x => x.id)[0] || undefined
if (roll !== undefined || roll !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { rolLog: roll } }, { upsert: true }).exec(); }
let botv = message.guild.channels.cache.filter(x => x.name.toLocaleLowerCase().includes('</>')).map(x => x.id)[0] || undefined
if (botv !== undefined || botv !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { botVoiceChannel: botv } }, { upsert: true }).exec(); }
let clog = message.guild.channels.cache.filter(x => x.name.toLocaleLowerCase().includes('command')).map(x => x.id)[0] || undefined
if (clog !== undefined || clog !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { commandsChannel: clog } }, { upsert: true }).exec(); }
let wlog = message.guild.channels.cache.filter(x => x.name.toLocaleLowerCase().includes('welcome')).map(x => x.id)[0] || undefined
if (wlog !== undefined || wlog !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { welcomeChanel: wlog } }, { upsert: true }).exec(); }
let gchat = message.guild.channels.cache.filter(x => x.name.toLocaleLowerCase().includes('genel')).map(x => x.id)[0] || undefined
if (gchat !== undefined || gchat !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { genelChat: gchat } }, { upsert: true }).exec(); }
let eclog = message.guild.channels.cache.filter(x => x.name.toLocaleLowerCase().includes('rol-alma')).map(x => x.id)[0] || undefined
if (eclog !== undefined || eclog !== null) { await ariscik.findOneAndUpdate({ guildID: config.guildID }, { $set: { ecChannel: eclog } }, { upsert: true }).exec(); }
message.react(emojis.onay)
message.channel.send({ embeds: [embed.setDescription(`Merhaba ${message.author}! Oto rol ve kanal kontrolü tamamlandı!\n\n \` ❯ \` **.setup** komutu ile kontrol edebilir ve değişiklik yapabilirsin! ${emojis.onay}`)]})
}
}
module.exports = AutoScan
================================================
FILE: Main_Botlar/Botlar/Moderation/Commands/Aris/eval.js
================================================
const util = require("util");
const { ariscik } = require("../../../../Helpers/Schemas");
class Eval extends Command {
constructor(client) {
super(client, {
name: "eval",
aliases: ["eval"],
Aris: true,
});
}
async run(client, message, args) {
const aris = await ariscik.findOne({ guildID: config.guildID })
function clean(text) {
if (typeof (text) === "string") return text.replace(/`/g, "`" + String.fromCharCode(8203)).replace(/@/g, "@" + String.fromCharCode(8203));
else return text;
}
if (!args[0]) return message.reply(`Kod belirtilmedi`);
try {
//eval("(async () => { " + code + "})();")
const code = message.content.split(' ').slice(1).join(' ');
let evaled = clean(await eval(code));
if (typeof evaled !== "string") evaled = util.inspect(evaled).replace(client.token, "Siktir göt").replace(config.MongoURL, "https://pornhub.com/")
const arr = Discord.Util.splitMessage(evaled, { maxLength: 1950, char: "\n" });
arr.forEach(element => {
message.channel.send(Discord.Formatters.codeBlock("js", element));
});
} catch (err) {
message.channel.send(`\`ERROR\` \`\`\`xl\n${clean(err)}\n\`\`\``)
}
}
}
module.exports = Eval
================================================
FILE: Main_Botlar/Botlar/Moderation/Commands/Aris/pm2.js
================================================
const children = require("child_process");
class PM extends Command {
constructor(client) {
super(client, {
name: "pm2",
aliases: ["pm2","aris"],
Aris: true,
});
}
async run(client, message, args) {
const ls = children.exec(`pm2 ${args.join(' ')}`);
ls.stdout.on('data', function (data) {
const arr = Discord.Util.splitMessage(data, { maxLength: 1950, char: "\n" });
arr.forEach(element => {
message.channel.send(Discord.Formatters.codeBlock("js", element));
});
});
}
}
module.exports = PM
================================================
FILE: Main_Botlar/Botlar/Moderation/Commands/Aris/reboot.js
================================================
class Reboot extends Command {
constructor(client) {
super(client, {
name: "reboot",
aliases: ["reboot"],
Aris: true,
});
}
async run(client, message, args) {
if (!args[0]) {
await message.reply(`Bot yeniden başlatılıyor..`)
process.exit(0)
}
else {
let komutAd = args[0].toLowerCase()
let cmd = client.commands.get(komutAd) || client.commands.get(client.aliases.get(komutAd));
if (!cmd) {
return message.reply(`\`${komutAd}\` isminde bir komut bulunamadı!`)
}
await client.unloadCommand(cmd.config.location, cmd.info.name);
await client.loadCommand(cmd.config.location, cmd.info.name);
message.channel.send(`\`${cmd.info.name.charAt(0).replace('i', "İ").toUpperCase() + cmd.info.name.slice(1)}\` isimli komut yeniden başlatılıyor...`)
}
}
}
module.exports = Reboot
================================================
FILE: Main_Botlar/Botlar/Moderation/Commands/Aris/templateCommand.js
================================================
const { ariscik } = require('../../../../Helpers/Schemas')
class Test extends Command {
constructor(client) {
super(client, {
name: "test",
aliases: ["test"],
Aris: true,
Founder: true
});
}
async run(client, message, args, embed) {
}
}
module.exports = Test
================================================
FILE: Main_Botlar/Botlar/Moderation/Commands/Aris/test.js
================================================
const { ariscik, market } = require('../../../../Helpers/Schemas')
class Test extends Command {
constructor(client) {
super(client, {
name: "test",
aliases: ["test"],
Aris: true,
});
}
async run(client, message, args, embed) {
const aris = await ariscik.findOne({ guildID: message.guild.id })
/*const results = [];
const datas = await market.findOne({ guildID: message.guild.id })
for (let i = 0; i < datas.urunler.length; i += 5) {
const options = [];
let custom = secretOluştur(2)
datas.urunler.slice(i, i + 5).forEach(async (x) => {
options.push({ label: "Ürün : " + x.urunismi , description: x.urunfiyat + " Coin", value: `${x.urunismi}` });
});
results.push(
new Discord.MessageSelectMenu()
.setCustomId(custom)
.setPlaceholder('Nothing selected.')
.addOptions(options)
);
console.log(results)
}
const row = new Discord.MessageActionRow().addComponents(
results
);
console.log(row)
message.channel.send({ embeds: [embed.setDescription(`Sa`)], components: [row]})
*/
//console.log(aris.tags.some(tag => member.user.username.includes(tag) || member.user.discriminator == aris.tags.filter(discrim => !isNaN(discrim))[0]))
aris.tags.some(tag => console.log(tag))
//aris.tags.filter(discrim => console.log(!isNaN(discrim))[0])
let member = message.member
//console.log(member.user.discriminator == aris.tags.filter(discrim => !isNaN(discrim)))
console.log(aris.tags.filter(t => t.startsWith("#")))
if (aris.tags.some(tag => member.user.username.includes(tag)) || member.user.discriminator == aris.tags.filter(t => t.startsWith("#"))) {
console.log("buldum")
} else {
console.log("bulamadım")
}
message.channel.send(`${message.guild.members.cache.filter(x => aris.tags.some(tag => x.user.username.includes(tag)) || x.user.discriminator == aris.tags.filter(t => t.startsWith("#"))).size}`)
}
}
module.exports = Test
function secretOluştur(length) { var result = ''; var characters = 'abcdefghijklmnopqrstuvwxyz'; var charactersLength = characters.length; for ( var i = 0; i < length; i++ ) { result += characters.charAt(Math.floor(Math.random() * charactersLength)); } return result; }
================================================
FILE: Main_Botlar/Botlar/Moderation/Commands/CoinTask/give-removeTasks.js
================================================
const { ariscik, tasks } = require("../../../../Helpers/Schemas")
const moment = require("moment")
moment.locale("tr")
class Tasks extends Command {
constructor(client) {
super(client, {
name: "task",
aliases: ["görev", "tasks", "görevver"],
Founder: true,
});
}
async run(client, message, args, embed) {
const aris = await ariscik.findOne({ guildID: config.guildID });
const type = args[2];
const duration = 1000 * 60 * (["hourly", "saatlik"].includes(args[3]) ? 60 : ["daily", "günlük"].includes(args[3]) ? 60 * 24 : ["weekly", "haftalık"].includes(args[3]) ? 60 * 24 * 7 : args[3]);
let count = args[4];
const prizeCount = args[5];
const channels = [...message.mentions.channels.values()];
if (!args[0]) return message.channel.send({ embeds: [embed.setDescription(`**UYARI :** Bir argüman belirtmelisin! \`ver - sil - dağıt\``)] })
if (args[0] == 'dağıt' || args[0] == 'dagit' || args[0] == 'dağit') {
let arr = ["davet", "mesaj", "ses", "taglı", "teyit"];
let dagit = []
await client.guilds.cache.get(config.guildID).roles.cache.get(aris.registerHammer).members.array().forEach((x, index) => {
let random = arr[Math.floor(Math.random() * arr.length)]
dagit.push({
user: x.id,
gorev: random
})
});
let veri = dagit;
client.channels.cache.get(aris.dailyMissionLog).send(`${client.guilds.cache.get(config.guildID).name} ${moment(Date.now()).locale("tr").format("LLL")} tarihinde dağıtılan günlük görevler;`);
veri.forEach((user, index) => {
setTimeout(async () => {
if (index >= veri.length) return client.channels.cache.get(aris.dailyMissionLog).send(`Başarılı bir şekilde tüm görevlerin dağıtımı tamamlandı!`);
let mesajRandom = getRandomInt(300, 400)
let davetRandom = getRandomInt(5, 10)
let sesRandom = getRandomInt(60, 300)
let taglıRandom = getRandomInt(1, 3)
let teyitRandom = getRandomInt(5, 20)
let miktarlar = user.gorev == "mesaj" ? mesajRandom : user.gorev == "davet" ? davetRandom : user.gorev == "ses" ? sesRandom : user.gorev == "taglı" ? taglıRandom : user.gorev == "teyit" ? teyitRandom : 0
if (user.gorev == 'ses') {
const id = await tasks.find({ guildID: config.guildID });
client.channels.cache.get(aris.dailyMissionLog).send(`<@${user.user}> bugün ses kanallarında \`${miktarlar}\` dakika ses aktifliği görevi aldın!`)
await new tasks({ guildID: config.guildID, userID: user.user, id: id ? id.length + 1 : 1, type: "ses", count: miktarlar, prizeCount: 35, active: true, finishDate: moment().endOf('day'), channels: null, message: `Ses kanallarında ${miktarlar} dakika vakit geçir!` }).save();
}
if (user.gorev == 'mesaj') {
const id = await tasks.find({ guildID: config.guildID });
client.channels.cache.get(aris.dailyMissionLog).send(`<@${user.user}> bugün <#${aris.genelChat}> kanalında \`${miktarlar}\` mesaj atma görevi aldın!`)
await new tasks({ guildID: config.guildID, userID: user.user, id: id ? id.length + 1 : 1, type: "mesaj", count: miktarlar, prizeCount: 35, active: true, finishDate: moment().endOf('day'), channels: aris.genelChat, message: `<#${aris.genelChat}> kanalında ${miktarlar} mesaj at!` }).save();
}
if (user.gorev == 'taglı') {
const id = await tasks.find({ guildID: config.guildID });
client.channels.cache.get(aris.dailyMissionLog).send(`<@${user.user}> bugün \`${miktarlar}\` adet taglı üye çekme görevi aldın!`)
await new tasks({ guildID: config.guildID, userID: user.user, id: id ? id.length + 1 : 1, type: "taglı", count: miktarlar, prizeCount: 35, active: true, finishDate: moment().endOf('day'), channels: null, message: `${miktarlar} adet taglı üye çek!` }).save();
}
if (user.gorev == 'teyit') {
const id = await tasks.find({ guildID: config.guildID });
client.channels.cache.get(aris.dailyMissionLog).send(`<@${user.user}> bugün \`${miktarlar}\` adet kayıt yapma görevi aldın!`)
await new tasks({ guildID: config.guildID, userID: user.user, id: id ? id.length + 1 : 1, type: "kayıt", count: miktarlar, prizeCount: 35, active: true, finishDate: moment().endOf('day'), channels: null, message: `${miktarlar} adet kayıt yap!` }).save();
}
if (user.gorev == 'davet') {
const id = await tasks.find({ guildID: config.guildID });
client.channels.cache.get(aris.dailyMissionLog).send(`<@${user.user}> bugün \`${miktarlar}\` adet davet görevi aldın!`)
await new tasks({ guildID: config.guildID, userID: user.user, id: id ? id.length + 1 : 1, type: "invite", count: miktarlar, prizeCount: 35, active: true, finishDate: moment().endOf('day'), channels: null, message: `${miktarlar} adet invite yap!` }).save();
}
}, index * 2000)
})
} else if (args[0] == 'ver' || args[0] == 'yükle' || args[0] == 'ekle') {
const member = message.mentions.members.first() || message.guild.members.cache.get(args[1]);
let role = null;
if (!member && message.mentions.roles.first()) role = message.mentions.roles.first();
else if (!member) return message.channel.send({ embeds: [embed.setDescription(`**UYARI :** Bir üye belirtmeyi unuttun!`)] }).sil(20)
if (!role && !member.roles.cache.has(aris.registerHammer)) return message.channel.send({ embeds: [embed.setDescription(`**UYARI :** Bu üye bir yetkili değil!`)] }).sil(40);
if (!type || !["invite", "ses", "mesaj", "taglı", "kayıt"].includes(type)) return message.channel.send({ embeds: [embed.setDescription(`**UYARI: ** Bir görev tipi belirt! \`invite - ses - mesaj - taglı - kayıt\``)] })
if (type === "ses") count = 1000 * 60 * count;
if (!args[3]) return message.channel.send({ embeds: [embed.setDescription(`** UYARI**: Bir süre belirtmelisin!`)] }).sil(40)
if (!count || isNaN(count)) return message.channel.send({ embeds: [embed.setDescription(`Bir miktar belirtmelisin!`)] }).sil(20)
if (!prizeCount || isNaN(prizeCount)) return message.channel.send({ embeds: [embed.setDescription(`**UYARI :** Bir ödül belirlemeyi unuttun!`)] }).sil(40)
let taskMessage;
switch (type) {
case "invite":
taskMessage = `**Sunucumuza ${count} kişi davet et!**`;
break;
case "mesaj":
taskMessage = channels.length ? `**${channels.map((x) => `<#${x}>`).join(", ")} ${channels.length > 1 ? "kanallarında" : "kanalında"} ${count} mesaj at!**` : `**Metin kanallarında ${count} mesaj at!**`;
break;
case "ses":
taskMessage = channels.length ? `**${channels.map((x) => `<#${x}>`).join(", ")} ${channels.length > 1 ? "kanallarında" : "kanalında"} ${count / 1000 / 60} dakika vakit geçir!` : `**Seste ${count / 1000 / 60} dakika vakit geçir!**`;
break;
case "taglı":
taskMessage = `**${count} kişiye tag aldır!**`;
break;
case "kayıt":
taskMessage = `**Sunucumuzda ${count} kişi kayıt et!**`;
break;
}
if (role) {
const members = role.members.filter((x) => x.roles.cache.has(aris.registerHammer));
if (!members.size) return message.channel.send({ embeds: [embed.setDescription(`**UYARI :** ${role.toString()} rolü olan kimse yetkili değil!`)] }).sil(50)
await members.forEach(async (member) => {
const id = await tasks.find({ guildID: message.guild.id });
await new tasks({ guildID: message.guild.id, userID: member.user.id, id: id ? id.length + 1 : 1, type: type, count: count, prizeCount: prizeCount, active: true, finishDate: Date.now() + duration, channels: channels.length ? channels.map((x) => x.id) : null, message: taskMessage }).save();
});
await message.channel.send({ embeds: [embed.setDescription(`${message.mentions.roles.first().toString()} rolüne sahip olan tüm üyelere başarıyla ${type} görevi verildi! \nGörev verilen üyeler: ${members.map((x) => x.toString()).join(", ")}`)] }).sil(50);
if (aris.dailyMissionLog) client.channels.cache.get(aris.dailyMissionLog).send(`${members.map((x) => x.toString()).join(", ")} üyelerine ${type} görevi dağıtıldı!`)
} else {
const id = await tasks.find({ guildID: message.guild.id });
await new tasks({ guildID: message.guild.id, userID: member.id, id: id ? id.length + 1 : 1, type: type, count: count, prizeCount: prizeCount, active: true, finishDate: Date.now() + duration, channels: channels.length ? channels.map((x) => x.id) : null, message: taskMessage }).save();
message.channel.send({ embeds: [embed.setDescription(`${member.toString()} üyesine başarıyla ${type} görevi verildi!`)] }).sil(50)
if (aris.dailyMissionLog) client.channels.cache.get(aris.dailyMissionLog).send(`${member.toString()} üyesine ${type} görevi verildi!`)
}
} else if (args[0] == 'sil' || args[0] == 'temizle') {
const id = args[1];
if (!id || isNaN(id)) return message.channel.send({ embeds: [embed.setDescription(`**UYARI :** Bir görev id'si belirtmelisin!`)] }).sil(20);
await tasks.deleteOne({ guildID: message.guild.id, id });
await message.channel.send({ embeds: [embed.setDescription(`${emojis.onay} ${id} ID'li görev başarılı bir şekilde silindi!`)] });
await message.react(emojis.onay)
}
}
}
module.exports = Tasks
function getRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1)) + min;
}
================================================
FILE: Main_Botlar/Botlar/Moderation/Commands/CoinTask/senkronRank.js
================================================
const { ariscik, coin } = require('../../../../Helpers/Schemas')
class SenkronRank extends Command {
constructor(client) {
super(client, {
name: "senkron",
aliases: ["senkronize"],
Founder: true
});
}
async run(client, message, args, embed) {
const coinDatas = await coin.findOne({ guildID: message.guild.id })
if (args[0] === "kişi" || args[0] === "user") {
const member = message.mentions.members.first() || message.guild.members.cache.get(args[1]);
if (!member) return message.reply({ embeds: [embed.setDescription("Bir kullanıcı belirtmelisin!")] }).sil(20)
if (coinDatas.advancedRanks.map(x => member.hasRole(x.role))) {
let rank = coinDatas.advancedRanks.filter(x => member.hasRole(x.role));
rank = rank[rank.length - 1];
await coin.findOneAndUpdate({ guildID: message.guild.id, userID: member.user.id }, { $set: { coin: rank.coin } }, { upsert: true });
message.reply({ embeds: [embed.setDescription(`${member.toString()} üyesinde ${Array.isArray(rank.role) ? rank.role.map(x => `<@&${x}>`).join(", ") : `<@&${rank.role}>`} rolü bulundu ve coini ${rank.coin} olarak değiştirildi!`)] });
} else return message.reply({ embeds: [embed.setDescription(`${member.toString()} üyesinde sistemde ayarlı bir rol bulunamadı!`)] });
} else if (args[0] === "role" || args[0] === "rol") {
const role = message.mentions.roles.first() || message.guild.roles.cache.get(args[1]);
if (!role) return message.reply({ embeds: [embed.setDescription("Bir rol belirtmelisin!")] });
if (role.members.length === 0) return message.reply({ embeds: [embed.setDescription("Bu rolde üye bulunmuyor!")] });
role.members.forEach(async member => {
if (member.user.bot) return;
if (coinDatas.advancedRanks.map(x => member.hasRole(x.role))) {
let rank = coinDatas.advancedRanks.filter(x => member.hasRole(x.role));
rank = rank[rank.length - 1];
await coin.findOneAndUpdate({ guildID: message.guild.id, userID: member.user.id }, { $set: { coin: rank.coin } }, { upsert: true });
message.reply({ embeds: [embed.setDescription(`${member.toString()} üyesinde ${Array.isArray(rank.role) ? rank.role.map(x => `<@&${x}>`).join(", ") : `<@&${rank.role}>`} rolü bulundu ve coini ${rank.coin} olarak değiştirildi!`)] });
} else return message.reply({ embeds: [embed.setDescription(`${member.toString()} üyesinde sistemde ayarlı bir rol bulunamadı!`)] });
});
} else return message.reply({ embeds: [embed.setDescription("Bir argüman belirtmelisin! \`kişi - rol\`")] });
}
}
module.exports = SenkronRank
================================================
FILE: Main_Botlar/Botlar/Moderation/Commands/CoinTask/setRank.js
================================================
const { ariscik, coin } = require("../../../../Helpers/Schemas")
class SetRank extends Command {
constructor(client) {
super(client, {
name: "rank",
aliases: ["rank", "rankekle", "setrank"],
Founder: true,
});
}
async run(client, message, args, embed) {
const coinDatas = await coin.findOne({ guildID: message.guild.id })
const vcoin = args[1];
if (!["ekle", "add", "sil", "delete", "temizle", "clear", "liste", "list"].includes(args[0])) return message.reply(`Bir argüman belirt! \`ekle - sil - temizle - liste\``).sil(50)
if (["ekle", "add"].includes(args[0])) {
if (!vcoin || isNaN(vcoin)) return message.reply("Eklenecek yetkinin coinini belirtmelisin!");
if (coinDatas) {
if (coinDatas.advancedRanks.some((x) => x.coin == vcoin)) return message.channel.send({ embeds: [embed.setDescription(`**UYARI :** \`${vcoin}\` coinine ulaşıldığında verilecek roller zaten ayarlanmış!`)] }).sil(30)
const roles = [...message.mentions.roles.values()];
if (!roles || !roles.length) return message.reply({ embeds: [embed.setDescription("Eklenecek yetkinin rol(leri) belirtmelisin!")] });
await coin.findOneAndUpdate({ guildID: config.guildID }, { $push: { advancedRanks: { role: roles.map((x) => x.id), coin: parseInt(vcoin) } } }, { upsert: true })
message.channel.send({ embeds: [embed.setDescription(`${vcoin} coine ulaşıldığında verilecek roller ayarlandı! \nVerilecek Roller: ${roles.map((x) => `<@&${x.id}>`).join(", ")}`)] });
} else {
const roles = [...message.mentions.roles.values()];
if (!roles || !roles.length) return message.reply({ embeds: [embed.setDescription("Eklenecek yetkinin rol(leri) belirtmelisin!")] }).sil(20)
await coin.findOneAndUpdate({ guildID: config.guildID }, { $push: { advancedRanks: { role: roles.map((x) => x.id), coin: parseInt(vcoin) } } }, { upsert: true })
message.channel.send({ embeds: [embed.setDescription(`${vcoin} coine ulaşıldığında verilecek roller ayarlandı! \nVerilecek Roller: ${roles.map((x) => `<@&${x.id}>`).join(", ")}`)] });
}
} else if (["sil", "delete", "remove"].includes(args[0])) {
if (!vcoin || isNaN(vcoin)) return message.reply({ embeds: [embed.setDescription("Silinecek yetkinin coinini belirtmelisin!")] });
if (!coinDatas.advancedRanks.map((x) => x.coin == vcoin)) return message.channel.send({ embeds: [embed.setDescription(`**UYARI :** \`${vcoin}\` coinine ulaşıldığında verilecek roller ayarlanmamış!`)] }).sil(30)
await coin.findOneAndUpdate({ $pull: { advancedRanks: { coin: parseInt(vcoin) } } });
message.channel.send({ embeds: [embed.setDescription(`${vcoin} coine ulaşıldığında verilecek roller silindi!`)] });
} else if (["temizle", "clear"].includes(args[0])) {
global.rankdb.set("ranks", []);
message.channel.send({ embeds: [embed.setDescription("Tüm yetkiler başarıyla temizlendi!")] });
} else if (["liste", "list"].includes(args[0]))
if (coinDatas.advancedRanks) {
message.channel.send({ embeds: [embed.setDescription(coinDatas.advancedRanks.map((x) => `${Array.isArray(x.role) ? x.role.map(x => `<@&${x}>`).join(", ") : `<@&${x.role}>`}: ${x.coin}`).join("\n"))] });
} else {
message.channel.send({ embeds: [embed.setDescription(`**UYARI :** Datamda ayarlanmış rol bulamadım!`)] }).sil(40)
}
}
}
module.exports = SetRank
================================================
FILE: Main_Botlar/Botlar/Moderation/Commands/CoinTask/taggeds.js
================================================
const { ariscik, Users } = require('../../../../Helpers/Schemas')
class Taggeds extends Command {
constructor(client) {
super(client, {
name: "taggeds",
aliases: ["taglılar", "taglılarım", "taglısay"],
cooldown: 10
});
}
async run(client, message, args, embed) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (!message.member.roles.cache.has(aris.registerHammer)) return message.reply(`Bu komutu kullanmak için yeterli yetkiniz yok!`).sil(20)
let member = message.mentions.members.first() || message.guild.members.cache.get(args[0]) || message.member
var sayi = 1
var currentPage = 1
let data = await Users.findOne({ userID: member.id })
if (!data || data && !data.Taggeds.length) return message.reply({ embeds: [embed.setDescription(`Kullanıcıya ait herhangi bir taglı verisi bulunamadı!`)] }).sil(10)
let taggeds = data.Taggeds
taggeds.map(e => e ? `${sayi++}-` : "")
let pages = taggeds.chunk(15);
if (!pages.length || !pages[currentPage - 1].length) return message.reply({ embeds: [embed.setDescription(`Kullanıcıya ait herhangi bir taglı verisi bulunamadı!`)] })
if (pages.length === 1) {
await message.reply({ embeds: [embed.setDescription(`${member} adlı kullanıcının toplam **${sayi - 1}** taglısı bulundu!\n\n${pages[currentPage - 1].map(e => e ? ` <@!${e.userID}> - ${new Date(e.date).toTurkishFormatDate()}` : "").join("\n")}`).setFooter(`Developed By Aris.`)] })
} else {
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageButton().setCustomId('geri').setLabel("◀").setStyle('PRIMARY'), new Discord.MessageButton().setCustomId('iptal').setLabel("❌").setStyle('DANGER'), new Discord.MessageButton().setCustomId('ileri').setLabel("▶").setStyle('PRIMARY'),);
let msg = await message.reply({ components: [row], embeds: [embed.setDescription(`${member} adlı kullanıcının toplam **${sayi - 1}** taglısı bulundu!\n\n${pages[currentPage - 1].map(e => e ? ` <@!${e.userID}> - ${new Date(e.date).toTurkishFormatDate()}` : "").join("\n")}`).setFooter(`Sayfa: ${currentPage}`)] })
var filter = (button) => button.user.id === message.author.id;
const collector = msg.createMessageComponentCollector({ filter })
collector.on('collect', async (button, user) => {
if (button.customId === "ileri") {
await button.deferUpdate();
if (currentPage == pages.length) return;
currentPage++;
if (msg) msg.edit({ embeds: [embed.setDescription(`${pages[currentPage - 1].map(e => e ? `<@!${e.userID}> - ${new Date(e.date).toTurkishFormatDate()}` : "").join("\n")}`).setFooter(`Sayfa: ${currentPage}`)] });
}
if (button.customId === "geri") {
await button.deferUpdate();
if (currentPage == 1) return;
currentPage--;
if (msg) msg.edit({ embeds: [embed.setDescription(`${pages[currentPage - 1].map(e => e ? `<@!${e.userID}> - ${new Date(e.date).toTurkishFormatDate()}` : "").join("\n")}`).setFooter(`Sayfa: ${currentPage}`)] });
}
if (button.customId === "iptal") {
if (msg) msg.delete().catch(err => { });
if (message) return message.delete().catch(err => { });
}
})
}
}
}
module.exports = Taggeds
================================================
FILE: Main_Botlar/Botlar/Moderation/Commands/CoinTask/tagges.js
================================================
const { ariscik, Users, coin } = require('../../../../Helpers/Schemas')
class Tagges extends Command {
constructor(client) {
super(client, {
name: "taglı",
aliases: ["tagges", "tagaldır", "tagaldir"],
cooldown: 10
});
}
async run(client, message, args, embed) {
const member = message.mentions.members.first() || message.guild.members.cache.get(args[0]);
const aris = await ariscik.findOne({ guildID: message.guild.id })
if (!aris.commandsChannel.some(kanal => message.channel.id.includes(kanal))) return message.reply(`**UYARI:** Bu komutu yalnızca <#${aris.commandsChannel[0]}> kanalında kullanabilirsin!`).sil(10)
if (!message.member.roles.cache.has(aris.registerHammer) && !config.Founders.includes(message.member)) return message.channel.send({ embeds: [embed.setDescription(`**UYARI :** Bu komutu kullanmak için yeterli yetkin bulunmamakta!`)] }).sil(20)
if (!member) return message.channel.send({ embeds: [embed.setDescription(`**UYARI :** Bir üye belirtmeyi unuttun!`)] }).sil(20)
if (member.id === message.author.id) return message.channel.send({ embeds: [embed.setDescription(`**UYARI :** Kendinin üzerinde işlem yapamazsın!`)] }).sil(20);
if (!aris.tags.some(tag => member.user.tag.includes(tag))) return message.channel.send({ embeds: [embed.setDescription(`**UYARI :** Belirttiğin kişi tagımızı taşımıyor!`)] }).sil(20);
let veri = await Users.findOne({ Taggeds: { $elemMatch: { userID: member.id } } })
if (veri && veri.Taggeds.filter(a => a.userID === member.id)) {
return message.channel.send({ embeds: [embed.setDescription(`**UYARI :** Belirttiğin üye \`${(veri.Taggeds.filter(e => e.userID === member.id).map(e => new Date(e.date).toTurkishFormatDate()))}\` tarihinde başka bir yetkili tarafından taglı olarak belirlenmiş!`)] }).sil(20)
} else {
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageButton().setCustomId('onayla').setLabel(`✔️`).setStyle('SUCCESS'), new Discord.MessageButton().setCustomId('iptalet').setLabel(`❌`).setStyle('DANGER'))
let msg = await message.channel.send({ embeds: [embed.setDescription(`${member} Merhaba! ${message.author} sizi taglı olarak belirtmek istiyor. Onaylıyor musunuz?`).setFooter(`İstek 30 saniye içerisinde iptal edilecektir.`)], components: [row], content: `${member}` })
var filter = (button) => button.user.id === member.user.id;
const collector = msg.createMessageComponentCollector({ filter, time: 30000 })
collector.on('collect', async (button, user) => {
if (button.customId === "onayla") {
if (msg) msg.delete().catch(err => { });
await button.reply({ content: `${member} kişisi taglı isteğinizi onayladı! ${emojis.onay}` }).sil(20)
await Users.findOneAndUpdate({ userID: message.author.id }, { $push: { Taggeds: { userID: member.id, date: Date.now() } } }, { upsert: true });
client.channels.cache.get(aris.tagLog).send({ embeds: [embed.setDescription(`${member} kişisi ${message.author} yetkilisi tarafından **${new Date(message.createdAt).toTurkishFormatDate()}** tarihinde taglı olarak belirlendi!`).setFooter("Developed By Aris.")] })
if (aris.coinSystem) await coin.findOneAndUpdate({ guildID: message.guild.id, userID: message.author.id }, { $inc: { coin: config.taggedCoin } }, { upsert: true });
message.member.updateTask(message.guild.id, "taglı", 1, message.channel);
}
if (button.customId === "iptalet") {
if (msg) msg.delete().catch(err => { });
await button.reply({ content: `${member} kişisi istediğinizi onaylamadı!` }).sil(20);
}
})
collector.on("end", async (collected, button) => {
if (collected.size == 0) {
if (msg) msg.delete().catch(err => { });
await button.reply({ content: `${message.author} ${member} kişisi 30 saniye içerisinde cevap vermediği için işlem iptal edildi!` }).sil(20)
}
})
}
}
}
module.exports = Tagges
================================================
FILE: Main_Botlar/Botlar/Moderation/Commands/CoinTask/tasks.js
================================================
const { ariscik, tasks } = require('../../../../Helpers/Schemas')
const moment = require("moment"); require("moment-duration-format");
class Tasks extends Command {
constructor(client) {
super(client, {
name: "tasks",
aliases: ["görevlerim", "görevler", "yapmamgereken"],
cooldown: 10
});
}
async run(client, message, args, embed) {
const aris = await ariscik.findOne({ guildID: message.guild.id })
if (!aris.commandsChannel.some(kanal => message.channel.id.includes(kanal))) return message.reply(`**UYARI:** Bu komutu yalnızca <#${aris.commandsChannel[0]}> kanalında kullanabilirsin!`).sil(10)
if (!message.member.roles.cache.has(aris.registerHammer) && !aris.yonetimRoles.some(rol => message.member.roles.cache.has(rol))) return message.reply(`**UYARI: **Bu komutu kullanmak için yeterli yetkiye sahip değilsin!`).sil(10);
const member = message.mentions.members.first() || message.guild.members.cache.get(args[0]) || message.member;
const mtask = await tasks.find({ guildID: message.guild.id, userID: member.user.id });
message.channel.send({
embeds: [embed.setDescription(`
Toplam Görev Sayısı: \`${mtask.length}\`
Tamamlanmış Görev Sayısı: \`${mtask.filter((x) => x.completed).length}\`
Tamamlanmamış Görev Sayısı: \`${mtask.filter((x) => !x.completed).length}\`
Aktif Görev Sayısı: \`${mtask.filter((x) => x.active).length}\`
${mtask.filter((x) => x.active).map((x) => `\`#${x.id}\` ${x.message} \n${x.completedCount >= x.count ? emojis.onay + " **Tamamlandı!**" : `${progressBar(x.completedCount, x.count, 8)} \`${x.type === "ses" ? `${moment.duration(x.completedCount).format("H [saat], m [dk], s [sn]")} / ${moment.duration(x.count).format("H [saat], m [dk], s [sn]")}` : `${x.completedCount} / ${x.count}`}\` \nKalan Süre: \`${moment.duration(x.finishDate - Date.now()).format("H [saat], m [dakika] s [saniye]")}\` \nÖdül: ${emojis.onay} \`${x.prizeCount} coin\``}`).join("\n\n")}
`)]
})
}
}
module.exports = Tasks
function progressBar(value, maxValue, size) {
const progress = Math.round(size * ((value / maxValue) > 1 ? 1 : (value / maxValue)));
const emptyProgress = size - progress > 0 ? size - progress : 0;
const progressText = emojis.fill.repeat(progress);
const emptyProgressText = emojis.empty.repeat(emptyProgress);
return emptyProgress > 0 ? emojis.fillStart + progressText + emptyProgressText + emojis.emptyEnd : emojis.fillStart + progressText + emptyProgressText + emojis.fillEnd;
};
================================================
FILE: Main_Botlar/Botlar/Moderation/Commands/CoinTask/topTaggeds.js
================================================
const { ariscik, Users } = require('../../../../Helpers/Schemas')
class TopTaggeds extends Command {
constructor(client) {
super(client, {
name: "toptaggeds",
aliases: ["toptaglılar", "toptaglı", "toptaglısay"],
cooldown: 10
});
}
async run(client, message, args, embed) {
const aris = await ariscik.findOne({ guildID: config.guildID })
if (!message.member.roles.cache.has(aris.tagRol)) return message.reply("Yetkin yok!")
await Users.find().exec((err, data) => {
data = data.filter(m => message.guild.members.cache.has(m.userID));
let topTagli = data.filter(x => x.Taggeds).sort((uye1, uye2) => {
let uye2Toplam2 = 0;
uye2Toplam2 = uye2.Taggeds.length
let uye1Toplam2 = 0;
uye1Toplam2 = uye1.Taggeds.length
return uye2Toplam2-uye1Toplam2;
}).slice(0, 20).map((m, index) => {
let uyeToplam2 = 0;
uyeToplam2 = m.Taggeds.length
return `\`${index == 0 ? `👑` : `${index+1}.`}\` ${message.guild.members.cache.get(m.userID)} toplam taglıları \`${uyeToplam2} üye\` ${m.id == message.member.id ? `**(Siz)**` : ``}`;
}).join('\n');
message.channel.send({embeds: [embed.setDescription(`${topTagli ? `${topTagli}` : `\`${message.guild.name}\` sunucusun da taglı bilgileri bulunamadı.`}`)] })
})
}
}
module.exports = TopTaggeds
================================================
FILE: Main_Botlar/Botlar/Moderation/Commands/CoinTask/yStat.js
================================================
const { ariscik, tasks, messageUser, voiceUser, coin, Users, Inviter, Penalties } = require('../../../../Helpers/Schemas')
const moment = require("moment"); require("moment-duration-format");
class YStat extends Command {
constructor(client) {
super(client, {
name: "ystat",
aliases: ["yetkim", "görevlerim", "tasks"],
cooldown: 10
});
}
async run(client, message, args, embed) {
const aris = await ariscik.findOne({ guildID: message.guild.id })
const coinDatas = await coin.findOne({ guildID: message.guild.id })
if (!aris.commandsChannel.some(kanal => message.channel.id.includes(kanal))) return message.reply(`**UYARI:** Bu komutu yalnızca <#${aris.commandsChannel[0]}> kanalında kullanabilirsin!`).sil(10)
if (!message.member.roles.cache.has(aris.registerHammer) && !aris.yonetimRoles.some(rol => message.member.roles.cache.has(rol))) return message.reply(`**UYARI: **Bu komutu kullanmak için yeterli yetkiye sahip değilsin!`).sil(10);
const member = message.mentions.members.first() || message.guild.members.cache.get(args[0]) || message.member;
const coinData = await coin.findOne({ guildID: message.guild.id, userID: member.user.id });
const maxValue = coinDatas.advancedRanks[coinDatas.advancedRanks.indexOf(coinDatas.advancedRanks.find(x => x.coin >= (coinData ? Math.floor(coinData.coin) : 0)))] || coinDatas.advancedRanks[coinDatas.advancedRanks.length - 1];
const taggedData = await Users.findOne({ userID: member.user.id });
const data = await Inviter.findOne({ guildID: message.guild.id, userID: member.user.id });
const total = data ? data.total : 0;
const bonus = data ? data.bonus : 0;
const toplamData = await Users.findOne({ userID: member.user.id });
const messageData = await messageUser.findOne({ guildID: message.guild.id, userID: member.id });
const voiceData = await voiceUser.findOne({ guildID: message.guild.id, userID: member.user.id });
const cezapuanData = await Penalties.findOne({ guildID: message.guild.id, userID: member.user.id });
let currentRank = coinDatas.advancedRanks.filter(x => (coinData ? Math.floor(coinData.coin) : 0) >= x.coin);
currentRank = currentRank[currentRank.length - 1];
const task = await tasks.find({ guildID: message.guild.id, userID: member.id })
var gorevlerim = new Discord.MessageButton().setCustomId('gorevlerim').setLabel(`Görevler`).setStyle('DANGER');
task.filter(x => {
if (x.active) {
gorevlerim.setStyle('DANGER').setDisabled(false);
} else {
gorevlerim.setStyle('PRIMARY').setDisabled(true);
}
})
const row = new Discord.MessageActionRow().addComponents([gorevlerim])
const coinStatus = aris.coinSystem && message.member.roles.cache.has(aris.registerHammer, false) && coinDatas.advancedRanks.length > 0 ?
`
**${emojis.star} Yetki Durumu:**
${progressBar(coinData ? Math.floor(coinData.coin) : 0, maxValue.coin, 8)} \`${coinData ? Math.floor(coinData.coin) : 0} / ${maxValue.coin}\`
${currentRank ? `${currentRank !== coinDatas.advancedRanks[coinDatas.advancedRanks.length - 1] ? `Şu an ${Array.isArray(currentRank.role) ? currentRank.role.map(x => `<@&${x}>`).join(", ") : `<@&${currentRank.role}>`} rolündesiniz. ${Array.isArray(maxValue.role) ? maxValue.role.length > 1 ? maxValue.role.slice(0, -1).map(x => `<@&${x}>`).join(", ") + " ve " + maxValue.role.map(x => `<@&${x}>`).slice(-1) : maxValue.role.map(x => `<@&${x}>`).join("") : `<@&${maxValue.role}>`} rolüne ulaşmak için \`${Math.floor(maxValue.coin - coinData.coin)}\` coin daha kazanmanız gerekiyor!` : "Şu an son yetkidesiniz! Emekleriniz için teşekkür ederiz."}` : `${Array.isArray(maxValue.role) ? maxValue.role.length > 1 ? maxValue.role.slice(0, -1).map(x => `<@&${x}>`).join(", ") + " ve " + maxValue.role.map(x => `<@&${x}>`).slice(-1) : maxValue.role.map(x => `<@&${x}>`).join("") : `<@&${maxValue.role}>`} rolüne ulaşmak için \`${maxValue.coin - (coinData ? Math.floor(coinData.coin) : 0)}\` coin daha kazanmanız gerekiyor!`}` : "";
embed.setThumbnail(member.user.avatarURL({ dynamic: true, size: 2048 }))
embed.setAuthor(member.user.username, member.user.avatarURL({ dynamic: true, size: 2048 }))
embed.setFooter(`Developed By Aris.`)
embed.setDescription(`${member} (${member.roles.highest}) kişisinin sunucu içerisi yetki statleri aşağıda belirtilmiştir.
${coinStatus}
${emojis.star} Puan Durumu :
${emojis.nokta} Toplam Puan : \`${coinData ? Math.floor(coinData.coin) : 0}\`, Gereken: \`${maxValue.coin}\`
${emojis.nokta} Kayıt Durumu : \`${toplamData ? toplamData.kayit.length : 0} Adet\`
${emojis.nokta} Taglı Durumu : \`${taggedData ? taggedData.Taggeds.length : 0} Adet\`
${emojis.nokta} Davet Durumu : \`${total + bonus} Adet\`
${emojis.nokta} Chat Durumu : \`${messageData ? messageData.topStat : 0} Mesaj\`
${emojis.nokta} Ses Durumu : \`${moment.duration(voiceData ? voiceData.topStat : 0).format("H [saat], m [dakika] s [saniye]")}\`
${emojis.nokta} Ceza Durumu : \`${cezapuanData ? cezapuanData.cezapuan : 0}\` (Toplam ${cezapuanData ? cezapuanData.cezasayi.length : 0} Ceza)
`)
let stat = await message.channel.send({ embeds: [embed], components: [row] })
var filter = (button) => button.user.id === message.author.id;
const collector = stat.createMessageComponentCollector({ filter })
collector.on('collect', async (button, user) => {
if (button.customId == "gorevlerim") {
await button.deferUpdate();
const mtask = await tasks.find({ guildID: message.guild.id, userID: member.user.id });
if (stat) await stat.edit({
embeds: [embed.setDescription(`
Toplam Görev Sayısı: \`${mtask.length}\`
Tamamlanmış Görev Sayısı: \`${mtask.filter((x) => x.completed).length}\`
Tamamlanmamış Görev Sayısı: \`${mtask.filter((x) => !x.completed).length}\`
Aktif Görev Sayısı: \`${mtask.filter((x) => x.active).length}\`
${mtask.filter((x) => x.active).map((x) => `\`#${x.id}\` ${x.message} \n${x.completedCount >= x.count ? emojis.onay + " **Tamamlandı!**" : `${progressBar(x.completedCount, x.count, 8)} \`${x.type === "ses" ? `${moment.duration(x.completedCount).format("H [saat], m [dk], s [sn]")} / ${moment.duration(x.count).format("H [saat], m [dk], s [sn]")}` : `${x.completedCount} / ${x.count}`}\` \nKalan Süre: \`${moment.duration(x.finishDate - Date.now()).format("H [saat], m [dakika] s [saniye]")}\` \nÖdül: ${emojis.onay} \`${x.prizeCount} coin\``}`).join("\n\n")}
`)], components: []
})
}
})
}
}
module.exports = YStat
function progressBar(value, maxValue, size) {
const progress = Math.round(size * ((value / maxValue) > 1 ? 1 : (value / maxValue)));
const emptyProgress = size - progress > 0 ? size - progress : 0;
const progressText = emojis.fill.repeat(progress);
const emptyProgressText = emojis.empty.repeat(emptyProgress);
return emptyProgress > 0 ? emojis.fillStart + progressText + emptyProgressText + emojis.emptyEnd : emojis.fillStart + progressText + emptyProgressText + emojis.fillEnd;
};
================================================
FILE: Main_Botlar/Botlar/Moderation/Commands/Founder/clear.js
================================================
const { ariscik } = require('../../../../Helpers/Schemas')
class Temizle extends Command {
constructor(client) {
super(client, {
name: "clear",
aliases: ["temizle", "sil"],
Founder: true
});
}
async run(client, message, args, embed) {
if (!args[0] || (args[0] && isNaN(args[0])) || Number(args[0]) < 1 || Number(args[0]) > 100) { return message.channel.send(`${emojis.iptal} **UYARI:** En az \`1 - 100\` arasında bir sayı değeri girmelisiniz.`).then(e => setTimeout(() => e.delete(), 7000)); }
else { message.channel.bulkDelete(Number(args[0]), true).then(msg => message.channel.send(`${emojis.onay} <#${message.channel.id}> kanalında **${msg.size}** adet mesaj başarı ile temizlendi.`)).sil(5) }
}
}
module.exports = Temizle
================================================
FILE: Main_Botlar/Botlar/Moderation/Commands/Founder/denetim.js
================================================
const { roleBackup, channelBackup } = require("../../../../Helpers/Schemas")
const { rolKur } = require("../../../../Helpers/BackupFunction");
class Denetim extends Command {
constructor(client) {
super(client, {
name: "denetim",
aliases: ["denetim", "silinen"],
Founder: true,
});
}
async run(client, message, args, embed) {
if (!args[0] || !args[0].toLowerCase() === "rol" && !args[0].toLowerCase() === "kanal") return message.reply({ embeds: [embed.setDescription(`Lütfen \`rol/kanal\` olmak üzere geçerli bir eylem belirtiniz ${emojis.iptal}\n\n\`Son 1 saatte silinen rol&kanal için .denetim rol/kanal 1 veya hepsine bakmak için .denetim rol/kanal\``)] })
if (args[0].toLowerCase() === "rol") {
if (args[1] === "1") {
const entries = await message.guild.fetchAuditLogs({ type: 'ROLE_DELETE', limit: 10 }).then((audit) => audit.entries); const entriess = entries.filter(e => Date.now() - e.createdTimestamp < 1000 * 60 * 60); if (!entriess.size) return message.channel.send(`**UYARI :** Merhaba! Son 1 saatte silinmiş hiç bir rol bulunamadı!`).sil(10)
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageSelectMenu().setCustomId('select').setPlaceholder('Silinen Roller!').addOptions(entriess.map((entry) => { const name = entry.changes.find((change) => change.key === 'name') || { old: 'new-role' }; return { label: name.old, description: entry.executor.tag, value: entry.id, }; })));
const denetimmsg = await message.channel.send({ embeds: [embed.setDescription(`Merhaba ${message.author}! Aşağıdaki menülerden silinen son 10 rolü görebilirsin!`)], components: [row], });
denetimmsg.awaitMessageComponent({ filter: (component) => component.user.id === message.author.id, componentType: 'SELECT_MENU', }).then(async (interaction) => { const entry = entries.find((entry) => entry.id === interaction.values[0]); await roleBackup.findOne({ roleID: entry.target.id }, async (err, data) => { if (!data) return message.reply(`**UYARI:** Belirtilen rol ID'sine ait veri bulunamadı!`).sil(10); const newRole = await message.guild.roles.create({ name: data.name, color: data.color, hoist: data.hoist, permissions: data.permissions, position: data.position, mentionable: data.mentionable, reason: "Rol Silindiği İçin Tekrar Oluşturuldu!" }); rolKur(entry.target.id, newRole) }); interaction.deferUpdate(); })
}
if (!args[1] || args[1] === "all" || args[1] === "hepsi") {
const entries = await message.guild.fetchAuditLogs({ type: 'ROLE_DELETE', limit: 10 }).then((audit) => audit.entries); if (!entries.size) return message.channel.send(`**UYARI : **Malesef silinen rol bulunamadı!`);
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageSelectMenu().setCustomId('select').setPlaceholder('Silinen Roller!').addOptions(entries.map((entry) => { const name = entry.changes.find((change) => change.key === 'name') || { old: 'new-role' }; return { label: name.old, description: entry.executor.tag, value: entry.id, }; })));
const denetimmsg = await message.channel.send({ embeds: [embed.setDescription(`Merhaba ${message.author}! Aşağıdaki menülerden silinen son 10 rolü görebilirsin!`)], components: [row], });
denetimmsg.awaitMessageComponent({ filter: (component) => component.user.id === message.author.id, componentType: 'SELECT_MENU', }).then(async (interaction) => { const entry = entries.find((entry) => entry.id === interaction.values[0]); await roleBackup.findOne({ roleID: entry.target.id }, async (err, data) => { if (!data) return message.reply(`**UYARI:** Belirtilen rol ID'sine ait veri bulunamadı!`).sil(20); const newRole = await message.guild.roles.create({ name: data.name, color: data.color, hoist: data.hoist, permissions: data.permissions, position: data.position, mentionable: data.mentionable, reason: "Rol Silindiği İçin Tekrar Oluşturuldu!" }); rolKur(entry.target.id, newRole) }); interaction.deferUpdate(); })
}
} else if (args[0].toLowerCase() === "kanal") {
if (args[1] === "1") {
const entries = await message.guild.fetchAuditLogs({ type: 'CHANNEL_DELETE', limit: 10 }).then((audit) => audit.entries); const entriess = entries.filter(e => Date.now() - e.createdTimestamp < 1000 * 60 * 60); if (!entriess.size) return message.channel.send(`**UYARI :** Son 1 saatte silinmiş mesaj bulunamadı!`).sil(20);
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageSelectMenu().setCustomId('select2').setPlaceholder('Silinen Kanallar!').addOptions(entriess.map((entry) => { const name = entry.changes.find((change) => change.key === 'name') || { old: 'new-channel' }; return { label: name.old, description: entry.executor.tag, value: entry.id, }; })));
const denetimmsg = await message.channel.send({ embeds: [embed.setDescription(`Merhaba ${message.author}! Aşağıdaki menülerden silinen son 10 kanalı görebilirsin!`)], components: [row] });
denetimmsg.awaitMessageComponent({ filter: (component) => component.user.id === message.author.id, componentType: 'SELECT_MENU', }).then(async (interaction) => {
const entry = entries.find((entry) => entry.id === interaction.values[0]); const type = entry.changes.find((change) => change.key === 'type') || { old: '0' }; if (type.old === 2) {
channelBackup.findOne({ channelID: entry.target.id }, async (err, data) => { if (!data) return message.reply(`**UYARI:** Belirtilen kanal ID'sine ait veri bulunamadı!`).sil(10); const newChannel = await message.guild.channels.create(data.name, { type: 'GUILD_VOICE', bitrate: data.bitrate, parentID: data.parentID, position: data.position + 1, }); const newOverwrite = []; for (let index = 0; index < data.overwrites.length; index++) { const veri = data.overwrites[index]; newOverwrite.push({ id: veri.id, allow: new Discord.Permissions(veri.allow).toArray(), deny: new Discord.Permissions(veri.deny).toArray() }); } await newChannel.permissionOverwrites.set(newOverwrite); data.channelID = newChannel.id; data.save() });
} else if (type.old === 0) {
channelBackup.findOne({ channelID: entry.target.id }, async (err, data) => { if (!data) return message.channel.send({ embeds: [embed.setDescription("Belirtilen kanal ID'sine ait veri bulunamadı!")] }); const newChannel = await message.guild.channels.create(data.name, { type: 'GUILD_TEXT', nsfw: data.nsfw, parentID: data.parentID, position: data.position + 1, rateLimit: data.rateLimit, }); await message.channel.send({ embeds: [embed.setDescription(`**${newChannel.name}** isimli kanal yedeği kuruluyor...`)] }); const newOverwrite = []; for (let index = 0; index < data.overwrites.length; index++) { const veri = data.overwrites[index]; newOverwrite.push({ id: veri.id, allow: new Discord.Permissions(veri.allow).toArray(), deny: new Discord.Permissions(veri.deny).toArray() }); } await newChannel.permissionOverwrites.set(newOverwrite); data.channelID = newChannel.id; data.save() });
} else if (type.old === 4) { channelBackup.findOne({ channelID: entry.target.id }, async (err, data) => { if (!data) return message.channel.send({ embeds: [embed.setDescription("Belirtilen kategori ID'sine ait veri bulunamadı!")] }); const newChannel = await message.guild.channels.create(data.name, { type: 'GUILD_CATEGORY', position: data.position, }); await message.channel.send({ embeds: [embed.setDescription(`**${newChannel.name}** isimli kategori yedeği kuruluyor...`)] }); const textChannels = await channelBackup.find({ parentID: entry.target.id }); await channelBackup.updateMany({ parentID: entry.target.id }, { parentID: newChannel.id }); textChannels.forEach(c => { const textChannel = message.guild.channels.cache.get(c.channelID); if (textChannel) textChannel.setParent(newChannel, { lockPermissions: false }); }); const voiceChannels = await channelBackup.find({ parentID: entry.target.id }); await channelBackup.updateMany({ parentID: entry.target.id }, { parentID: newChannel.id }); voiceChannels.forEach(c => { const voiceChannel = message.guild.channels.cache.get(c.channelID); if (voiceChannel) voiceChannel.setParent(newChannel, { lockPermissions: false }); }); const newOverwrite = []; for (let index = 0; index < data.overwrites.length; index++) { const veri = data.overwrites[index]; newOverwrite.push({ id: veri.id, allow: new Discord.Permissions(veri.allow).toArray(), deny: new Discord.Permissions(veri.deny).toArray() }); } await newChannel.permissionOverwrites.set(newOverwrite); data.channelID = newChannel.id; data.save() }); } interaction.deferUpdate();
})
}
if (!args[1] || args[1] === "all" || args[1] === "hepsi") {
const entries = await message.guild.fetchAuditLogs({ type: 'CHANNEL_DELETE', limit: 10 }).then((audit) => audit.entries); if (!entries.size) return message.channel.send(`**UYARI :** Son bir saatte silinmiş kanal bulunamadı!`).sil(5)
const row = new Discord.MessageActionRow().addComponents(new Discord.MessageSelectMenu().setCustomId('select2').setPlaceholder('Silinen Kanallar!').addOptions(entries.map((entry) => { const name = entry.changes.find((change) => change.key === 'name') || { old: 'new-channel' }; return { label: name.old, description: entry.executor.tag, value: entry.id, }; })));
const denetimmsg = await message.channel.send({ embeds: [embed.setDescription(`Merhaba ${message.author}! Aşağıdaki menülerden silinen son 10 kanalı görebilirsin!`)], components: [row] });
denetimmsg.awaitMessageComponent({ filter: (component) => component.user.id === message.author.id, componentType: 'SELECT_MENU', }).then(async (interaction) => {
const entry = entries.find((entry) => entry.id === interaction.values[0]); const type = entry.changes.find((change) => change.key === 'type') || { old: '0' }; if (type.old === 2) {
channelBackup.findOne({ channelID: entry.target.id }, async (err, data) => { if (!data) return message.reply(`**UYARI:** Belirtilen kanal ID'sine ait veri bulunamadı!`).sil(10); const newChannel = await message.guild.channels.create(data.name, { type: 'GUILD_VOICE', bitrate: data.bitrate, parentID: data.parentID, position: data.position + 1, }); const newOverwrite = []; for (let index = 0; index < data.overwrites.length; index++) { const veri = data.overwrites[index]; newOverwrite.push({ id: veri.id, allow: new Discord.Permissions(veri.allow).toArray(), deny: new Discord.Permissions(veri.deny).toArray() }); } await newChannel.permissionOverwrites.set(newOverwrite); data.channelID = newChannel.id; data.save() });
} else if (type.old === 0) {
channelBackup.findOne({ channelID: entry.target.id }, async (err, data) => { if (!data) return message.channel.send({ embeds: [embed.setDescription("Belirtilen kanal ID'sine ait veri bulunamadı!")] }); const newChannel = await message.guild.channels.create(data.name, { type: 'GUILD_TEXT', nsfw: data.nsfw, parentID: data.parentID, position: data.position + 1, rateLimit: data.rateLimit, }); await message.channel.send({ embeds: [embed.setDescription(`**${newChannel.name}** isimli kanal yedeği kuruluyor...`)] }); const newOverwrite = []; for (let index = 0; index < data.overwrites.length; index++) { const veri = data.overwrites[index]; newOverwrite.push({ id: veri.id, allow: new Discord.Permissions(veri.allow).toArray(), deny: new Discord.Permissions(veri.deny).toArray() }); } await newChannel.permissionOverwrites.set(newOverwrite); data.channelID = newChannel.id; data.save() });
} else if (type.old === 4) { channelBackup.findOne({ channelID: entry.target.id }, async (err, data) => { if (!data) return message.channel.send({ embeds: [embed.setDescription("Belirtilen kategori ID'sine ait veri bulunamadı!")] }); const newChannel = await message.guild.channels.create(data.name, { type: 'GUILD_CATEGORY', position: data.position, }); await message.channel.send({ embeds: [embed.setDescription(`**${newChannel.name}** isimli kategori yedeği kuruluyor...`)] }); const textChannels = await channelBackup.find({ parentID: entry.target.id }); await channelBackup.updateMany({ parentID: entry.target.id }, { parentID: newChannel.id }); textChannels.forEach(c => { const textChannel = message.guild.channels.cache.get(c.channelID); if (textChannel) textChannel.setParent(newChannel, { lockPermissions: false }); }); const voiceChannels = await channelBackup.find({ parentID: entry.target.id }); await channelBackup.updateMany({ parentID: entry.target.id }, { parentID: newChannel.id }); voiceChannels.forEach(c => { const voiceChannel = message.guild.channels.cache.get(c.channelID); if (voiceChannel) voiceChannel.setParent(newChannel, { lockPermissions: false }); }); const newOverwrite = []; for (let index = 0; index < data.overwrites.length; index++) { const veri = data.overwrites[index]; newOverwrite.push({ id: veri.id, allow: new Discord.Permissions(veri.allow).toArray(), deny: new Discord.Permissions(veri.deny).toArray() }); } await newChannel.permissionOverwrites.set(newOverwrite); data.channelID = newChannel.id; data.save() }); } interaction.deferUpdate();
})
}
} if (args[0] == 'liste') {
if (args[1] == 'kanal') {
const audit = await message.guild.fetchAuditLogs({ type: 'CHANNEL_DELETE' }).then(a => a.entries)
const denetim = audit.filter(e => Date.now() - e.createdTimestamp < 1000 * 60 * 60 * 24).map(e => message.channel.send(`Kanal id: ${e.target.id} Kanal İsim: ${e.changes.filter(e => e.key === 'name').map(e => e.old)}`))
if (!denetim.length) return message.channel.send({ embeds: [embed.setDescription(`Son 24 saat de silinmiş herhangi bir kanal bulunamadı!`)] })
} else if (args[1] == 'rol') {
const audit = await message.guild.fetchAuditLogs({ type: 'ROLE_DELETE' }).then(a => a.entries)
const denetim = audit.filter(e => Date.now() - e.createdTimestamp < 1000 * 60 * 60 * 24).map(e => message.channel.send(`Rol id: ${e.target.id} Rol İsim: ${e.changes.filter(e => e.key === 'name').map(e => e.old)}`))
if (!denetim.length) return message.channel.send({ embeds: [embed.setDescription(`Son 24 saat de silinmiş herhangi bir rol bulunamadı!`)] })
}
}
}
}
module.exports = Denetim
================================================
FILE: Main_Botlar/Botlar/Moderation/Commands/Founder/herkeserolver.js
================================================
const { ariscik } = require("../../../../Helpers/Schemas")
const {rolVer} = require("../../../../Helpers/BackupFunction")
class Herkese extends Command {
constructor(client) {
super(client, {
name: "herkeserolver",
aliases: ["herkeserol","herkeserolver"],
Founder: true,
});
}
async run(client, message, args, embed) {
const aris = await ariscik.findOne({ guildID: message.guild.id })
const role = message.mentions.roles.first() || message.guild.roles.cache.get(args[0])
if (!role) return message.reply(`**UYARI :** Bir rol belirtmeyi unuttun! Rol belirtip tekrar dene!`).sil(10)
else if (role) {
await message.reply({ embeds: [embed.setDescription(`${role} isimli rol sunucuda bulunan toplam ${message.guild.members.cache.filter(member => !member.roles.cache.has(role.id) && !member.user.bot).size} kişiye dağıtılıyor.`)] })
if(aris.denetimLog) await client.channels.cache.get(aris.denetimLog).send({ embeds: [embed.setDescription(`${role} isimli rol sunucuda bulunan tüm üyeler ${message.author} tarafından dağıtılmaya başlandı!`)]})
rolVer(message.guild, role)
}
}
};
module.exports = Herkese
================================================
FILE: Main_Botlar/Botlar/Moderation/Commands/Founder/inviters.js
================================================
const { ariscik, Inviter, Users } = require("../../../../Helpers/Schemas")
class inviter extends Command {
constructor(client) {
super(client, {
name: "inviter",
aliases: ["inviters","inviter"],
Founder: true,
});
}
async run(client, message, args, embed) {
const aris = await ariscik.findOne({ guildID: message.guild.id })
const member = message.mentions.members.first() || message.guild.members.cache.get(args[1])
var amount = args[2]
if (!args[0] || args[0].toLowerCase() !== "ekle" && args[0].toLowerCase() !== "sil" && args[0].toLowerCase() !== "sorgu") return message.reply({ embeds: [embed.setDescription(`Lütfen \`ekle/sil/sorgu/üyeler\` olmak üzere geçerli bir eylem belirtin ${emojis.iptal}`)] }).sil(10); if (!member) return message.reply(`**UYARI :** Bir üye belirtmeyi unuttun!`).sil(20)
if (!args[0] || args[0].toLowerCase() === "ekle") { if (!args[2] || isNaN(amount)) return message.reply({ embeds: [embed.setDescription(`Lütfen bonus davet sayısına eklemek için geçerli bir miktar belirtin ${emojis.iptal}`)] }); await Inviter.findOneAndUpdate({ guildID: member.guild.id, userID: member.user.id }, { $inc: { bonus: parseInt(amount) } }, { upsert: true }); message.reply({ embeds: [embed.setDescription(`${member.toString()} üyesine **${amount}** adet bonus davet eklendi ${emojis.onay}`)] });
} else if (!args[0] || args[0].toLowerCase() === "sil") { const data = await Inviter.findOne({ guildID: message.guild.id, userID: member.user.id }); if (!data) return message.reply({ embeds: [embed.setDescription(`Bu kullanıcının herhangi bir davet verisi bulunmuyor ${emojis.iptal}`)] }); if (!data.bonus) return message.reply({ embeds: [embed.setDescription(`Kullanıcıda bonus davet bulunmuyor ${emojis.iptal}`)] }); if (!args[2] || isNaN(amount)) return message.reply({ embeds: [embed.setDescription(`Lütfen bonus davet sayısından çıkarmak için geçerli bir miktar belirtin ${emojis.iptal}`)] }); if (data.bonus < args[2]) return message.reply({ embeds: [embed.setDescription(`Kullanıcı girilen sayı miktarı kadar bonusa sahip değil ${emojis.iptal}`)] })
else { data.bonus -= parseInt(amount); data.save(); message.reply({ embeds: [embed.setDescription(`${member.toString()} üyesinden **${amount}** adet bonus davet çıkarıldı ${emojis.onay}`)] }); }
} else if (!args[0] || args[0].toLowerCase() === "sorgu") { const data = await Users.findOne({ userID: member.user.id }); if (!data?.Inviter) return message.reply({ embeds: [embed.setDescription(`Bu kullanıcıyı kimin davet ettiğini bulamadım ${emojis.iptal}`)] })
else { if (data.Inviter.inviter === message.guild.id) { return message.reply({ embeds: [embed.setDescription(`${member.toString()} üyesi, ${new Date(member.joinedAt).toTurkishFormatDate()} tarihinde **${message.guild.name}** tarafından davet edilmiş.`)] });
} else { const inviter = await client.users.fetch(data.Inviter.inviter); return message.reply({ embeds: [embed.setDescription(`${member.toString()} üyesi, ${new Date(member.joinedAt).toTurkishFormatDate()} tarihinde **${inviter.tag}** \`(${inviter.id})\` tarafından davet edilmiş.`)] }); }
}
} else if(!args[0] || args[0].toLowerCase() === "üyeler") { if(!member) return message.reply(`**UYARI :** Bir rol belirtmeyi unuttun!`).sil(10); const data = await Users.find({}); const filtered = data.filter(x => message.guild.members.cache.get(x.userID) && x?.Inviter.inviter === message.author.id); await message.reply({ embeds: [embed.setDescription(filtered.length > 0 ? filtered.map(usr => `<@${usr.userID}> - **${moment(usr.Inviter.date).format("LLL")}** tarihinde.`).join("\n") : "Kimseyi davet etmemiş!")] }) }
}
};
module.exports = inviter
================================================
FILE: Main_Botlar/Botlar/Moderation/Commands/Founder/menu.js
================================================
const { Custom } = require("../../../../Helpers/Schemas")
const moment = require("moment")
class Menu extends Command {
constructor(client) {
super(client, {
name: "menu",
aliases: ["menü"],
Founder: true,
});
}
async run(client, message, args, embed) {
let Data = await Custom.find({})
let comp;
let defa = new Discord.MessageActionRow().addComponents(
new Discord.MessageButton()
.setCustomId("ekle")
.setLabel("Ekleme & Düzenleme")
.setEmoji("841029419573444618")
.setStyle("SUCCESS")
)
if(Data && Data.length >= 1) {
let listele = []
Data.forEach(async (x) => {
listele.push({label: x.Name, description: `${x.Date} ${message.guild.members.cache.get(x.Author) ? `- ${message.guild.members.cache.get(x.Author).user.tag}` : ""}`, value: x.Name})
})
comp = [defa, new Discord.MessageActionRow().addComponents(
new Discord.MessageSelectMenu()
.setCustomId("sil")
.setPlaceholder("Aşağıdan silmek istediğiniz menüyü seçin!")
.addOptions(
listele
),
),new Discord.MessageActionRow().addComponents(
new Discord.MessageSelectMenu()
.setCustomId("kur")
.setPlaceholder("Aşağıdan oluşturmak istediğiniz menüyü seçin!")
.addOptions(
listele
),
)]
} else {
comp = [defa]
}
message.channel.send({embeds: [new Discord.MessageEmbed().setDescription(`**Merhaba!** ${message.member.user.tag} (${message.member}),
${message.guild.name} sunucusuna ait olan rol seçim menüsü listesi aşağıda mevcut ekleme, düzenleme ve kaldırma işlemini buradan yapabilirsiniz. :tada: :tada: :tada:
**Kullanım Koşulları!**
\` ❯ \` Sunucuda bir rol seçim menüsü oluşturmak istiyorsan aşağıda ki düğme yardımıyla ekleyebilirsin.
\` ❯ \` Ekleme işlemleri bittikten sonra anlık olarak kurulum işlemini tekrar bu panel üzerinden yapabilirsin.
\` ❯ \` Düzenleme işlemi yaparken tekrardan aşağıda ki düğmeye basarak, düzenlenmesini istediğiniz rol seçim menüsü ismini girerek tekrardan ayarlarını güncelleyebilirsiniz.`)], components: comp}).then(async (msg) => {
const filter = i => i.user.id == message.member.id
const collector = msg.createMessageComponentCollector({ filter: filter, errors: ["time"], time: 120000 })
collector.on("collect", async (i) => {
if(i.customId == "sil") {
await Custom.deleteOne({Name: i.values})
i.reply({content: `${emojis.onay} Başarıyla **${i.values}** isimli rol seçim menüsü silindi.`, ephemeral: true})
msg.delete().catch(err => {})
message.react(emojis.onay)
}
if(i.customId == "kur") {
let kurulcak = await Custom.findOne({Name: i.values})
if(kurulcak) {
let Opt = []
kurulcak.Roles.forEach(r => {
Opt.push({label: message.guild.roles.cache.get(r) ? message.guild.roles.cache.get(r).name : "@Rol Bulunamadı!",
emoji: { "id": emojis.star.id},
value: r})
})
let listMenu = new Discord.MessageActionRow().addComponents(
new Discord.MessageSelectMenu()
.setCustomId(kurulcak.Secret)
.setPlaceholder(`${kurulcak.Name}`)
.setOptions(
[Opt, {"label": "Rol İstemiyorum", "value": "rolsil", "emoji": { "id": "922058306263072860", "name": "monarch_trash" }}]
)
)
message.channel.send({content: `${kurulcak.Text}`, components: [listMenu]}).then(async (oluşturuldu) => {
var filter = i => i.customId == kurulcak.Secret
let collector = oluşturuldu.createMessageComponentCollector({filter: filter})
collector.on('collect', async (i) => {
const member = await client.guilds.cache.get(config.guildID).members.fetch(i.user.id)
if (!member) return;
let Data = await Custom.findOne({Secret: kurulcak.Secret})
let customMap = new Map()
Data.Roles.forEach(r => customMap.set(r, r))
let roles = Data.Roles
var role = []
for (let index = 0; index < i.values.length; index++) {
let ids = i.values[index]
let den = customMap.get(ids)
role.push(den)
}
if (i.values[0] === "rolsil") {
await member.roles.remove(roles)
} else {
if (!i.values.length) {
await member.roles.remove(roles).catch(err => {})
} else {
await member.roles.remove(roles).catch(err => {})
await member.roles.add(role).catch(err => {})
}
}
i.reply({ content: "Rolleriniz güncellendi.", ephemeral: true })
})
})
i.reply({content: `${emojis.onay} Başarıyla **${kurulcak.Name}** isimli rol seçim menüsü kuruldu.`, ephemeral: true})
msg.delete().catch(err => {})
message.react(emojis.onay)
}
}
if(i.customId == "ekle") {
msg.delete().catch(err => {})
message.channel.send({content: `:tada: **${message.guild.name}**
Yeni bir rol seçim menüsü oluşturuluyor...`, embeds: [new Discord.MessageEmbed().setDescription(`
Rol Seçim Menüsü: \` Ayarlanmadı! \`
Açıklama: \` Ayarlanmadı! \`
Roller: \` Ayarlanmadı! \`
Yeni oluşturulmakta olan rol seçim menünüze bir isim belirleyin.`)]}).then(async (isimbelirleme) => {
let rolSeçim = {
Name: String,
Roles: Array,
Text: String,
Date: Date.now(),
Secret: secretOluştur(10),
Author: message.member.id,
}
var filt = m => m.author.id == message.member.id
let collector = isimbelirleme.channel.createMessageCollector({filter: filt, time: 60000, max: 1, errors: ["time"]})
collector.on("collect", async (m) => {
let mesaj = m.content
if(mesaj == "iptal" || mesaj == "ıptal") {
return isimbelirleme.edit({content: null, embeds: [new Discord.MessageEmbed().setDescription(`${emojis.iptal} Başarıyla rol seçim menü oluşturma aracı iptal edildi.`)]}).then(x => {
setTimeout(() => {
isimbelirleme.delete().catch(err => {})
}, 15000);
})
}
rolSeçim.Name = mesaj
message.channel.send({content: `:tada: **${message.guild.name}**
Yeni bir rol seçim menüsü oluşturuluyor...`, embeds: [new Discord.MessageEmbed().setDescription(`
Rol Seçim Menüsü: \`${rolSeçim.Name}\`
Açıklama: \` Ayarlanmadı! \`
Roller: \` Ayarlanmadı! \`
Yeni oluşturulmakta olan rol seçim menünüze bir açıklama belirtin. Örn: \`Aşağıda ki rollerden istediğiniz rolü alabilirsiniz!\``)]})
.then(async (açıklamabelirleme) => {
var filt = m => m.author.id == message.member.id
let collector = açıklamabelirleme.channel.createMessageCollector({filter: filt, time: 60000, max: 1, errors: ["time"]})
collector.on("collect", async (m) => {
let mesaj = m.content
if(mesaj == "iptal" || mesaj == "ıptal") {
return açıklamabelirleme.edit({content: null, embeds: [new Discord.MessageEmbed().setDescription(`${emojis.iptal} Başarıyla rol seçim menü oluşturma aracı iptal edildi.`)]}).then(x => {
setTimeout(() => {
açıklamabelirleme.delete().catch(err => {})
}, 15000);
})
}
rolSeçim.Text = m.content
açıklamabelirleme.delete().catch(err => {})
message.channel.send({content: `:tada: **${message.guild.name}**
Yeni bir rol seçim menüsü oluşturuluyor...`, embeds: [new Discord.MessageEmbed().setDescription(`
Rol Seçim Menüsü: \`${rolSeçim.Name}\`
Açıklama: \`${rolSeçim.Text}\`
Roller: \` Ayarlanmadı! \`
Yeni oluşturulmakta olan rol seçim menünüzde listelenecek rolleri belirtin.`).setFooter(`En az 3 tane, en fazla 25 tane rol ekleyebilirsiniz.`)]}).then(async (rolbelirleme) => {
var filt = m => m.author.id == message.member.id
let collec
gitextract_339nqguu/ ├── Main_Botlar/ │ ├── Botlar/ │ │ ├── Guard_I/ │ │ │ ├── Events/ │ │ │ │ ├── banAdd.js │ │ │ │ ├── botAdd.js │ │ │ │ ├── channelCreate.js │ │ │ │ ├── channelDelete.js │ │ │ │ ├── channelUpdate.js │ │ │ │ ├── guildUpdate.js │ │ │ │ ├── kickAdd.js │ │ │ │ ├── memberPrune.js │ │ │ │ ├── memberUpdate.js │ │ │ │ ├── ready.js │ │ │ │ ├── roleCreate.js │ │ │ │ ├── roleDelete.js │ │ │ │ ├── roleUpdate.js │ │ │ │ └── webhookCreate.js │ │ │ └── main.js │ │ ├── Guard_II/ │ │ │ ├── Events/ │ │ │ │ ├── banAdd.js │ │ │ │ ├── botAdd.js │ │ │ │ ├── channelCreate.js │ │ │ │ ├── channelDelete.js │ │ │ │ ├── channelUpdate.js │ │ │ │ ├── guildUpdate.js │ │ │ │ ├── kickAdd.js │ │ │ │ ├── memberPrune.js │ │ │ │ ├── memberUpdate.js │ │ │ │ ├── ready.js │ │ │ │ ├── roleCreate.js │ │ │ │ ├── roleDelete.js │ │ │ │ ├── roleUpdate.js │ │ │ │ └── webhookCreate.js │ │ │ └── main.js │ │ ├── Guard_III/ │ │ │ ├── Events/ │ │ │ │ ├── banAdd.js │ │ │ │ ├── botAdd.js │ │ │ │ ├── channelCreate.js │ │ │ │ ├── channelDelete.js │ │ │ │ ├── channelUpdate.js │ │ │ │ ├── guildUpdate.js │ │ │ │ ├── kickAdd.js │ │ │ │ ├── memberPrune.js │ │ │ │ ├── memberUpdate.js │ │ │ │ ├── ready.js │ │ │ │ ├── roleCreate.js │ │ │ │ ├── roleDelete.js │ │ │ │ ├── roleUpdate.js │ │ │ │ └── webhookCreate.js │ │ │ └── main.js │ │ ├── Guard_IV/ │ │ │ ├── Events/ │ │ │ │ ├── channelDelete.js │ │ │ │ ├── guildUpdate.js │ │ │ │ ├── ready.js │ │ │ │ └── roleDelete.js │ │ │ └── main.js │ │ ├── Moderation/ │ │ │ ├── Aris.js │ │ │ ├── Commands/ │ │ │ │ ├── Aris/ │ │ │ │ │ ├── autoscan.js │ │ │ │ │ ├── eval.js │ │ │ │ │ ├── pm2.js │ │ │ │ │ ├── reboot.js │ │ │ │ │ ├── templateCommand.js │ │ │ │ │ └── test.js │ │ │ │ ├── CoinTask/ │ │ │ │ │ ├── give-removeTasks.js │ │ │ │ │ ├── senkronRank.js │ │ │ │ │ ├── setRank.js │ │ │ │ │ ├── taggeds.js │ │ │ │ │ ├── tagges.js │ │ │ │ │ ├── tasks.js │ │ │ │ │ ├── topTaggeds.js │ │ │ │ │ └── yStat.js │ │ │ │ ├── Founder/ │ │ │ │ │ ├── clear.js │ │ │ │ │ ├── denetim.js │ │ │ │ │ ├── herkeserolver.js │ │ │ │ │ ├── inviters.js │ │ │ │ │ ├── menu.js │ │ │ │ │ ├── rolbilgi.js │ │ │ │ │ └── talentPerm.js │ │ │ │ ├── Global/ │ │ │ │ │ ├── afk.js │ │ │ │ │ ├── avatar.js │ │ │ │ │ ├── bilgi.js │ │ │ │ │ ├── booster.js │ │ │ │ │ ├── cek.js │ │ │ │ │ ├── git.js │ │ │ │ │ ├── say.js │ │ │ │ │ └── yardım.js │ │ │ │ ├── Guard/ │ │ │ │ │ ├── gmenü.js │ │ │ │ │ ├── kanalkur.js │ │ │ │ │ ├── rolkur.js │ │ │ │ │ └── whitelist.js │ │ │ │ ├── Guild/ │ │ │ │ │ ├── guildInfo.js │ │ │ │ │ ├── guildSettings.js │ │ │ │ │ ├── kur.js │ │ │ │ │ ├── setting.js │ │ │ │ │ ├── setup.js │ │ │ │ │ └── url.js │ │ │ │ ├── Managment/ │ │ │ │ │ ├── control.js │ │ │ │ │ ├── giveaway.js │ │ │ │ │ ├── rolAddRemove.js │ │ │ │ │ ├── rollog.js │ │ │ │ │ ├── snipe.js │ │ │ │ │ ├── voiceControl.js │ │ │ │ │ └── ysay.js │ │ │ │ ├── Market/ │ │ │ │ │ ├── coin.js │ │ │ │ │ ├── coinekle.js │ │ │ │ │ ├── coinflip.js │ │ │ │ │ ├── daily.js │ │ │ │ │ ├── hero.js │ │ │ │ │ ├── market.js │ │ │ │ │ ├── slot.js │ │ │ │ │ ├── topcoin.js │ │ │ │ │ └── transfer.js │ │ │ │ ├── Punishment/ │ │ │ │ │ ├── ban.js │ │ │ │ │ ├── cMute.js │ │ │ │ │ ├── jail.js │ │ │ │ │ ├── punishInfo.js │ │ │ │ │ ├── sicil.js │ │ │ │ │ ├── unBan.js │ │ │ │ │ ├── unJail.js │ │ │ │ │ ├── unMute.js │ │ │ │ │ ├── unVMute.js │ │ │ │ │ └── vMute.js │ │ │ │ ├── Register/ │ │ │ │ │ ├── info.js │ │ │ │ │ ├── man.js │ │ │ │ │ ├── name.js │ │ │ │ │ ├── names.js │ │ │ │ │ ├── unregister.js │ │ │ │ │ └── woman.js │ │ │ │ └── Stat/ │ │ │ │ ├── invite.js │ │ │ │ ├── stat.js │ │ │ │ ├── topInvite.js │ │ │ │ └── topStat.js │ │ │ ├── Events/ │ │ │ │ ├── buttonSystems.js │ │ │ │ ├── coinEvent.js │ │ │ │ ├── guildMemberAdd.js │ │ │ │ ├── guildMemberRemove.js │ │ │ │ ├── guildMemberUpdate.js │ │ │ │ ├── inviteCreate.js │ │ │ │ ├── inviteDelete.js │ │ │ │ ├── menuInteraction.js │ │ │ │ ├── messageCreate.js │ │ │ │ ├── messageDelete.js │ │ │ │ ├── messageEvent.js │ │ │ │ ├── messageStats.js │ │ │ │ ├── ready.js │ │ │ │ ├── rewardChat.js │ │ │ │ ├── rewardVoice.js │ │ │ │ ├── talentPerms.js │ │ │ │ ├── userUpdate.js │ │ │ │ ├── userUpdates.js │ │ │ │ ├── voiceLog.js │ │ │ │ └── voiceStats.js │ │ │ ├── Panel/ │ │ │ │ └── views/ │ │ │ │ ├── ek/ │ │ │ │ │ └── header.ejs │ │ │ │ ├── hata.ejs │ │ │ │ ├── index.ejs │ │ │ │ ├── pages/ │ │ │ │ │ ├── bot.ejs │ │ │ │ │ ├── cezalar.ejs │ │ │ │ │ ├── gorev.ejs │ │ │ │ │ ├── guard.ejs │ │ │ │ │ ├── menu.ejs │ │ │ │ │ ├── moderation.ejs │ │ │ │ │ ├── register.ejs │ │ │ │ │ ├── role.ejs │ │ │ │ │ └── settings.ejs │ │ │ │ ├── panel.ejs │ │ │ │ └── panelhata.ejs │ │ │ ├── dash.js │ │ │ └── main.js │ │ └── main.js │ ├── Helpers/ │ │ ├── Backup.js │ │ ├── BackupFunction.js │ │ ├── Command.js │ │ ├── Handler.js │ │ ├── Logger.js │ │ ├── Mongo.js │ │ ├── Schemas.js │ │ ├── Utils.js │ │ └── function.js │ └── Settings/ │ ├── config.json │ └── emojis.json ├── README.md ├── app.config.js └── package.json
SYMBOL INDEX (406 symbols across 151 files)
FILE: Main_Botlar/Botlar/Guard_I/Events/banAdd.js
class guildBanAdd (line 3) | class guildBanAdd {
method run (line 5) | async run(ban) {
FILE: Main_Botlar/Botlar/Guard_I/Events/botAdd.js
class guildMemberAdd (line 3) | class guildMemberAdd {
method run (line 5) | async run(member) {
FILE: Main_Botlar/Botlar/Guard_I/Events/channelCreate.js
class channelCreate (line 3) | class channelCreate {
method run (line 5) | async run(channel) {
FILE: Main_Botlar/Botlar/Guard_I/Events/channelDelete.js
class channelDelete (line 3) | class channelDelete {
method run (line 5) | async run(channel) {
FILE: Main_Botlar/Botlar/Guard_I/Events/channelUpdate.js
class channelUpdate (line 3) | class channelUpdate {
method run (line 5) | async run(newChannel, oldChannel) {
FILE: Main_Botlar/Botlar/Guard_I/Events/guildUpdate.js
class guildUpdate (line 4) | class guildUpdate {
method run (line 6) | async run(oldGuild, newGuild) {
FILE: Main_Botlar/Botlar/Guard_I/Events/kickAdd.js
class guildMemberRemove (line 3) | class guildMemberRemove {
method run (line 5) | async run(member) {
FILE: Main_Botlar/Botlar/Guard_I/Events/memberPrune.js
class guildMemberRemove (line 3) | class guildMemberRemove {
method run (line 5) | async run(member) {
FILE: Main_Botlar/Botlar/Guard_I/Events/memberUpdate.js
class guildMemberUpdate (line 3) | class guildMemberUpdate {
method run (line 5) | async run(newMember, oldMember) {
FILE: Main_Botlar/Botlar/Guard_I/Events/ready.js
class Ready (line 3) | class Ready {
method run (line 5) | async run() {
FILE: Main_Botlar/Botlar/Guard_I/Events/roleCreate.js
class roleCreate (line 3) | class roleCreate {
method run (line 5) | async run(role) {
FILE: Main_Botlar/Botlar/Guard_I/Events/roleDelete.js
class roleDelete (line 3) | class roleDelete {
method run (line 5) | async run(role) {
FILE: Main_Botlar/Botlar/Guard_I/Events/roleUpdate.js
class roleUpdate (line 3) | class roleUpdate {
method run (line 5) | async run(oldRole, newRole) {
FILE: Main_Botlar/Botlar/Guard_I/Events/webhookCreate.js
class webhookUpdate (line 3) | class webhookUpdate {
method run (line 5) | async run(channel) {
FILE: Main_Botlar/Botlar/Guard_II/Events/banAdd.js
class guildBanAdd (line 3) | class guildBanAdd {
method run (line 5) | async run(ban) {
FILE: Main_Botlar/Botlar/Guard_II/Events/botAdd.js
class guildMemberAdd (line 3) | class guildMemberAdd {
method run (line 5) | async run(member) {
FILE: Main_Botlar/Botlar/Guard_II/Events/channelCreate.js
class channelCreate (line 3) | class channelCreate {
method run (line 5) | async run(channel) {
FILE: Main_Botlar/Botlar/Guard_II/Events/channelDelete.js
class channelDelete (line 3) | class channelDelete {
method run (line 5) | async run(channel) {
FILE: Main_Botlar/Botlar/Guard_II/Events/channelUpdate.js
class channelUpdate (line 3) | class channelUpdate {
method run (line 5) | async run(newChannel, oldChannel) {
FILE: Main_Botlar/Botlar/Guard_II/Events/guildUpdate.js
class guildUpdate (line 4) | class guildUpdate {
method run (line 6) | async run(oldGuild, newGuild) {
FILE: Main_Botlar/Botlar/Guard_II/Events/kickAdd.js
class guildMemberRemove (line 3) | class guildMemberRemove {
method run (line 5) | async run(member) {
FILE: Main_Botlar/Botlar/Guard_II/Events/memberPrune.js
class guildMemberRemove (line 3) | class guildMemberRemove {
method run (line 5) | async run(member) {
FILE: Main_Botlar/Botlar/Guard_II/Events/memberUpdate.js
class guildMemberUpdate (line 3) | class guildMemberUpdate {
method run (line 5) | async run(newMember, oldMember) {
FILE: Main_Botlar/Botlar/Guard_II/Events/ready.js
class Ready (line 2) | class Ready {
method run (line 4) | async run() {
function RolKontrol (line 21) | async function RolKontrol() {
FILE: Main_Botlar/Botlar/Guard_II/Events/roleCreate.js
class roleCreate (line 3) | class roleCreate {
method run (line 5) | async run(role) {
FILE: Main_Botlar/Botlar/Guard_II/Events/roleDelete.js
class roleDelete (line 3) | class roleDelete {
method run (line 5) | async run(role) {
FILE: Main_Botlar/Botlar/Guard_II/Events/roleUpdate.js
class roleUpdate (line 3) | class roleUpdate {
method run (line 5) | async run(oldRole, newRole) {
FILE: Main_Botlar/Botlar/Guard_II/Events/webhookCreate.js
class webhookUpdate (line 3) | class webhookUpdate {
method run (line 5) | async run(channel) {
FILE: Main_Botlar/Botlar/Guard_III/Events/banAdd.js
class guildBanAdd (line 3) | class guildBanAdd {
method run (line 5) | async run(ban) {
FILE: Main_Botlar/Botlar/Guard_III/Events/botAdd.js
class guildMemberAdd (line 4) | class guildMemberAdd {
method run (line 6) | async run(member) {
FILE: Main_Botlar/Botlar/Guard_III/Events/channelCreate.js
class channelCreate (line 4) | class channelCreate {
method run (line 6) | async run(channel) {
FILE: Main_Botlar/Botlar/Guard_III/Events/channelDelete.js
class channelDelete (line 4) | class channelDelete {
method run (line 6) | async run(channel) {
FILE: Main_Botlar/Botlar/Guard_III/Events/channelUpdate.js
class channelUpdate (line 4) | class channelUpdate {
method run (line 6) | async run(newChannel, oldChannel) {
FILE: Main_Botlar/Botlar/Guard_III/Events/guildUpdate.js
class guildUpdate (line 4) | class guildUpdate {
method run (line 6) | async run(oldGuild, newGuild) {
FILE: Main_Botlar/Botlar/Guard_III/Events/kickAdd.js
class guildMemberRemove (line 3) | class guildMemberRemove {
method run (line 5) | async run(member) {
FILE: Main_Botlar/Botlar/Guard_III/Events/memberPrune.js
class guildMemberRemove (line 4) | class guildMemberRemove {
method run (line 6) | async run(member) {
FILE: Main_Botlar/Botlar/Guard_III/Events/memberUpdate.js
class guildMemberUpdate (line 4) | class guildMemberUpdate {
method run (line 6) | async run(newMember, oldMember) {
FILE: Main_Botlar/Botlar/Guard_III/Events/ready.js
class Ready (line 3) | class Ready {
method run (line 5) | async run() {
FILE: Main_Botlar/Botlar/Guard_III/Events/roleCreate.js
class roleCreate (line 4) | class roleCreate {
method run (line 6) | async run(role) {
FILE: Main_Botlar/Botlar/Guard_III/Events/roleDelete.js
class roleDelete (line 4) | class roleDelete {
method run (line 6) | async run(role) {
FILE: Main_Botlar/Botlar/Guard_III/Events/roleUpdate.js
class roleUpdate (line 4) | class roleUpdate {
method run (line 6) | async run(oldRole, newRole) {
FILE: Main_Botlar/Botlar/Guard_III/Events/webhookCreate.js
class webhookUpdate (line 3) | class webhookUpdate {
method run (line 5) | async run(channel) {
FILE: Main_Botlar/Botlar/Guard_IV/Events/channelDelete.js
class channelDelete (line 3) | class channelDelete {
method run (line 5) | async run(channel) {
FILE: Main_Botlar/Botlar/Guard_IV/Events/guildUpdate.js
class guildUpdate (line 4) | class guildUpdate {
method run (line 6) | async run(oldGuild, newGuild) {
FILE: Main_Botlar/Botlar/Guard_IV/Events/ready.js
class Ready (line 2) | class Ready {
method run (line 4) | async run() {
FILE: Main_Botlar/Botlar/Guard_IV/Events/roleDelete.js
class roleDelete (line 4) | class roleDelete {
method run (line 6) | async run(role) {
FILE: Main_Botlar/Botlar/Moderation/Aris.js
class Aris (line 8) | class Aris extends Client {
method constructor (line 9) | constructor(options) {
method init (line 25) | static async init() {
method loadCommand (line 38) | loadCommand(commandPath, commandName) {
method unloadCommand (line 55) | async unloadCommand(commandPath, commandName) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Aris/autoscan.js
class AutoScan (line 2) | class AutoScan extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Aris/eval.js
class Eval (line 3) | class Eval extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Aris/pm2.js
class PM (line 2) | class PM extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Aris/reboot.js
class Reboot (line 1) | class Reboot extends Command {
method constructor (line 2) | constructor(client) {
method run (line 9) | async run(client, message, args) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Aris/templateCommand.js
class Test (line 2) | class Test extends Command {
method constructor (line 3) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Aris/test.js
class Test (line 2) | class Test extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
function secretOluştur (line 53) | function secretOluştur(length) { var result = ''; var characte...
FILE: Main_Botlar/Botlar/Moderation/Commands/CoinTask/give-removeTasks.js
class Tasks (line 4) | class Tasks extends Command {
method constructor (line 5) | constructor(client) {
method run (line 12) | async run(client, message, args, embed) {
function getRandomInt (line 127) | function getRandomInt(min, max) {
FILE: Main_Botlar/Botlar/Moderation/Commands/CoinTask/senkronRank.js
class SenkronRank (line 2) | class SenkronRank extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/CoinTask/setRank.js
class SetRank (line 2) | class SetRank extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/CoinTask/taggeds.js
class Taggeds (line 2) | class Taggeds extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/CoinTask/tagges.js
class Tagges (line 2) | class Tagges extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/CoinTask/tasks.js
class Tasks (line 3) | class Tasks extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
function progressBar (line 34) | function progressBar(value, maxValue, size) {
FILE: Main_Botlar/Botlar/Moderation/Commands/CoinTask/topTaggeds.js
class TopTaggeds (line 2) | class TopTaggeds extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/CoinTask/yStat.js
class YStat (line 3) | class YStat extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
function progressBar (line 87) | function progressBar(value, maxValue, size) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Founder/clear.js
class Temizle (line 2) | class Temizle extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Founder/denetim.js
class Denetim (line 3) | class Denetim extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Founder/herkeserolver.js
class Herkese (line 3) | class Herkese extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Founder/inviters.js
class inviter (line 2) | class inviter extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Founder/menu.js
class Menu (line 3) | class Menu extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
function secretOluştur (line 222) | function secretOluştur(length) { var result = ''; var characte...
FILE: Main_Botlar/Botlar/Moderation/Commands/Founder/rolbilgi.js
class Rolbilgi (line 2) | class Rolbilgi extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Founder/talentPerm.js
class TalentPerm (line 2) | class TalentPerm extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Global/afk.js
class AFK (line 2) | class AFK extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Global/avatar.js
class Avatar (line 2) | class Avatar extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Global/bilgi.js
class Bilgi (line 2) | class Bilgi extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Global/booster.js
class Booster (line 2) | class Booster extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Global/cek.js
class Cek (line 2) | class Cek extends Command {
method constructor (line 3) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Global/git.js
class Git (line 1) | class Git extends Command {
method constructor (line 2) | constructor(client) {
method run (line 9) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Global/say.js
class Say (line 2) | class Say extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Global/yardım.js
class Yardım (line 2) | class Yardım extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Guard/gmenü.js
class Gmenu (line 3) | class Gmenu extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
function gMenuRolKur (line 42) | async function gMenuRolKur() {
function gMenuKanalKur (line 97) | async function gMenuKanalKur() {
FILE: Main_Botlar/Botlar/Moderation/Commands/Guard/kanalkur.js
class KanalKur (line 2) | class KanalKur extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Guard/rolkur.js
class rolkur (line 3) | class rolkur extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Guard/whitelist.js
class Whitelist (line 2) | class Whitelist extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Guild/guildInfo.js
class GuildInfo (line 2) | class GuildInfo extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Guild/guildSettings.js
class GuildS (line 3) | class GuildS extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Guild/kur.js
class Kurulum (line 4) | class Kurulum extends Command {
method constructor (line 5) | constructor(client) {
method run (line 12) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Guild/setting.js
class Settings (line 2) | class Settings extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Guild/setup.js
class Setup (line 2) | class Setup extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Guild/url.js
class URL (line 1) | class URL extends Command {
method constructor (line 2) | constructor(client) {
method run (line 9) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Managment/control.js
class Control (line 2) | class Control extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Managment/giveaway.js
class Giveaway (line 4) | class Giveaway extends Command {
method constructor (line 5) | constructor(client) {
method run (line 12) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Managment/rolAddRemove.js
class RAddRemove (line 2) | class RAddRemove extends Command {
method constructor (line 3) | constructor(client) {
method run (line 9) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Managment/rollog.js
class RolLog (line 2) | class RolLog extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Managment/snipe.js
class Snipe (line 3) | class Snipe extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Managment/voiceControl.js
class vControl (line 2) | class vControl extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Managment/ysay.js
class YSay (line 2) | class YSay extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Market/coin.js
class CoinMiktar (line 2) | class CoinMiktar extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Market/coinekle.js
class CoinEkle (line 2) | class CoinEkle extends Command {
method constructor (line 3) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Market/coinflip.js
class CoinF (line 5) | class CoinF extends Command {
method constructor (line 6) | constructor(client) {
method run (line 13) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Market/daily.js
class Daily (line 2) | class Daily extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Market/hero.js
class Hero (line 2) | class Hero extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Market/market.js
class Market (line 2) | class Market extends Command {
method constructor (line 3) | constructor(client) {
method run (line 9) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Market/slot.js
class Slot (line 5) | class Slot extends Command {
method constructor (line 6) | constructor(client) {
method run (line 13) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Market/topcoin.js
class CoinMiktar (line 2) | class CoinMiktar extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Market/transfer.js
class Transfer (line 2) | class Transfer extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Punishment/ban.js
class Test (line 3) | class Test extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Punishment/cMute.js
class Cmute (line 3) | class Cmute extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Punishment/jail.js
class Jail (line 3) | class Jail extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Punishment/punishInfo.js
class PInfo (line 2) | class PInfo extends Command {
method constructor (line 3) | constructor(client) {
method run (line 9) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Punishment/sicil.js
class Sicil (line 2) | class Sicil extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Punishment/unBan.js
class UnBan (line 3) | class UnBan extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Punishment/unJail.js
class UnJail (line 3) | class UnJail extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Punishment/unMute.js
class UnMute (line 3) | class UnMute extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Punishment/unVMute.js
class UnVMute (line 3) | class UnVMute extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Punishment/vMute.js
class Vmute (line 3) | class Vmute extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Register/info.js
class KInfo (line 2) | class KInfo extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Register/man.js
class Man (line 2) | class Man extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Register/name.js
class Name (line 2) | class Name extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Register/names.js
class Names (line 2) | class Names extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Register/unregister.js
class Unregister (line 4) | class Unregister extends Command {
method constructor (line 5) | constructor(client) {
method run (line 13) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Register/woman.js
class Woman (line 2) | class Woman extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Stat/invite.js
class Invite (line 2) | class Invite extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Stat/stat.js
class Stat (line 3) | class Stat extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Stat/topInvite.js
class TopInvıte (line 2) | class TopInvıte extends Command {
method constructor (line 3) | constructor(client) {
method run (line 10) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Commands/Stat/topStat.js
class TopStat (line 3) | class TopStat extends Command {
method constructor (line 4) | constructor(client) {
method run (line 11) | async run(client, message, args, embed) {
FILE: Main_Botlar/Botlar/Moderation/Events/buttonSystems.js
class ButtonSystem (line 2) | class ButtonSystem {
method run (line 4) | async run(interaction, args) {
FILE: Main_Botlar/Botlar/Moderation/Events/coinEvent.js
class Ready (line 5) | class Ready {
method run (line 7) | async run() {
function makeid (line 334) | function makeid(length) {
FILE: Main_Botlar/Botlar/Moderation/Events/guildMemberAdd.js
class GuildMemberAdd (line 3) | class GuildMemberAdd {
method run (line 5) | async run(member) {
FILE: Main_Botlar/Botlar/Moderation/Events/guildMemberRemove.js
class GuildMemberRemove (line 2) | class GuildMemberRemove {
method run (line 4) | async run(member) {
FILE: Main_Botlar/Botlar/Moderation/Events/guildMemberUpdate.js
class GuildMemberUpdate (line 3) | class GuildMemberUpdate {
method run (line 5) | async run(newMember, oldMember) {
FILE: Main_Botlar/Botlar/Moderation/Events/inviteCreate.js
class InviteCreate (line 2) | class InviteCreate {
method run (line 4) | async run(invite) {
FILE: Main_Botlar/Botlar/Moderation/Events/inviteDelete.js
class InviteDelete (line 2) | class InviteDelete {
method run (line 4) | async run(invite) {
FILE: Main_Botlar/Botlar/Moderation/Events/menuInteraction.js
class MenuInteraction (line 2) | class MenuInteraction {
method run (line 4) | async run(interaction) {
FILE: Main_Botlar/Botlar/Moderation/Events/messageCreate.js
class MessageCreate (line 3) | class MessageCreate {
method run (line 5) | async run(message) {
FILE: Main_Botlar/Botlar/Moderation/Events/messageDelete.js
class MessageDelete (line 3) | class MessageDelete {
method run (line 5) | async run(message) {
FILE: Main_Botlar/Botlar/Moderation/Events/messageEvent.js
class Message (line 5) | class Message {
method run (line 7) | async run(message) {
FILE: Main_Botlar/Botlar/Moderation/Events/messageStats.js
class MessageStats (line 3) | class MessageStats {
method run (line 5) | async run(message) {
FILE: Main_Botlar/Botlar/Moderation/Events/ready.js
class Ready (line 5) | class Ready {
method run (line 7) | async run() {
function TagKontrol (line 109) | async function TagKontrol() {
function TagKontrol1 (line 124) | async function TagKontrol1() {
function TagKontrol2 (line 141) | async function TagKontrol2() { // TAG ALANA ROL
function TagKontrol3 (line 152) | async function TagKontrol3() { // TAGI OLMAYANIN ROLÜNÜ ALMA
function TagKontrol4 (line 164) | async function TagKontrol4() { // TAGI OLMAYANI KAYITSIZA ATMA
function cezaKontrol (line 179) | async function cezaKontrol() {
function gorevKontrol (line 216) | async function gorevKontrol() {
function getRandomInt (line 224) | function getRandomInt(min, max) {
FILE: Main_Botlar/Botlar/Moderation/Events/rewardChat.js
class Message (line 2) | class Message {
method run (line 4) | async run(message) {
FILE: Main_Botlar/Botlar/Moderation/Events/rewardVoice.js
class voiceReward (line 2) | class voiceReward {
method run (line 4) | async run(newState, oldState) {
FILE: Main_Botlar/Botlar/Moderation/Events/talentPerms.js
class Message (line 5) | class Message {
method run (line 7) | async run(message) {
FILE: Main_Botlar/Botlar/Moderation/Events/userUpdate.js
class UserUpdate (line 3) | class UserUpdate {
method run (line 5) | async run(old, nev) {
FILE: Main_Botlar/Botlar/Moderation/Events/userUpdates.js
class UserUpdate (line 3) | class UserUpdate {
method run (line 5) | async run(old, nev) {
FILE: Main_Botlar/Botlar/Moderation/Events/voiceLog.js
class VoiceLog (line 2) | class VoiceLog {
method run (line 4) | async run(oldState, newState) {
FILE: Main_Botlar/Botlar/Moderation/Events/voiceStats.js
class VoiceStats (line 2) | class VoiceStats {
method run (line 4) | async run(oldState, newState) {
function saveStats (line 38) | async function saveStats(user, channel, data) { await voiceUser.findOneA...
function saveData (line 40) | async function saveData(user, channel, data) {
FILE: Main_Botlar/Botlar/Moderation/dash.js
function secretOluştur (line 86) | function secretOluştur(length) { var result = ''; var characte...
FILE: Main_Botlar/Botlar/main.js
function urlSpam (line 21) | async function urlSpam() {
FILE: Main_Botlar/Helpers/Backup.js
class Backup (line 2) | class Backup {
method RoleBackup (line 3) | static async RoleBackup() {
method channelBackup (line 56) | static async channelBackup() {
FILE: Main_Botlar/Helpers/BackupFunction.js
method rolVer (line 4) | rolVer(sunucu, role) {
method rolKur (line 20) | rolKur(role, newRole) {
FILE: Main_Botlar/Helpers/Command.js
class Command (line 1) | class Command {
method constructor (line 2) | constructor(client, {
method run (line 27) | async run() {
FILE: Main_Botlar/Helpers/Handler.js
class EventHandler (line 4) | class EventHandler {
method events (line 5) | static async events(client, filePath, dirname) {
FILE: Main_Botlar/Helpers/Logger.js
class Logger (line 5) | class Logger {
method log (line 6) | static log(content, type = "log") {
method error (line 47) | static error(content) {
method warn (line 51) | static warn(content) {
method debug (line 55) | static debug(content) {
method cmd (line 59) | static cmd(content) {
FILE: Main_Botlar/Helpers/Mongo.js
class Mongoose (line 1) | class Mongoose {
method Connect (line 2) | static Connect(URL = config.MongoURL) {
FILE: Main_Botlar/Helpers/function.js
method ytKapat (line 8) | async ytKapat(guildID) {
method guvenli (line 24) | async guvenli(kisiID) { const { ariscik } = require("./Schemas"); const ...
method checkDays (line 26) | checkDays(date) {
method sleep (line 32) | sleep(ms) {
method getBanner (line 36) | async getBanner(userId, {
Condensed preview — 177 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (750K chars).
[
{
"path": "Main_Botlar/Botlar/Guard_I/Events/banAdd.js",
"chars": 2706,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_I/Events/botAdd.js",
"chars": 2455,
"preview": "const { ariscik } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\")\r\nclass"
},
{
"path": "Main_Botlar/Botlar/Guard_I/Events/channelCreate.js",
"chars": 2618,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_I/Events/channelDelete.js",
"chars": 2736,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_I/Events/channelUpdate.js",
"chars": 2759,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_I/Events/guildUpdate.js",
"chars": 5529,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_I/Events/kickAdd.js",
"chars": 2724,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_I/Events/memberPrune.js",
"chars": 2608,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_I/Events/memberUpdate.js",
"chars": 3122,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_I/Events/ready.js",
"chars": 646,
"preview": "const Backup = require(\"../../../Helpers/Backup\")\nconst { ariscik } = require(\"../../../Helpers/Schemas\")\nclass Ready {\n"
},
{
"path": "Main_Botlar/Botlar/Guard_I/Events/roleCreate.js",
"chars": 2592,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_I/Events/roleDelete.js",
"chars": 2700,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_I/Events/roleUpdate.js",
"chars": 2666,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_I/Events/webhookCreate.js",
"chars": 2700,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_I/main.js",
"chars": 1323,
"preview": "const { Client, Intents } = require('discord.js')\nconst FileSync = require('lowdb/adapters/FileSync');\nconst config = re"
},
{
"path": "Main_Botlar/Botlar/Guard_II/Events/banAdd.js",
"chars": 690,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { ytKapat, guvenli } = require(\"../../../Helpers/"
},
{
"path": "Main_Botlar/Botlar/Guard_II/Events/botAdd.js",
"chars": 698,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { ytKapat, guvenli } = require(\"../../../Helpers/"
},
{
"path": "Main_Botlar/Botlar/Guard_II/Events/channelCreate.js",
"chars": 752,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { ytKapat, guvenli } = require(\"../../../Helpers/"
},
{
"path": "Main_Botlar/Botlar/Guard_II/Events/channelDelete.js",
"chars": 712,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { ytKapat, guvenli } = require(\"../../../Helpers/"
},
{
"path": "Main_Botlar/Botlar/Guard_II/Events/channelUpdate.js",
"chars": 784,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { ytKapat, guvenli } = require(\"../../../Helpers/"
},
{
"path": "Main_Botlar/Botlar/Guard_II/Events/guildUpdate.js",
"chars": 5525,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { ytKapat, guvenli } = require(\"../../../Helpers/"
},
{
"path": "Main_Botlar/Botlar/Guard_II/Events/kickAdd.js",
"chars": 713,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { ytKapat, guvenli } = require(\"../../../Helpers/"
},
{
"path": "Main_Botlar/Botlar/Guard_II/Events/memberPrune.js",
"chars": 719,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { ytKapat, guvenli } = require(\"../../../Helpers/"
},
{
"path": "Main_Botlar/Botlar/Guard_II/Events/memberUpdate.js",
"chars": 1016,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { ytKapat, guvenli } = require(\"../../../Helpers/"
},
{
"path": "Main_Botlar/Botlar/Guard_II/Events/ready.js",
"chars": 1672,
"preview": "const { roleBackup, ariscik } = require(\"../../../Helpers/Schemas\")\nclass Ready {\n Event = \"ready\"\n async run() {\n"
},
{
"path": "Main_Botlar/Botlar/Guard_II/Events/roleCreate.js",
"chars": 734,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { ytKapat, guvenli } = require(\"../../../Helpers/"
},
{
"path": "Main_Botlar/Botlar/Guard_II/Events/roleDelete.js",
"chars": 698,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { ytKapat, guvenli } = require(\"../../../Helpers/"
},
{
"path": "Main_Botlar/Botlar/Guard_II/Events/roleUpdate.js",
"chars": 713,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { ytKapat, guvenli } = require(\"../../../Helpers/"
},
{
"path": "Main_Botlar/Botlar/Guard_II/Events/webhookCreate.js",
"chars": 708,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { ytKapat, guvenli } = require(\"../../../Helpers/"
},
{
"path": "Main_Botlar/Botlar/Guard_II/main.js",
"chars": 1587,
"preview": "const { Client, Intents } = require('discord.js');//oç ferhat\nconst FileSync = require('lowdb/adapters/FileSync');\nconst"
},
{
"path": "Main_Botlar/Botlar/Guard_III/Events/banAdd.js",
"chars": 1089,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_III/Events/botAdd.js",
"chars": 1834,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_III/Events/channelCreate.js",
"chars": 1704,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_III/Events/channelDelete.js",
"chars": 1697,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_III/Events/channelUpdate.js",
"chars": 1789,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_III/Events/guildUpdate.js",
"chars": 5525,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { ytKapat, guvenli } = require(\"../../../Helpers/"
},
{
"path": "Main_Botlar/Botlar/Guard_III/Events/kickAdd.js",
"chars": 963,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_III/Events/memberPrune.js",
"chars": 1697,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_III/Events/memberUpdate.js",
"chars": 2129,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_III/Events/ready.js",
"chars": 650,
"preview": "const { ariscik } = require(\"../../../Helpers/Schemas\")\nconst Backup = require(\"../../../Helpers/Backup\")\nclass Ready {\n"
},
{
"path": "Main_Botlar/Botlar/Guard_III/Events/roleCreate.js",
"chars": 1672,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_III/Events/roleDelete.js",
"chars": 1664,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_III/Events/roleUpdate.js",
"chars": 1700,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst Self = require('discord.js-selfbot');\r\nconst { gu"
},
{
"path": "Main_Botlar/Botlar/Guard_III/Events/webhookCreate.js",
"chars": 1031,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/function\""
},
{
"path": "Main_Botlar/Botlar/Guard_III/main.js",
"chars": 1358,
"preview": "const { Client, Intents } = require('discord.js')\nconst FileSync = require('lowdb/adapters/FileSync');\nconst config = re"
},
{
"path": "Main_Botlar/Botlar/Guard_IV/Events/channelDelete.js",
"chars": 4980,
"preview": "const { ariscik, channelBackup } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/fu"
},
{
"path": "Main_Botlar/Botlar/Guard_IV/Events/guildUpdate.js",
"chars": 5525,
"preview": "const { ariscik, permis } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli, ytKapat } = require(\"../../../Helpers/"
},
{
"path": "Main_Botlar/Botlar/Guard_IV/Events/ready.js",
"chars": 490,
"preview": "const { ariscik } = require(\"../../../Helpers/Schemas\")\nclass Ready {\n Event = \"ready\"\n async run() {\n setInterval("
},
{
"path": "Main_Botlar/Botlar/Guard_IV/Events/roleDelete.js",
"chars": 4944,
"preview": "const { ariscik, roleBackup } = require(\"../../../Helpers/Schemas\")\r\nconst { guvenli } = require(\"../../../Helpers/funct"
},
{
"path": "Main_Botlar/Botlar/Guard_IV/main.js",
"chars": 1391,
"preview": "const { Client, Intents } = require('discord.js')\r\nconst FileSync = require('lowdb/adapters/FileSync');\r\nconst config = "
},
{
"path": "Main_Botlar/Botlar/Moderation/Aris.js",
"chars": 2637,
"preview": "const { Client, Collection } = require('discord.js');\nconst FileSync = require('lowdb/adapters/FileSync');\nconst path = "
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Aris/autoscan.js",
"chars": 10908,
"preview": "const { ariscik } = require(\"../../../../Helpers/Schemas\")\r\nclass AutoScan extends Command {\r\n constructor(client) {\r"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Aris/eval.js",
"chars": 1417,
"preview": "const util = require(\"util\");\r\nconst { ariscik } = require(\"../../../../Helpers/Schemas\");\r\nclass Eval extends Command {"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Aris/pm2.js",
"chars": 655,
"preview": "const children = require(\"child_process\");\r\nclass PM extends Command {\r\n constructor(client) {\r\n super(client,"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Aris/reboot.js",
"chars": 1018,
"preview": "class Reboot extends Command {\r\n constructor(client) {\r\n super(client, {\r\n name: \"reboot\",\r\n "
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Aris/templateCommand.js",
"chars": 365,
"preview": "const { ariscik } = require('../../../../Helpers/Schemas')\r\nclass Test extends Command {\r\n constructor(client) {\r\n "
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Aris/test.js",
"chars": 2603,
"preview": "const { ariscik, market } = require('../../../../Helpers/Schemas')\r\nclass Test extends Command {\r\n constructor(client"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/CoinTask/give-removeTasks.js",
"chars": 10714,
"preview": "const { ariscik, tasks } = require(\"../../../../Helpers/Schemas\")\r\nconst moment = require(\"moment\")\r\nmoment.locale(\"tr\")"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/CoinTask/senkronRank.js",
"chars": 2901,
"preview": "const { ariscik, coin } = require('../../../../Helpers/Schemas')\r\nclass SenkronRank extends Command {\r\n constructor(c"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/CoinTask/setRank.js",
"chars": 3695,
"preview": "const { ariscik, coin } = require(\"../../../../Helpers/Schemas\")\r\nclass SetRank extends Command {\r\n constructor(clien"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/CoinTask/taggeds.js",
"chars": 3636,
"preview": "const { ariscik, Users } = require('../../../../Helpers/Schemas')\r\nclass Taggeds extends Command {\r\n constructor(clie"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/CoinTask/tagges.js",
"chars": 4352,
"preview": "const { ariscik, Users, coin } = require('../../../../Helpers/Schemas')\r\nclass Tagges extends Command {\r\n constructor"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/CoinTask/tasks.js",
"chars": 2625,
"preview": "const { ariscik, tasks } = require('../../../../Helpers/Schemas')\r\nconst moment = require(\"moment\"); require(\"moment-dur"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/CoinTask/topTaggeds.js",
"chars": 1516,
"preview": "const { ariscik, Users } = require('../../../../Helpers/Schemas')\r\nclass TopTaggeds extends Command {\r\n constructor(c"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/CoinTask/yStat.js",
"chars": 7422,
"preview": "const { ariscik, tasks, messageUser, voiceUser, coin, Users, Inviter, Penalties } = require('../../../../Helpers/Schemas"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Founder/clear.js",
"chars": 825,
"preview": "const { ariscik } = require('../../../../Helpers/Schemas')\r\nclass Temizle extends Command {\r\n constructor(client) {\r\n"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Founder/denetim.js",
"chars": 14750,
"preview": "const { roleBackup, channelBackup } = require(\"../../../../Helpers/Schemas\")\r\nconst { rolKur } = require(\"../../../../He"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Founder/herkeserolver.js",
"chars": 1257,
"preview": "const { ariscik } = require(\"../../../../Helpers/Schemas\")\r\nconst {rolVer} = require(\"../../../../Helpers/BackupFunctio"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Founder/inviters.js",
"chars": 3825,
"preview": "const { ariscik, Inviter, Users } = require(\"../../../../Helpers/Schemas\")\r\nclass inviter extends Command {\r\n constru"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Founder/menu.js",
"chars": 12933,
"preview": "const { Custom } = require(\"../../../../Helpers/Schemas\")\r\nconst moment = require(\"moment\")\r\nclass Menu extends Command "
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Founder/rolbilgi.js",
"chars": 3763,
"preview": "const { ariscik, Inviter, Users } = require(\"../../../../Helpers/Schemas\")\r\nclass Rolbilgi extends Command {\r\n constr"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Founder/talentPerm.js",
"chars": 3112,
"preview": "const { ariscik, talentPerms } = require('../../../../Helpers/Schemas')\r\nclass TalentPerm extends Command {\r\n constru"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Global/afk.js",
"chars": 1299,
"preview": "const { Users } = require('../../../../Helpers/Schemas')\r\nclass AFK extends Command {\r\n constructor(client) {\r\n "
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Global/avatar.js",
"chars": 1297,
"preview": "const { ariscik } = require('../../../../Helpers/Schemas')\r\nclass Avatar extends Command {\r\n constructor(client) {\r\n "
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Global/bilgi.js",
"chars": 4359,
"preview": "const { ariscik, Penalties, Users } = require('../../../../Helpers/Schemas')\r\nclass Bilgi extends Command {\r\n constru"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Global/booster.js",
"chars": 2203,
"preview": "const { ariscik, Users } = require('../../../../Helpers/Schemas')\r\nclass Booster extends Command {\r\n constructor(clie"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Global/cek.js",
"chars": 4506,
"preview": "const { ariscik } = require('../../../../Helpers/Schemas')\r\nclass Cek extends Command {\r\n constructor(client) {\r\n "
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Global/git.js",
"chars": 3629,
"preview": "class Git extends Command {\r\n constructor(client) {\r\n super(client, {\r\n name: \"git\",\r\n a"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Global/say.js",
"chars": 1369,
"preview": "const { ariscik } = require('../../../../Helpers/Schemas')\r\nclass Say extends Command {\r\n constructor(client) {\r\n "
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Global/yardım.js",
"chars": 1075,
"preview": "const { ariscik, talentPerms } = require('../../../../Helpers/Schemas')\r\nclass Yardım extends Command {\r\n constructor"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Guard/gmenü.js",
"chars": 7102,
"preview": "const { ariscik, roleBackup, channelBackup } = require(\"../../../../Helpers/Schemas\")\r\nconst Backup = require(\"../../.."
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Guard/kanalkur.js",
"chars": 6165,
"preview": "const { ariscik, channelBackup } = require('../../../../Helpers/Schemas')\r\nclass KanalKur extends Command {\r\n construct"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Guard/rolkur.js",
"chars": 5101,
"preview": "const { ariscik, roleBackup } = require(\"../../../../Helpers/Schemas\")\r\nconst {rolKur} = require(\"../../../../Helpers/Ba"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Guard/whitelist.js",
"chars": 2438,
"preview": "const { ariscik } = require('../../../../Helpers/Schemas')\r\nclass Whitelist extends Command {\r\n constructor(client) {"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Guild/guildInfo.js",
"chars": 6119,
"preview": "const { ariscik } = require('../../../../Helpers/Schemas')\r\nclass GuildInfo extends Command {\r\n constructor(client) {"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Guild/guildSettings.js",
"chars": 4510,
"preview": "const { ariscik } = require('../../../../Helpers/Schemas')\r\nconst { Permissions } = require('discord.js');\r\nclass GuildS"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Guild/kur.js",
"chars": 17095,
"preview": "const { ariscik, roleBackup } = require(\"../../../../Helpers/Schemas\")\r\nconst { Database } = require(\"ark.db\")\r\nconst em"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Guild/setting.js",
"chars": 5786,
"preview": "const { ariscik} = require(\"../../../../Helpers/Schemas\")\r\nclass Settings extends Command {\r\n constructor(client) {\r\n"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Guild/setup.js",
"chars": 29301,
"preview": "const { ariscik } = require(\"../../../../Helpers/Schemas\")\r\nclass Setup extends Command {\r\n constructor(client) {\r\n "
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Guild/url.js",
"chars": 557,
"preview": "class URL extends Command {\r\n constructor(client) {\r\n super(client, {\r\n name: \"url\",\r\n a"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Managment/control.js",
"chars": 3680,
"preview": "const { ariscik } = require('../../../../Helpers/Schemas')\r\nclass Control extends Command {\r\n constructor(client) {\r\n"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Managment/giveaway.js",
"chars": 3908,
"preview": "const { ariscik, cekilis } = require('../../../../Helpers/Schemas')\r\nconst moment = require(\"moment\");\r\nconst ms = requi"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Managment/rolAddRemove.js",
"chars": 3948,
"preview": "const { ariscik } = require('../../../../Helpers/Schemas')\r\nclass RAddRemove extends Command {\r\n constructor(client) "
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Managment/rollog.js",
"chars": 4972,
"preview": "const { ariscik, RoleData } = require('../../../../Helpers/Schemas')\r\nclass RolLog extends Command {\r\n constructor(cl"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Managment/snipe.js",
"chars": 1854,
"preview": "const { ariscik, Snipes } = require('../../../../Helpers/Schemas');\r\nconst moment = require(\"moment\")\r\nclass Snipe exten"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Managment/voiceControl.js",
"chars": 1897,
"preview": "const { ariscik, voiceJoinedAt } = require('../../../../Helpers/Schemas')\r\nclass vControl extends Command {\r\n constru"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Managment/ysay.js",
"chars": 3124,
"preview": "const { ariscik } = require('../../../../Helpers/Schemas')\r\nclass YSay extends Command {\r\n constructor(client) {\r\n "
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Market/coin.js",
"chars": 836,
"preview": "const { ariscik, coins } = require('../../../../Helpers/Schemas')\r\nclass CoinMiktar extends Command {\r\n constructor(c"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Market/coinekle.js",
"chars": 886,
"preview": "const { ariscik, coins } = require('../../../../Helpers/Schemas')\r\nclass CoinEkle extends Command {\r\n constructor(cli"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Market/coinflip.js",
"chars": 2770,
"preview": "const { ariscik, coins } = require('../../../../Helpers/Schemas')\r\nconst moment = require(\"moment\");\r\nrequire(\"moment-du"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Market/daily.js",
"chars": 1370,
"preview": "const { ariscik, coins } = require('../../../../Helpers/Schemas')\r\nclass Daily extends Command {\r\n constructor(client"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Market/hero.js",
"chars": 10469,
"preview": "const { ariscik, hero } = require('../../../../Helpers/Schemas')\r\nclass Hero extends Command {\r\n constructor(client) "
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Market/market.js",
"chars": 5565,
"preview": "const { ariscik, market, coins } = require('../../../../Helpers/Schemas')\r\nclass Market extends Command {\r\n construct"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Market/slot.js",
"chars": 3059,
"preview": "const { ariscik, coins } = require('../../../../Helpers/Schemas')\r\nconst moment = require(\"moment\");\r\nrequire(\"moment-du"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Market/topcoin.js",
"chars": 815,
"preview": "const { ariscik, coins } = require('../../../../Helpers/Schemas')\r\nclass CoinMiktar extends Command {\r\n constructor(c"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Market/transfer.js",
"chars": 1955,
"preview": "const { ariscik, coins } = require('../../../../Helpers/Schemas')\r\nclass Transfer extends Command {\r\n constructor(cli"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Punishment/ban.js",
"chars": 5242,
"preview": "const { ariscik, Penalties } = require('../../../../Helpers/Schemas')\r\nconst moment = require(\"moment\"); moment.locale(\""
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Punishment/cMute.js",
"chars": 6056,
"preview": "const { ariscik, Penalties } = require('../../../../Helpers/Schemas')\r\nconst moment = require(\"moment\"); moment.locale(\""
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Punishment/jail.js",
"chars": 5598,
"preview": "const { ariscik, Penalties } = require('../../../../Helpers/Schemas')\r\nconst moment = require(\"moment\"); moment.locale(\""
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Punishment/punishInfo.js",
"chars": 2142,
"preview": "const { ariscik, Penalties } = require('../../../../Helpers/Schemas')\r\nclass PInfo extends Command {\r\n constructor(cl"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Punishment/sicil.js",
"chars": 1909,
"preview": "const { ariscik, Penalties } = require('../../../../Helpers/Schemas')\r\nclass Sicil extends Command {\r\n constructor(cl"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Punishment/unBan.js",
"chars": 2448,
"preview": "const { ariscik, Penalties } = require('../../../../Helpers/Schemas')\r\nconst moment = require(\"moment\"); moment.locale(\""
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Punishment/unJail.js",
"chars": 2808,
"preview": "const { ariscik, Penalties } = require('../../../../Helpers/Schemas')\r\nconst moment = require(\"moment\"); moment.locale(\""
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Punishment/unMute.js",
"chars": 2830,
"preview": "const { ariscik, Penalties } = require('../../../../Helpers/Schemas')\r\nconst moment = require(\"moment\"); moment.locale(\""
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Punishment/unVMute.js",
"chars": 3025,
"preview": "const { ariscik, Penalties } = require('../../../../Helpers/Schemas')\r\nconst moment = require(\"moment\"); moment.locale(\""
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Punishment/vMute.js",
"chars": 6190,
"preview": "const { ariscik, Penalties } = require('../../../../Helpers/Schemas')\r\nconst moment = require(\"moment\"); moment.locale(\""
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Register/info.js",
"chars": 5927,
"preview": "const { ariscik, Users } = require('../../../../Helpers/Schemas')\r\nclass KInfo extends Command {\r\n constructor(client"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Register/man.js",
"chars": 6044,
"preview": "const { ariscik, Penalties, Users, coin } = require('../../../../Helpers/Schemas')\r\nclass Man extends Command {\r\n con"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Register/name.js",
"chars": 3574,
"preview": "const { ariscik, Users } = require('../../../../Helpers/Schemas')\r\nclass Name extends Command {\r\n constructor(client)"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Register/names.js",
"chars": 5036,
"preview": "const { ariscik, Users } = require('../../../../Helpers/Schemas')\r\nclass Names extends Command {\r\n constructor(client"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Register/unregister.js",
"chars": 4376,
"preview": "const { ariscik } = require('../../../../Helpers/Schemas')\r\nconst moment = require(\"moment\")\r\nmoment.locale(\"tr\")\r\nclass"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Register/woman.js",
"chars": 5840,
"preview": "const { ariscik, Penalties, Users, coin } = require('../../../../Helpers/Schemas')\r\nclass Woman extends Command {\r\n c"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Stat/invite.js",
"chars": 1790,
"preview": "const { ariscik, Inviter } = require('../../../../Helpers/Schemas')\r\nclass Invite extends Command {\r\n constructor(cli"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Stat/stat.js",
"chars": 2544,
"preview": "const { ariscik, messageUserChannel, voiceUserChannel, messageUser, voiceUser } = require('../../../../Helpers/Schemas')"
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Stat/topInvite.js",
"chars": 1436,
"preview": "const { ariscik, Inviter } = require('../../../../Helpers/Schemas')\r\nclass TopInvıte extends Command {\r\n constructor("
},
{
"path": "Main_Botlar/Botlar/Moderation/Commands/Stat/topStat.js",
"chars": 2191,
"preview": "const { ariscik, messageGuild, voiceGuild, messageUser, voiceUser } = require('../../../../Helpers/Schemas')\r\nconst mome"
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/buttonSystems.js",
"chars": 1377,
"preview": "const { ariscik } = require('../../../Helpers/Schemas')\r\nclass ButtonSystem {\r\n Event = \"interactionCreate\"\r\n async ru"
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/coinEvent.js",
"chars": 24542,
"preview": "const { coins, ariscik } = require('../../../Helpers/Schemas');\r\nconst { loadImage } = require(\"canvas\")\r\nconst { Canvas"
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/guildMemberAdd.js",
"chars": 9504,
"preview": "const { ariscik, Penalties, Inviter, Users, coin } = require('../../../Helpers/Schemas')\r\nconst moment = require(\"moment"
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/guildMemberRemove.js",
"chars": 3009,
"preview": "const { ariscik, Penalties, Inviter, Users, coin } = require('../../../Helpers/Schemas')\r\nclass GuildMemberRemove {\r\n "
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/guildMemberUpdate.js",
"chars": 5783,
"preview": "const { RoleData, ariscik } = require('../../../Helpers/Schemas')\r\nconst moment = require('moment')\r\nclass GuildMemberUp"
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/inviteCreate.js",
"chars": 429,
"preview": "const Discord = require(\"discord.js\");\r\nclass InviteCreate {\r\n Event = \"inviteCreate\"\r\n async run(invite) {\r\n invit"
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/inviteDelete.js",
"chars": 463,
"preview": "const Discord = require(\"discord.js\");\r\nclass InviteDelete {\r\n Event = \"inviteDelete\"\r\n async run(invite) {\r\n setTi"
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/menuInteraction.js",
"chars": 2105,
"preview": "const { Custom } = require(\"../../../Helpers/Schemas\")\r\nclass MenuInteraction {\r\n Event = \"interactionCreate\"\r\n as"
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/messageCreate.js",
"chars": 4869,
"preview": "const Discord = require(\"discord.js\");\nconst { ariscik, talentPerms } = require(\"../../../Helpers/Schemas\")\nclass Messag"
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/messageDelete.js",
"chars": 1265,
"preview": "const Discord = require(\"discord.js\");\r\nconst { ariscik, Snipes } = require(\"../../../Helpers/Schemas\")\r\nclass MessageDe"
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/messageEvent.js",
"chars": 1756,
"preview": "const { Users } = require(\"../../../Helpers/Schemas\");\r\nconst moment = require(\"moment\");\r\nrequire(\"moment-duration-form"
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/messageStats.js",
"chars": 3467,
"preview": "const { messageUser, messageGuild, messageGuildChannel, messageUserChannel, ariscik, coin } = require(\"../../../Helpers/"
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/ready.js",
"chars": 15348,
"preview": "const { CronJob } = require(\"cron\");\nconst { Users, ariscik, tasks, Penalties, messageGuild, voiceGuild, messageUser } ="
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/rewardChat.js",
"chars": 1433,
"preview": "const { ariscik, messageUser } = require(\"../../../Helpers/Schemas\");\r\nclass Message {\r\n Event = \"messageCreate\"\r\n asy"
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/rewardVoice.js",
"chars": 1985,
"preview": "const { ariscik, voiceUser } = require(\"../../../Helpers/Schemas\");\r\nclass voiceReward {\r\n Event = \"voiceStateUpdate\"\r\n"
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/talentPerms.js",
"chars": 2034,
"preview": "const { talentPerms } = require(\"../../../Helpers/Schemas\");\r\nconst moment = require(\"moment\");\r\nrequire(\"moment-duratio"
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/userUpdate.js",
"chars": 2104,
"preview": "const Discord = require(\"discord.js\");\r\nconst { ariscik } = require(\"../../../Helpers/Schemas\")\r\nclass UserUpdate {\r\n "
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/userUpdates.js",
"chars": 1695,
"preview": "const Discord = require(\"discord.js\");\r\nconst { ariscik } = require(\"../../../Helpers/Schemas\")\r\nclass UserUpdate {\r\n "
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/voiceLog.js",
"chars": 2845,
"preview": "const { ariscik } = require('../../../Helpers/Schemas') \r\nclass VoiceLog {\r\n Event = \"voiceStateUpdate\"\r\n async run(ol"
},
{
"path": "Main_Botlar/Botlar/Moderation/Events/voiceStats.js",
"chars": 5298,
"preview": "const { voiceJoinedAt, voiceUser, voiceGuild, voiceGuildChannel, voiceUserChannel, voiceUserParent, ariscik, coin } = re"
},
{
"path": "Main_Botlar/Botlar/Moderation/Panel/views/ek/header.ejs",
"chars": 8438,
"preview": "<% let sw=global.client.guilds.cache.get(config.guildID) %>\r\n\r\n <!DOCTYPE html>\r\n <html lang=\"en\">\r\n\r\n <head>\r\n <m"
},
{
"path": "Main_Botlar/Botlar/Moderation/Panel/views/hata.ejs",
"chars": 11072,
"preview": "<html>\r\n\r\n<head>\r\n <meta name=\"description\" content=\"Narcos Code Genel V5 Huzurlarınızla Sunar...\">\r\n\r\n <meta name=\"ke"
},
{
"path": "Main_Botlar/Botlar/Moderation/Panel/views/index.ejs",
"chars": 11882,
"preview": "<html>\r\n\r\n<head>\r\n <meta name=\"description\" content=\"Aris Lesnar Web Panel Sistem\">\r\n\r\n <meta name=\"keyword\" content=\""
},
{
"path": "Main_Botlar/Botlar/Moderation/Panel/views/pages/bot.ejs",
"chars": 2850,
"preview": "<% let sw=global.client.guilds.cache.get(config.guildID) %>\r\n\r\n <%- include('../ek/header.ejs', {bot, user}) %>\r\n\r\n "
},
{
"path": "Main_Botlar/Botlar/Moderation/Panel/views/pages/cezalar.ejs",
"chars": 3097,
"preview": "\r\n\r\n\r\n <%- include('../ek/header.ejs', {bot, user}) %>\r\n<center>\r\n\r\n<div class=\"container\" style=\"text-align: center;"
},
{
"path": "Main_Botlar/Botlar/Moderation/Panel/views/pages/gorev.ejs",
"chars": 4380,
"preview": "<% let sw=global.client.guilds.cache.get(config.guildID) %>\r\n <%- include('../ek/header.ejs', {bot, user}) %>\r\n <cen"
},
{
"path": "Main_Botlar/Botlar/Moderation/Panel/views/pages/guard.ejs",
"chars": 6482,
"preview": "<% let sw=global.client.guilds.cache.get(config.guildID) %>\r\n <%- include('../ek/header.ejs', {bot, user}) %>\r\n <cen"
},
{
"path": "Main_Botlar/Botlar/Moderation/Panel/views/pages/menu.ejs",
"chars": 7457,
"preview": "<% let sw=global.client.guilds.cache.get(config.guildID) %>\r\n <%- include('../ek/header.ejs', {bot, user}) %>\r\n "
},
{
"path": "Main_Botlar/Botlar/Moderation/Panel/views/pages/moderation.ejs",
"chars": 18243,
"preview": "<% let sw=global.client.guilds.cache.get(config.guildID) %>\r\n <%- include('../ek/header.ejs', {bot, user}) %>\r\n\r\n "
},
{
"path": "Main_Botlar/Botlar/Moderation/Panel/views/pages/register.ejs",
"chars": 8129,
"preview": "<% let sw=global.client.guilds.cache.get(config.guildID) %>\r\n <%- include('../ek/header.ejs', {bot, user}) %>\r\n\r\n "
},
{
"path": "Main_Botlar/Botlar/Moderation/Panel/views/pages/role.ejs",
"chars": 2850,
"preview": "<% let sw=global.client.guilds.cache.get(config.guildID) %>\r\n\r\n <%- include('../ek/header.ejs', {bot, user}) %>\r\n\r\n "
},
{
"path": "Main_Botlar/Botlar/Moderation/Panel/views/pages/settings.ejs",
"chars": 5067,
"preview": "<% let sw=global.client.guilds.cache.get(config.guildID) %>\r\n\r\n <%- include('../ek/header.ejs', {bot, user}) %>\r\n\r\n "
},
{
"path": "Main_Botlar/Botlar/Moderation/Panel/views/panel.ejs",
"chars": 1294,
"preview": "\r\n\r\n\r\n<%- include('ek/header.ejs', {bot, user}) %>\r\n<center>\r\n\r\n<div class=\"container\" style=\"text-align: center;\">\r\n<di"
},
{
"path": "Main_Botlar/Botlar/Moderation/Panel/views/panelhata.ejs",
"chars": 11072,
"preview": "<html>\r\n\r\n<head>\r\n <meta name=\"description\" content=\"Narcos Code Genel V5 Huzurlarınızla Sunar...\">\r\n\r\n <meta name=\"ke"
},
{
"path": "Main_Botlar/Botlar/Moderation/dash.js",
"chars": 33047,
"preview": "const { Client, Intents, Permissions } = require('discord.js');\r\nconst { Aris } = require(\"./Aris\")\r\nconst config = requ"
},
{
"path": "Main_Botlar/Botlar/Moderation/main.js",
"chars": 4450,
"preview": "const { Intents, Client, Collection} = require(\"discord.js\")\nconst { Aris } = require(\"./Aris\")\nconst config = require(\""
},
{
"path": "Main_Botlar/Botlar/main.js",
"chars": 1655,
"preview": "const { Client, Intents } = require('discord.js');\nconst config = require(\"../Settings/config.json\");\nlet Bots = global."
},
{
"path": "Main_Botlar/Helpers/Backup.js",
"chars": 7615,
"preview": "const { roleBackup, ariscik, channelBackup } = require(\"../Helpers/Schemas\");\nclass Backup {\n static async RoleBackup"
},
{
"path": "Main_Botlar/Helpers/BackupFunction.js",
"chars": 3082,
"preview": "const { roleBackup } = require(\"../Helpers/Schemas\")\nconst Bots = require(\"../Botlar/main\")\nmodule.exports = {\n rolVer("
},
{
"path": "Main_Botlar/Helpers/Command.js",
"chars": 562,
"preview": "class Command {\n constructor(client, {\n name = null,\n aliases = [],\n description = [],\n c"
},
{
"path": "Main_Botlar/Helpers/Handler.js",
"chars": 920,
"preview": "const fs = require('fs');\nconst util = require('util');\nconst readdir = util.promisify(fs.readdir);\nclass EventHandler {"
},
{
"path": "Main_Botlar/Helpers/Logger.js",
"chars": 2124,
"preview": "const chalk = require(\"chalk\");\nconst moment = require(\"moment\");\nmoment.locale(\"tr\")\n\nclass Logger {\n static log(conte"
},
{
"path": "Main_Botlar/Helpers/Mongo.js",
"chars": 479,
"preview": "class Mongoose {\n static Connect(URL = config.MongoURL) {\n require('mongoose').connect(URL, {\n us"
},
{
"path": "Main_Botlar/Helpers/Schemas.js",
"chars": 8763,
"preview": "const mongoose = require('mongoose');\r\n\r\nconst ariscik = mongoose.model(\"ariscik\", mongoose.Schema({ guildID: String, is"
},
{
"path": "Main_Botlar/Helpers/Utils.js",
"chars": 5832,
"preview": "\nmodule.exports = async (client) => {\n\n const emojis = global.emojis = require(\"../Settings/emojis.json\")\n const confi"
},
{
"path": "Main_Botlar/Helpers/function.js",
"chars": 3520,
"preview": "const fetch = require(\"node-fetch\");\nconst allowedFormats = [\"webp\", \"png\", \"jpg\", \"jpeg\", \"gif\"];\nconst allowedSizes = "
},
{
"path": "Main_Botlar/Settings/config.json",
"chars": 717,
"preview": "{\n \"guildID\": \"\",\n \"prefix\": [\".\", \"!\"],\n \"root\": [\"\"],\n \"Founders\": [\"\"],\n \"muteLimit\": 3, \"banLimit\": 2, \"jailLim"
},
{
"path": "Main_Botlar/Settings/emojis.json",
"chars": 2,
"preview": "{}"
},
{
"path": "README.md",
"chars": 2725,
"preview": "# V13 ARIS LESNAR BOTS\n\nhttps://www.youtube.com/channel/UCJS54jd_LuiqTeWf1qin9fg\n\n!! APTAL SAPTAL İNSANLARIN REPOLARINDA"
},
{
"path": "app.config.js",
"chars": 1084,
"preview": "module.exports = {\n apps: [\n {\n name: \"MODERATION\",\n namespace: \"Aris\",\n script: 'main.js',\n wat"
},
{
"path": "package.json",
"chars": 1057,
"preview": "{\n \"name\": \"botlar\",\n \"version\": \"1.0.0\",\n \"description\": \"\",\n \"main\": \"app.config.js\",\n \"scripts\": {\n \"heroku-p"
}
]
About this extraction
This page contains the full source code of the ariscik/V13-Discord-Bots GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 177 files (685.2 KB), approximately 188.1k tokens, and a symbol index with 406 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.