├── README.md
├── database
└── şema
│ ├── Sunucu.js
│ ├── begendim.js
│ └── kayıt.js
├── event
├── message.js
└── ready.js
├── helpers
├── clientMethods.js
└── guildAdd.js
├── loader
├── commandloader.js
├── dataLoader.js
└── eventloader.js
├── open.json
├── package.json
├── server
├── BAN_ban.js
├── BAN_banSistem.js
├── BAN_bansorgu.js
├── BAN_unban.js
├── BOT_Davet.js
├── BOT_istatistik.js
├── KAY_E-kayıt.js
├── KAY_EKrol.js
├── KAY_Erole.js
├── KAY_K-kayıt.js
├── KAY_Karole.js
├── KAY_Kkanal.js
├── KAY_Kmesaj.js
├── KAY_Krole.js
├── KAY_Yrole.js
├── KAY_aktiflik.js
├── KAY_eksikler.js
├── KAY_isim-zorun.js
├── KAY_isim.js
├── KAY_isimdüzen.js
├── KAY_isimler.js
├── KAY_otorol.js
├── KAY_profil.js
├── KAY_say.js
├── K_kullanıcıbilg.js
├── M_nuke.js
├── ResimliHgBB.js
├── SAY_Sayaç.js
├── TAG_tag.js
├── _Sıfırla.js
├── _eval.js
├── _komut.js
├── _komutbilgi.js
├── _prefix.js
├── _yardım.js
├── _yaz.js
├── antiraid.js
└── otoisim.js
└── smart.js
/README.md:
--------------------------------------------------------------------------------
1 | Smartın Altyapısını Paylaşıyorum.
2 | Tarih **2020.12.25 23.06**
3 | Projeyi Yükleyip open.jsonu doldurunuz
4 |
5 | ### Beni Followlamayı ve Projeyi Starlamayı Unutmayın!
6 |
7 | ## Kurulum(Belirtilen Yerleri Doldurma)
8 | 1. Öncelikle [open.json](https://github.com/healthpackTR/SmartYeni/blob/main/open.json)'daki ayarlardan Bahsedeyim.
9 |
10 | Anahtar | Değer
11 | ------------ | -------------
12 | **token** | Botunuzun Tokeni (BOTUNUZUN PRİVİLEGED **İNTENTS**LERİNİ AÇINIZ)
13 | **sahip** | sahip ID Giriniz ```["1. id","2. id"]``` Gibi
14 | **prefix** | İstediğiniz Prefixi Giriniz
15 | **embedFalse** | Tüm Hata Embedlerinin Rengi Kırmızı Yapabilirsiniz ``#e02727`` Gibi
16 | **embedTrue** | Tüm Başarılı İşlem Embedlerinin Rengi Yeşil Yapabilirsiniz ``#33ac33`` Gibi
17 | **bot** | Botunuzun adınızı yazınız
18 | **destek** | destek sunucunuzun ID Giriniz
19 | **link** | Destek sunucunuzun Sınırsız Davet linki
20 | **mongo** | MongoDB Veritabanı URL niz almak için [Burayı](https://devnot.com/2019/mongodb-atlas-nedir-ve-nasil-olusturulur) Okuyunuz.
21 |
22 | ## Normal Ayarlar
23 | ```json
24 | {
25 | "token" : "BOTUN TOKENİ SİZİN OLMALI",
26 | "sahip" : ["667017730259419139","573054368568311808"],
27 | "prefix" : "s!",
28 | "embedFalse" : "#e02727",
29 | "embedTrue" : "#33ac33",
30 | "bot": "Smart ",
31 | "destek" : "769144446154571776",
32 | "link" : "https://discord.gg/bMC8tGr",
33 | "mongo" : "mongodb+srv://username:sifre@cluster0.q972g.mongodb.net/dbadi",
34 | }
35 | ```
36 |
37 | **buraları Yaptıktan Sonra [smart.js](https://github.com/healthpackTR/SmartYeni/blob/main/smart.js)'deki Belirtilen Bazı Yerleri Doldurunuz**
38 |
39 |
40 | ## Kurulum(Botu Aktif etme)
41 |
42 | Botu 7/24 Aktif Etmek İçin [Heroku](https://heroku.com) Kullanabilirsiniz
43 |
44 | Nasıl Aktif Edeceğiniz Size Kalmış
45 |
--------------------------------------------------------------------------------
/database/şema/Sunucu.js:
--------------------------------------------------------------------------------
1 | const mongoose = require("mongoose");
2 | const Schema = mongoose.Schema;
3 | let kullaniciSchema = new Schema({
4 | sunucu : String,
5 | prefix : {type : String, default : "s!"},
6 | Erol : {type : String, default : null},
7 | Krol : {type : String, default : null},
8 | mesaj : {
9 | gif : {type : String,default : null},
10 | renk : {type : String,default : "BLUE"},
11 | msj : {type : String,default : null},
12 | embed : {type : Boolean,default : false}
13 | },
14 | Karol : {type : String, default : null},
15 | Ekrol : {type : String, default : null},
16 | Yrol : {type : String, default : null},
17 | Kkanal : {type : String, default : null},
18 | Idüzen : {type : String, default :null},
19 | tag : {type : String, default : null},
20 | aktiflik : {type : Boolean, default : false},
21 | embed : {type : Boolean, default : false},
22 | Izorun : {type : Boolean, default : false},
23 | bansistem : {
24 | yetkili : {type : String,default : null},
25 | log : {type : String,default :null},
26 | limit : {type : Number,default :null}
27 | },
28 | sayac : {
29 | hg : {type : String,default : null},
30 | bb: {type : String,default : null},
31 | embed : {type : Boolean,default : false},
32 | kanal: {type : String,default : null},
33 | hedef : {type : Number,default : null},
34 | },
35 | otoroll : {
36 | bot : {type : String,default : null},
37 | user : {type : String,default :null}
38 | },
39 | otoisim : {type : String,default:null},
40 | resimli : {type : String,default:null},
41 | anti : {
42 | raid : {type:Boolean,default:false},
43 | white : {type:Array,default:[]},
44 | log : {type : String,default : null}
45 | }
46 | });
47 |
48 | let user = mongoose.model("dataforguild", kullaniciSchema, "SunucuDatas");
49 |
50 | module.exports = user;
51 |
--------------------------------------------------------------------------------
/database/şema/begendim.js:
--------------------------------------------------------------------------------
1 | const mongoose = require('mongoose')
2 | const Schema = mongoose.Schema;
3 | let sohbetLogSchema = new Schema({
4 | like : {type : Number , default : 0},
5 | findMe : {type : String, default : "yasin"},
6 | });
7 |
8 | let user = mongoose.model('bot-verisi', sohbetLogSchema, 'bot-datas')
9 |
10 | module.exports = user;
11 |
12 |
13 |
--------------------------------------------------------------------------------
/database/şema/kayıt.js:
--------------------------------------------------------------------------------
1 | const mongoose = require('mongoose')
2 | const Schema = mongoose.Schema;
3 | let sohbetLogSchema = new Schema({
4 | event : {type : String, default : "Kayıt"},
5 | Guild : String,
6 | MM : String,
7 | User : String,
8 | Owner : String,
9 | Gender : String,
10 | Name : String,
11 |
12 | });
13 |
14 | let user = mongoose.model('kayıt', sohbetLogSchema, 'Sunucu-Verileri')
15 |
16 | module.exports = user;
17 |
18 |
19 |
--------------------------------------------------------------------------------
/event/message.js:
--------------------------------------------------------------------------------
1 | const open = require('../open.json');
2 | const ş = require('../database/şema/Sunucu.js')
3 | const Discord = require('discord.js')
4 |
5 | module.exports = async message => {
6 | let client = message.client
7 | if(!message.guild) return;
8 | if (message.author.bot) return;
9 |
10 | let me = await ş.findOne({sunucu : message.guild.id})
11 | if(!me){
12 | const e = new ş({sunucu : message.guild.id})
13 | return await e.save()
14 | }
15 | let p = me.prefix || open.prefix
16 |
17 | if(message.content.includes(`<@${client.user.id}>`) || message.content.includes(`<@!${client.user.id}>`)) {
18 | const e1 = new Discord.MessageEmbed().setDescription(`***Sunucuda Prefixim \`${p}\` Değişmek için \`${p}prefix ayarla \`***`).setColor('BLUE')
19 | message.channel.send(e1).then(a => a.delete({timeout : "10000"}))
20 | }
21 |
22 | if(message.content.toLowerCase() == "tag") {
23 | ş.findOne({sunucu : message.guild.id},function(err,docs){
24 | let fetch = docs.tag
25 | if(docs.tag) message.channel.send(`\`${fetch}\``)
26 | })
27 | }
28 |
29 | if (!message.content.startsWith(p)) return;
30 | let command = message.content.split(" ")[0].slice(p.length).toLowerCase()
31 | let params = message.content.split(" ").slice(1);
32 | let cmd;
33 | if (client.commands.has(command)) {
34 | cmd = client.commands.get(command);
35 | } else if (client.aliases.has(command)) {
36 | cmd = client.commands.get(client.aliases.get(command));
37 | }
38 |
39 |
40 | if (cmd) {
41 | try {
42 | let liste = ['588414969364873236']
43 | if(liste.some(user => message.author.id == user)){
44 | const kara = new Discord.MessageEmbed()
45 | .setTitle('Kara Listedesin')
46 | .setDescription(`Kara Listedesin Hiç bir Komutu Kullanmana İzin vermem`)
47 | .setColor('BLUE')
48 | .addField(`Açtırmak İçin`,`Destek Sunucumuza gelip Dilenebilirsiniz XD [Tıkla](${open.link})`)
49 | .setFooter(message.author.username,message.author.avatarURL({dynamic : true}))
50 | return message.channel.send(kara)
51 | }
52 |
53 |
54 | if (cmd.help.open[0] == false) {
55 | if(!open.sahip.includes(message.author.id)) {
56 | const embed = new Discord.MessageEmbed()
57 | .setDescription(` | **${cmd.help.name}** isimli komut şuanda geçici olarak kullanıma kapalıdır!`).addField('``Sebep``','**'+cmd.help.open[1]+'**')
58 | .setColor("RED")
59 | message.channel.send(embed)
60 | return
61 | }
62 | }
63 |
64 | if(cmd.help.perm) {
65 | if(cmd.help.perm !== "no") {
66 |
67 | if(cmd.help.perm == "owner") {
68 | if(message.author.id !== message.guild.owner.id && !open.sahip.includes(message.author.id)) {
69 |
70 | const embed = new Discord.MessageEmbed()
71 | .setAuthor('Yetersiz Yetki','https://cdn.discordapp.com/emojis/781470058371219467.png?v=1')
72 | .setDescription(`Bu Komutu Sadece **<@${message.guild.owner.id}>** Kullanabilir.`)
73 | .setColor('#14d2e0')
74 | .setTimestamp()
75 | .setFooter(message.author.username,message.author.avatarURL({dynamic : true}))
76 | message.channel.send(embed)
77 | return
78 | }
79 | } else {
80 | if(!message.member.hasPermission(cmd.help.perm) && !open.sahip.includes(message.author.id) && cmd.help.perm !=="owner") {
81 | let pem = cmd.help.perm
82 | const replaced = pem.replace('MANAGE_MESSAGES','Mesajları yönet').replace('MANAGE_CHANNELS','Kanalları Yönet').replace('VIEW_AUDIT_LOG','Denetim Kaydını Görüntüle').replace('VIEW_GUILD_INSIGHTS','Sunucu Bilgilerini Görüntüle').replace('MANAGE_NICKNAMES','Kullanıcı Adlarını yönet').replace('MANAGE_ROLES','Emojileri Yönet').replace('MANAGE_WEBHOOKS','WebHookları Yönet',).replace('MANAGE_EMOJIS','Emojileri yönet').replace('MENTION_EVERYONE','@everyone pingle').replace('ADMINISTRATOR','Yönetici').replace('MANAGE_GUILD','Sunucuyu Yönet').replace('BAN_MEMBERS','Üyeleri Engelle').replace('KİCK_MEMBERS','Üyeleri at')
83 | const embed = new Discord.MessageEmbed()
84 | .setAuthor('Yetersiz Yetki','https://cdn.discordapp.com/emojis/781470058371219467.png?v=1')
85 | .setDescription(`Bu Komutu Kullanabilmek İçin **\`${replaced}\`** Yetkisine İhtiyacın var.`)
86 | .setColor('#14d2e0')
87 | .setTimestamp()
88 | .setFooter(message.author.username,message.author.avatarURL({dynamic : true}))
89 | message.channel.send(embed)
90 | return
91 | }
92 | }
93 | }
94 | }
95 |
96 | cmd.run(client, message, params, p,ş)
97 |
98 | } catch(e) {
99 | const hata = new Discord.MessageEmbed().setColor(open.embedFalse)
100 | .setDescription(`\`${e}\` \n\n Hata için Destek sunucumuza gelebilirsin. [Link](${open.link})`)
101 | .setFooter(open.bot,client.user.avatarURL({dynamic : true, format :"png"}))
102 | message.channel.send(hata)
103 | return
104 | }
105 | }
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 | }//HEALHTPACK/HEALHTPACK/HEALHTPACK/HEALHTPACK/HEALHTPACK/HEALHTPACK/HEALHTPACK/HEALHTPACK/HEALHTPACK/HEALHTPACK/HEALHTPACK/HEALHTPACK/HEALHTPACK/HEALHTPACK/HEALHTPACK/HEALHTPACK/HEALHTPACK/HEALHTPACK/HEALHTPACK/HEALHTPACK/HEALHTPACK/HEALHTPACK
114 |
115 |
116 |
117 |
118 |
--------------------------------------------------------------------------------
/event/ready.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 |
3 | const moment = require('moment')
4 | const open = require('../open.json')
5 | let zaman = moment().format("HH:mm:ss")
6 | var prefix = open.prefix
7 | const log = message => {
8 | console.log(`${zaman} | ${message}`);
9 | };
10 | module.exports = async client => {
11 | let size = client.guilds.cache.reduce((a,b) => a + b.memberCount, 0).toLocaleString()
12 | log(`${client.user.username} | ${client.guilds.cache.size} Sunucu ve ${size} Kullanıcı`)
13 |
14 | client.user.setStatus("online");
15 | var oyun = [
16 | `💣| s!yardım | ${client.guilds.cache.size} Sunucu ${size} Kullanıcı!`,
17 | `💣| s!kontrol kayıt | Kayıt Sistemi çalışmıyorsa Eksiklerinizi Görün!`,
18 | `💣| s!prefix ayarla | Prefixi Değişebilirsiniz!`
19 | ];
20 | setInterval(function() {
21 | var random = Math.floor(Math.random() * (oyun.length - 0 + 1) + 0);
22 |
23 | client.user.setActivity(oyun[random],"",{type: 'WATCHİNG'});
24 | }, 2 * 2500);
25 | }
26 |
--------------------------------------------------------------------------------
/helpers/clientMethods.js:
--------------------------------------------------------------------------------
1 | const open = require('../open.json')
2 | module.exports.start = (client,Discord) => {
3 | client.sendTrue = (message,channel) => {
4 | if(!channel || !message) throw new TypeError('Please Write message and Channel.')
5 | if(typeof message !== "string") throw new Error('Embed Message Type is Must of Type String Your Type: ' + typeof message)
6 | const embed = new Discord.MessageEmbed().setColor(open.embedTrue)
7 | .setDescription(` | ${message}`)
8 | channel.send(embed)
9 | }
10 | client.sendFalse = (message,channel) => {
11 | if(!channel || !message) throw new Error('Please Write message and Channel.')
12 | if(typeof message !== "string") throw new TypeError('Embed Message Type is Must of Type String Your Type: ' + typeof message)
13 | const embed = new Discord.MessageEmbed().setColor(open.embedFalse)
14 | .setDescription(` | ${message}`)
15 | channel.send(embed)
16 | }
17 | }
--------------------------------------------------------------------------------
/helpers/guildAdd.js:
--------------------------------------------------------------------------------
1 |
2 | const Discord = require('discord.js')
3 | async function otoisim(veri,member) {
4 | if(!veri.otoisim)return;
5 | let nick = veri.otoisim.replace("{username}",member.user.username)
6 | await member.setNickname(nick)
7 | }
8 | module.exports.otoisim = otoisim;
9 |
10 | async function antiraid(veri,member,guild){
11 |
12 | if(!veri.anti.raid) return;
13 | let raid = veri.anti
14 | var embed = new Discord.MessageEmbed()
15 | let somed = raid.white.some(id => id == member.id)
16 | var guildA = guild.fetchAuditLogs({type:"BOT_ADD"}).then(x => x.entries.first())
17 | var user = (await guildA).executor
18 | if(user.id == guild.owner.id||user.id == client.user.id) return;
19 |
20 | if(!somed) {
21 | member.kick('Anti Raid Sistemi.')
22 |
23 |
24 | if(raid.log) {
25 |
26 | let channel = guild.channels.cache.get(raid.log)
27 | if(channel){
28 |
29 | channel.send(
30 | embed.setTitle('İzin Verilmedi ❌')
31 | .setDescription(`\`${user.tag}\` Sunucuya \`${member.user.tag}\` Adlı Botu Ekledi.\n\nAntiraid Açık ve bu Botun İzni Olmadığı İçin Botu Kickledim.`)
32 | .setFooter('Anti Raid Sistemi').setThumbnail(member.user.avatarURL({format : "png"})))
33 | .setColor('RED')
34 | }}
35 | } else {
36 |
37 |
38 |
39 | if(raid.log) {
40 | var guildA = guild.fetchAuditLogs({type:"BOT_ADD"}).then(x => x.entries.first())
41 | var user = (await guildA).executor
42 | if(user.id == guild.owner.id||user.id == client.user.id) return;
43 | let channel = guild.channels.cache.get(raid.log)
44 | if(channel){
45 |
46 | channel.send(
47 | embed.setTitle('İzin Verildi ✅')
48 | .setDescription(`\`${user.tag}\` Sunucuya \`${member.user.tag}\` Adlı Botu Ekledi.\n\nAntiraid Açık Fakat bu Botun İzni **Olduğu** İçin Botu İçeri Aldım.`)
49 | .setFooter('Anti Raid Sistemi').setThumbnail(member.user.avatarURL({format : "png"}))
50 | .setColor('GREEEN'))
51 | }}
52 | }
53 |
54 | }
55 | module.exports.antiraid = antiraid;
56 |
--------------------------------------------------------------------------------
/loader/commandloader.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const fs = require('fs')
3 |
4 | const moment = require('moment')
5 | const open = require('../open.json')
6 | module.exports.run = (client) => {
7 | let zaman = moment().format("HH:mm:ss")
8 | const log = message => {
9 | console.log(`${zaman} | ${message}`);
10 | };
11 | client.commands = new Discord.Collection();
12 | client.aliases = new Discord.Collection();
13 | fs.readdir('./server/', (err, files) => {
14 | if (err) console.error(err);
15 | files.forEach(f => {
16 | if(!f.endsWith('.js'))return console.error(`${f}, Komutunun Sonu .js Olmadığı için Es Geçtim`)
17 | let yasin = require(`../server/${f}`);
18 | if(!yasin.help) return console.error(`${f}, Komutun => exports.help = {} <= Kısmı yok.`)
19 | client.commands.set(yasin.help.name, yasin);
20 | yasin.help.aliases.forEach(alias => {
21 | client.aliases.set(alias, yasin.help.name);
22 | });
23 | });
24 | console.log(`${client.commands.size} Komut ve ${client.aliases.size} Alternatif Komut yüklendi.`)//help
25 | });
26 |
27 |
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/loader/dataLoader.js:
--------------------------------------------------------------------------------
1 | const mongoose = require('mongoose')
2 | const open = require('../open.json')
3 |
4 | module.exports.run = client => {
5 |
6 |
7 | mongoose.connect(open.mongo, {
8 | useNewUrlParser: true,
9 | useUnifiedTopology: true,
10 | useFindAndModify : false,
11 | useCreateIndex : true
12 | }).then(() => {
13 | //If it connects log the following
14 | console.log("MongoDB: Başarıyla Bağlanıldı");
15 | }).catch((err) => {
16 | //If it doesn't connect log the following
17 | console.error(err);
18 | });
19 | }
20 |
--------------------------------------------------------------------------------
/loader/eventloader.js:
--------------------------------------------------------------------------------
1 | const reqEvent = (event) => require(`../event/${event}`);
2 | module.exports = client => {
3 | client.on('ready', () => reqEvent('ready')(client));
4 | client.on('message', reqEvent('message'));
5 | };
--------------------------------------------------------------------------------
/open.json:
--------------------------------------------------------------------------------
1 |
2 | {
3 | "token" : "README.MD Bakınız",
4 | "sahip" : "README.MD Bakınız",
5 | "prefix" : "README.MD Bakınız",
6 | "embedFalse" : "README.MD Bakınız",
7 | "embedTrue" : "README.MD Bakınız",
8 | "bot": "README.MD Bakınız",
9 | "destek" : "README.MD Bakınız",
10 | "link" : "README.MD Bakınız",
11 | "mongo" : "README.MD Bakınız",
12 | "dbl" : "README.MD Bakınız"
13 | }
14 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "smart",
3 | "version": "1.6.9",
4 | "description": "Smart Bot",
5 | "main": "smart.js",
6 | "scripts": {
7 | "start": "node smart.js"
8 | },
9 | "repository": {
10 | "url": "https://glitch.com/edit/#!/hello-express"
11 | },
12 | "keywords": [
13 | "node",
14 | "glitch",
15 | "express"
16 | ],
17 | "author": "bos",
18 | "license": "MIT",
19 | "dependencies": {
20 | "discord.js": "^12.5.0",
21 | "express": "^4.17.1",
22 | "fs": "^0.0.2",
23 | "moment": "^2.29.1",
24 | "os": "^0.1.1",
25 | "moment-duration-format": "^2.3.2",
26 | "mongoose": "^5.10.15",
27 | "parse-ms": "^2.1.0",
28 | "ms" : "^2.1.2",
29 | "hex-color-regex": "^1.1.0",
30 | "quickmongo": "^2.0.5",
31 | "discord-canvas": "^1.3.2"
32 | },
33 | "engines": {
34 | "node": "12.x"
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/server/BAN_ban.js:
--------------------------------------------------------------------------------
1 | const Discord = require("discord.js")
2 | const ms = require("parse-ms");
3 | const { Database } = require("quickmongo");
4 | var open = require('../open.json')
5 | const db2 = new Database(open.mongo);
6 | exports.run = async function(client,message,args,p,db){
7 | const timeout = 86400000
8 | const lm = await db.findOne({sunucu : message.guild.id})
9 |
10 | var limit = lm.bansistem.limit
11 | if(!lm.bansistem.yetkili) return client.sendFalse('Ban yetkili Rolü Ayarlanmamış.',message.channel)
12 | if(!message.member.roles.cache.has(lm.bansistem.yetkili)) return client.sendFalse('Komutu Kullanabilmek için Ayarlanan Role Sahip Olmalısın',message.channel)
13 | if(limit) {
14 | if(message.author.id != message.guild.owner.id && !message.member.hasPermission('ADMINISTRATOR')) {
15 | const daily = await db2.get(`${message.guild.id}.${message.author.id}_date`)
16 | if ( daily !== null && timeout - (Date.now() - daily) > 0) {
17 |
18 | message.member.roles.remove(lm.bansistem.yetkili)
19 | await db2.delete(`${message.guild.id}.${message.author.id}_date`)
20 | await db2.delete(`${message.guild.id}.${message.author.id}_bans`)
21 | return client.sendFalse(`**Bugünkü Ban Limitini aştın! \`Ban\` Rolünü Alıyorum Kurucuya Bildirmelisin.** - `,message.channel)
22 | }
23 | } else {
24 | await db2.delete(`${message.guild.id}.${message.author.id}_date`)
25 |
26 | }
27 | }
28 | let sebep = args.slice(1).join(" ")
29 | let member = message.mentions.members.first()||message.guild.members.cache.get(args[0])
30 | if(!member)return client.sendFalse(`Banlamak İçin Bir Kullanıcı Etiketlemelisin`,message.channel)
31 |
32 | if(member.id == message.author.id) return message.reply('kendinden Ne istiyorsun :(')
33 | if(member.id == client.user.id) return message.reply(`O işler öyle Olmuyor Kardeş...`)
34 | if(member.banable) return client.sendFalse(`Bu Kullanıcıyı Banlayamıyorum`,message.channel)
35 | if(!sebep) return client.sendFalse(`Banlamak için Bir \`Sebep\` Yazmalısın`,message.channel)
36 |
37 | if(message.member.roles && member.roles && message.member.roles.highest.position <= member.roles.highest.position) return client.sendFalse(`Bu kullanıcı Aynı Pozisyona veya Senden Daha Üstte bir Role sahip`,message.channel)
38 | if(lm.bansistem.log) {
39 | const embed = new Discord.MessageEmbed()
40 | .setTitle('Banlama').setURL('https://discord.com/api/oauth2/authorize?client_id=769110620359622676&permissions=8&scope=bot')
41 | .setColor('#ff0000')
42 | .addField(`__Banlayan:__`,`${message.author}(\`${message.author.id}\`)`)
43 | .addField('__Banlanan__',`**${member.user.tag}**(\`${member.user.id}\`)`).setTimestamp()
44 | .addField('__Sebep__',`**${sebep}**`).setFooter(`${message.author.tag}, ${member.user.tag} - Kişini Banladı`)
45 | .setThumbnail(message.author.avatarURL({dynamic : true}))
46 | message.guild.channels.cache.get(lm.bansistem.log).send(embed)
47 | }
48 | member.send(`**${message.guild.name}** Sunucusundan Banlandınız.`).catch(a => {
49 |
50 | })
51 | member.ban({reason: sebep}).then(a => {
52 | return message.channel.send(new Discord.MessageEmbed().setAuthor(`${message.author.tag} - ${member.user.tag}`,message.author.avatarURL({format : "png",dynamic : true})).setDescription(` **|** ${message.author} - **${member.user.tag}**\n\n**${sebep}**`).setColor('#ff0000').setThumbnail(member.user.avatarURL({dynamic : true})))
53 | }).catch(a => {
54 | return message.channel.send(`Bir hata Oluştu...`)
55 | })
56 |
57 |
58 | if(limit) {
59 | let uyarıs = await db2.get(`${message.guild.id}.${message.author.id}_bans`) || 0;
60 |
61 | await db2.add(`${message.guild.id}.${message.author.id}_bans`,1)
62 | if(uyarıs >= limit) {
63 | await db2.set(`${message.guild.id}.${message.author.id}_date`, Date.now())
64 | await db2.delete(`${message.guild.id}.${message.author.id}_bans`)
65 | }
66 | }
67 | }
68 | exports.help = {
69 | name : "ban",
70 | aliases : ['ban'],
71 | open : [true],
72 | perm : "no"
73 |
74 | }
75 | exports.play = {
76 | usage : "ban ",
77 | description : "Ban Atabilirsiniz"
78 | }
79 |
--------------------------------------------------------------------------------
/server/BAN_banSistem.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args, p,db) => {
5 | let ne = args[0]
6 |
7 | if(ne == "yetkili"||ne == "rol") {
8 | let role = message.mentions.roles.first()||message.guild.roles.cache.get(args[1])||message.guild.roles.cache.find(a => a.name = args[1])
9 | if(!role) return client.sendFalse(`Ban yetkili Rolünü Ayarlamak için bir \`@Rol\` etiketlemelisin.`,message.channel)
10 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {"bansistem.yetkili":role.id}})
11 | client.sendTrue(`Ban Yetkili Rolü ${role} Olarak Ayarlandı.\n\n **NOT**: Bu Rolü Rolleri Yönet Yetkisi Olan Rollerden Üste Taşımak Daha **Güvenlidir**`,message.channel)
12 |
13 | } else if(ne == "log"||ne == "kanal") {
14 | let channel = message.mentions.channels.first()||message.guild.channels.cache.get(args[1])||message.guild.channels.cache.find(a => a.name = args[1] && a.type == "text")
15 | if(!channel||channel.type !== "text"){
16 | return client.sendFalse(`Ban Log Kanalını Ayarlamak için istediğin Kanalı Etiketlemelisin.`,message.channel)
17 | }
18 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {"bansistem.log":channel.id}})
19 | client.sendTrue(`Ban Atılınca Logların Atılacağı kanal ${channel} Olarak ayarlandı.\n\n**NOT**: Belirlediğiniz Kanalda Ban yetkililerinizin Görmemesini veya Mesajları Silmesini Engellemek Daha **Güvenlidir**`,message.channel)
20 | } else if(ne == "limit") {
21 | if(!args[1]) {
22 | return client.sendFalse('Ban Atma Limitini Ayarlamak için Limiti Girmelisin',message.channel)
23 | }
24 | if(isNaN(args[1])) {
25 | return client.sendFalse('Ban Atma Limitini Sadece Sayı Olarak Girmelisin',message.channel)
26 | }
27 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {"bansistem.limit":args[1]}})
28 | client.sendTrue(`Ban Atma Limiti Başarıyla **${args[1]}** Olarak Ayarlandı. Ban Yetkilisinin Günde **${new Number(args[1])+1}**. Banını Atması Engellenecek $.\n\n**NOT:** Bu limiti Ban Yetkililerinizle Paylaşmamak Daha **Güvenilidir**`,message.channel)
29 | } else if(ne == "kapat") {
30 |
31 | let f = await db.findOne({sunucu : message.guild.id})
32 | if(!f.bansistem.yetkili && !f.bansistem.log && !f.bansistem.limit) {
33 | return client.sendFalse('Ban Sisteminde Herhangi bir Ayar yapılmamış.',message.channel)
34 | }
35 |
36 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {"bansistem.log" : null, "bansistem.yetkili" : null, "bansistem.limit" : null}})
37 | return client.sendTrue(`Ban Sistemi Ayarları Başarıyla Sıfırlandı.`,message.channel)
38 | } else {
39 | const bansiste = new Discord.MessageEmbed().setTitle('Smart Ban Sistemi').setURL('https://discord.com/api/oauth2/authorize?client_id=769110620359622676&permissions=8&scope=bot').setFooter('Ban Sistemi')
40 | .addField(`__${p}ban-sistem yetkili @rol__》`,`Ban yetkili Rolünü Ayarlamalısınız İstemediğiniz Kişiler Ban atamaz`)
41 | .addField(`__${p}ban-sistem log #kanal__》`,`Ban Atan Kişileri Neden Atmış Ne zaman Atmış Görebilirsiniz`)
42 | .addField(`__${p}ban-sistem limit __》`,`Ban Yetkilileri Günde belirlediğiniz Sayı Dışında Atmaya Çalışırsa Rolünü Alır `)
43 | .addField(`__${p}ban-sistem kapat__》`,`Sistemi Kapatabilirsiniz`)
44 | .addField(`__Kullanımlar__》`,`
45 | <:trash:776811458977464340>\`${p}ban @kullanıcı \`: Yetkilileriniz Bu Şekilde **Ban** Atabilir
46 | <:trash:776811458977464340>\`${p}unban \`: Yetkilileriniz Bu Şekilde Ban Açabilir
47 | <:trash:776811458977464340>\`${p}bansorgu \`: Yetkilileriniz Birilerinin neden Ban yediğine bakabilir
48 | `).setColor('#ff0000')
49 | return message.channel.send(bansiste)
50 | }
51 |
52 |
53 | }
54 | exports.help = {
55 | name : "ban-sistem",
56 | aliases : ['bansistemi','ban-sistemi','bansistem'],
57 | open : [true],
58 | perm : "ADMINISTRATOR",
59 | vote : true
60 |
61 | }
62 | exports.play = {
63 | usage : "ban-sistem ",
64 | description : "Ban Sistemi yardım"
65 | }
66 |
--------------------------------------------------------------------------------
/server/BAN_bansorgu.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args, p,db) => {
5 | let lorg = await db.findOne({sunucu : message.guild.id})
6 | if(!lorg.bansistem.yetkili) return client.sendFalse('Ban yetkili Rolü Ayarlanmamış.',message.channel)
7 | if(!message.member.roles.cache.has(lorg.bansistem.yetkili)) return client.sendFalse('Komutu Kullanabilmek için Ayarlanan Role Sahip Olmalısın',message.channel)
8 | let id = args[0]
9 | if(!id) return client.sendFalse('Sorgulamak İstediğin Kişinin ID Girmelisin',message.channel)
10 | if(isNaN(id)) return client.sendFalse('Sorgulamak İstediğin Kişinin ID Sadece Sayılardan oluşur',message.channel)
11 |
12 | message.guild.fetchBans().then(users=>{
13 | let user = users.find(member => member.user.id == id)
14 | if(!user) return client.sendFalse(`Banlanan Böyle Bir Kullanıcı Bulunamadı.`,message.channel)
15 |
16 | client.sendTrue(`Kullanıcının Banlanma Bilgisi Bulundu!\n\n **${user.user.tag}**:\`${user.reason}\``,message.channel)
17 |
18 | }).catch(e => {
19 | return client.sendFalse(`Bir Hata Oluştu:\n\n\`${e}\``,message.channel)
20 | })
21 | }
22 | exports.help = {
23 | name : "bansorgu",
24 | aliases : ['ban-sorgu'],
25 | open : [true],
26 | perm : "no"
27 |
28 | }
29 | exports.play = {
30 | usage : "bansorgu ",
31 | description : "Bir Kişinin Neden Ban yediğini Görebilirsiniz."
32 | }
--------------------------------------------------------------------------------
/server/BAN_unban.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args, p,db) => {
5 | let lorg = await db.findOne({sunucu : message.guild.id})
6 | if(!lorg.bansistem.yetkili) return client.sendFalse('Ban yetkili Rolü Ayarlanmamış.',message.channel)
7 | if(!message.member.roles.cache.has(lorg.bansistem.yetkili)) return client.sendFalse('Komutu Kullanabilmek için Ayarlanan Role Sahip Olmalısın',message.channel)
8 | let id = args[0]
9 | let sebep = args.slice(1).join(" ")
10 | if(!id) return client.sendFalse('Banı Açmak istediğin Kişinin **ID** Girmelisin',message.channel)
11 | if(isNaN(id)) return client.sendFalse('**Banını Açmak istediğin Kişinin ID Sadece Sayılardan Oluşur**',message.channel)
12 | if(!sebep) return client.sendFalse('**Kullanıcının Banını Açma Sebebini Girmelisin**',message.channel)
13 | message.guild.members.unban(id).then(a => {
14 | message.channel.send(` - **${a.tag}**, Banı **${sebep}** Sebebiyle Açıldı.`)
15 | if(lorg.bansistem.log) {
16 | message.guild.channels.cache.get(lorg.bansistem.log).send(
17 | new Discord.MessageEmbed()
18 | .setTitle('Ban Açılma').setURL('https://discord.com/api/oauth2/authorize?client_id=769110620359622676&permissions=8&scope=bot')
19 | .setColor('#00ff19')
20 | .addField(`<:trash:776811458977464340>__Ban Açan:__`,`${message.author}(\`${message.author.id}\`)`)
21 | .addField('<:trash:776811458977464340>__Banı Açılan__',`**${a.tag}**(\`${a.id}\`)`).setTimestamp()
22 | .addField('<:trash:776811458977464340>__Sebep__',`**${sebep}**`).setFooter(`${message.author.tag}, ${a.tag} - Kişinin banını açtı`)
23 | .setThumbnail(message.author.avatarURL({dynamic : true}))
24 | )
25 | }
26 | }).catch(a => {
27 | return client.sendFalse(`Böyle Bir Kullanıcı Bulunamadı **Veya** Yetkim Yetersiz`,message.channel)
28 | })
29 | }
30 | exports.help = {
31 | name : "unban",
32 | aliases : ['un-ban'],
33 | open : [true],
34 | perm : "no"
35 |
36 | }
37 | exports.play = {
38 | usage : "unban ",
39 | description : "Bir Kişinin Banını Açabilirsiniz"
40 | }
--------------------------------------------------------------------------------
/server/BOT_Davet.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 | exports.run = async(client, message, args) => {
4 |
5 |
6 |
7 | const emb = new Discord.MessageEmbed().setAuthor(client.user.username,client.user.avatarURL({dynamic : true, format : "png"}))
8 | .setDescription(`
9 | - [[**Botu Davet Edin!**](https://discord.com/api/oauth2/authorize?client_id=769110620359622676&permissions=8&scope=bot)] -
10 |
11 | - [[**Destek Sunucusu**](${open.link})] -
12 |
13 | - [[**Bota Oyverin!**](https://top.gg/bot/769110620359622676/vote)] -
14 | `)
15 | .setColor(open.embedTrue).setFooter('Smart Linkler',client.user.avatarURL({format : "png"}))
16 | message.channel.send(emb)
17 |
18 |
19 | }
20 | exports.help = {
21 | name : "davet",
22 | aliases : ['bot-link','bot-gel'],
23 | open : true,
24 | perm : "no",
25 | limit : "0"
26 |
27 | }
28 | exports.play = {
29 | usage : "davet",
30 | description : "Botun Linklerini gösterir"
31 | }
--------------------------------------------------------------------------------
/server/BOT_istatistik.js:
--------------------------------------------------------------------------------
1 |
2 | const Discord = require('discord.js');
3 | const moment = require("moment");
4 | const open = require('../open.json');
5 | const os = require("os");
6 | const m = require('mongoose')
7 | const likes = require('../database/şema/begendim.js');
8 | const d = require('../database/şema/kayıt.js')
9 | require("moment-duration-format");
10 | exports.run = async (client, message, args,p,data) => {
11 | const reducer = (accumulator, currentValue) => accumulator + currentValue.memberCount;
12 | const reducer2 = (a,b)=> a + b.channels.cache.size;
13 | const reducer3 = (a,b)=> a + b.roles.cache.size;
14 | const reducer4 = (a,b)=> a + b.channels.cache.size;
15 |
16 | const vr = await data.find()
17 | const vr2 = await d.find()
18 | const vrs = vr2.length + vr.length
19 |
20 | let aylartoplam = {
21 | "01": "Ocak",
22 | "02": "Şubat",
23 | "03": "Mart",
24 | "04": "Nisan",
25 | "05": "Mayıs",
26 | "06": "Haziran",
27 | "07": "Temmuz",
28 | "08": "Ağustos",
29 | "09": "Eylül",
30 | "10": "Ekim",
31 | "11": "Kasım",
32 | "12": "Aralık"
33 | }
34 | let günler = {
35 | "01" : "1",
36 | "02" : "2",
37 | "03" : "3",
38 | "04" : "4",
39 | "05" : "5",
40 | "06" : "6",
41 | "07" : "7",
42 | "08" : "8",
43 | "09" : "9",
44 | "00" : "0",
45 |
46 | }
47 | let aylar = aylartoplam;
48 | let s = (`${moment(client.user.createdAt).format('DD')} ${aylar[moment(client.user.createdAt).format('MM')]} ${moment(client.user.createdAt).format('YYYY HH:mm:ss')}`)
49 |
50 | const Embed = new Discord.MessageEmbed().setTitle('Smart').setDescription(`\`Developer\`: **healthpackTR#9999 ve Doruk330#0001**`)
51 | .addField('``Bot Bilgileri``',`
52 | __**Sunucu Sayısı**__: \`${client.guilds.cache.size}\`
53 | __**Kullanıcı Sayısı**__ : \`${client.guilds.cache.reduce(reducer,0)}\`
54 | __**Kanal Sayısı**__ : \`${client.guilds.cache.reduce(reducer2,0)}\`
55 | __**Rol Sayısı**__ : \`${client.guilds.cache.reduce(reducer3,0)}\`
56 |
57 | `,true).addField('``Versiyon Bilgileri``',`
58 | __**Discord.js**__ : \`${Discord.version}\`
59 | __**Node.js**__ : \`${process.version}\`
60 | __**Moment**__ : \`${moment.version}\`
61 | __**Mongoose**__ : \`${m.version}\`
62 |
63 | `,true).addField('``Donanım ve Kullanım Bilgileri``',`
64 | __**CPU**__\`\`\`diff
65 | - ${os.cpus().map(a => `${a.model}`)[0]}\`\`\`
66 | __**İşletim Sistemi**__ : \`${os.platform()}\`
67 | __**Ram Kullanımı**__ : \`${(process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2)}mb\`
68 | __**Toplam Ram**__ : \`${(process.memoryUsage().heapTotal / 1024 / 1024).toFixed(2)}mb\`
69 | __**Ping**__ : \`${client.ws.ping}\`
70 | __**Bit**__ : \`${os.arch()}\`
71 | __**Veri Sayısı**__ : \`${vrs}\`
72 | `).addField('``Ekstra Bilgiler``',`
73 | __**Komut Sayısı**__ : \`${client.commands.size}\`
74 | __**Veri tabanı**__ : [MongoDB](https://www.mongodb.com)
75 | __**Kuruluş**__ : \`${s}\`
76 |
77 | `).setColor('#cbf107')
78 | message.channel.send(Embed)
79 | }
80 | exports.help = {
81 | name : "istatistik",
82 | aliases : ['i'],
83 | open : true,
84 | perm : "no",
85 | limit : "0"
86 |
87 | }
88 | exports.play = {
89 | usage : "istatistik",
90 | description : "Botun İstatistiktiklerini gösterir"
91 | }
92 |
--------------------------------------------------------------------------------
/server/KAY_E-kayıt.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 | const KayıtŞema = require('../database/şema/kayıt.js')
4 | exports.run = async(client, message, args,p,data) => {
5 |
6 | let docs = await data.findOne({sunucu : message.guild.id})
7 | let erkek = docs.Erol
8 | let yetkili = docs.Yrol
9 | let kayıtsız = docs.Karol
10 | let kayıtkanal = docs.Kkanal
11 | let ekstra = docs.Ekrol
12 | let aktiflik = docs.aktiflik
13 | let düzen = docs.Idüzen
14 | let zorunlu = docs.Izorun
15 |
16 | const embed1 = new Discord.MessageEmbed().setDescription(' | Kayıt Sistemi tamamen ayarlanmamış! nelerin ayarlanmadığına bakmak için:\n ``'+p+'kontrol kayıt``').setColor(open.embedFalse)
17 | if(!erkek || !yetkili || !kayıtsız || !kayıtkanal) return message.channel.send(embed1)
18 | let teyit1 = message.guild.roles.cache.get(erkek)
19 | let teyit2 = message.guild.roles.cache.get(yetkili)
20 | let teyit3 = message.guild.channels.cache.get(kayıtkanal)
21 | let teyit4 = message.guild.roles.cache.get(kayıtsız)
22 | let teyit5 = message.guild.roles.cache.get(ekstra)
23 | let resim = "https://cdn.discordapp.com/emojis/769202829817937970.gif?v=1"
24 | if(!teyit1) return message.channel.send('Ayarlanan Erkek rolü Sunucuda yok').then(a => a.delete({timeout : "5000"}))
25 | if(!teyit2) return message.channel.send('Ayarlanan Yetkili rolü Sunucuda yok').then(a => a.delete({timeout : "5000"}))
26 | if(!teyit3) return message.channel.send('Ayarlanan Kayıt kanalı Sunucuda yok').then(a => a.delete({timeout : "5000"}))
27 | if(!teyit4) return message.channel.send('Ayarlanan kayıtsız rolü Sunucuda yok').then(a => a.delete({timeout : "5000"}))
28 | if(!teyit5 && ekstra) return message.channel.send('Ayarlanan Esktra rol Sunucuda yok').then(a => a.delete({timeout : "5000"}))
29 |
30 | if(teyit1 && teyit1.position >= message.guild.member(client.user).roles.highest.position) return client.sendFalse(`**${teyit1} Rolü Benim En Üst Rolümden Üstte Lütfen Rolümü Bu Rolün Üstüne Çekiniz**`,message.channel)
31 | if(teyit4 && teyit4.position >= message.guild.member(client.user).roles.highest.position) return client.sendFalse(`**${teyit4} Rolü Benim En Üst Rolümden Üstte Lütfen Rolümü Bu Rolün Üstüne Çekiniz**`,message.channel)
32 | if(teyit5 && teyit5.position >= message.guild.member(client.user).roles.highest.position) return client.sendFalse(`**${teyit5} Rolü Benim En Üst Rolümden Üstte Lütfen Rolümü Bu Rolün Üstüne Çekiniz**`,message.channel)
33 |
34 | const embed2 = new Discord.MessageEmbed().setDescription(` | Yanlış Kanaldasın burası Kayıt kanalı değil <#${kayıtkanal}> İşte Burası Kayıt kanalı`).setColor(open.embedFalse)
35 | const embed3 = new Discord.MessageEmbed().setDescription(` | Birini Kayıt edebilmek için bu sunucudaki <@&${yetkili}> Rolüne Sahip Olmalısın`).setColor(open.embedFalse)
36 | const embed4 = new Discord.MessageEmbed().setAuthor('Hata...','https://cdn.discordapp.com/emojis/769202870612131840.gif?v=1').setDescription(`Bir Kullanıcı **Etiketlemelisin** veya **ID** Girmelisin.`).addField('Örnek:',`\`\`\`
37 | ${p}e <@etiket/ID>
38 | ${p}e <@etiket/ID>
39 | \`\`\``).setColor('BLUE')
40 | const embed6 = new Discord.MessageEmbed().setDescription(` | kayıt edilcek kişi <@&${kayıtsız}> Rolüne sahip olmalı`).setColor(open.embedFalse)
41 |
42 |
43 | if(!message.member.roles.cache.has(yetkili)) return message.channel.send(embed3)
44 | if(message.channel.id !== kayıtkanal) return message.channel.send(embed2)
45 |
46 |
47 | let member = message.mentions.members.first() || message.guild.members.cache.get(args[0])
48 | if(!member)return message.channel.send(embed4)
49 | if(member.id == message.guild.owner.id||member.id == client.user.id) return message.reply('Doğru Düzgün Birini Etiketle. beni Veya Sunucu Sahibini Etiketleme')
50 | if(!member.roles.cache.has(kayıtsız)) return message.channel.send(embed6)
51 | let isim = args[1]
52 | let yaş = args[2]
53 |
54 | const embed5 = new Discord.MessageEmbed().setAuthor('[ Kayıt Başarılı ]',resim).setDescription(`
55 | **<:erkek:769607582238900254> - <@${member.id}> Kaydı ${message.author.toString()} Tarafından Yapıldı!**
56 | \`\`\`diff
57 | + ${isim ? isim : member.user.username} - Sunucuya Hoşgeldin 🤗
58 | \`\`\`
59 | **${member}, Kullanıcıya <@&${erkek}> Rolü Verildi.**
60 | `).setThumbnail(member.user.avatarURL({format : "png", dynamic : true})).setColor('#006aff')
61 | const embed7 = new Discord.MessageEmbed().setDescription(` | **İsim Zorunluluğu Ayarlanmış İsim Yaş girmelisin**.\n\n \`!e @etiket İsim Yaş\` `).setColor(open.embedFalse)
62 | if(!isim && !yaş && zorunlu) return message.channel.send(embed7)
63 | if(isim && isim.length > 20) return client.sendFalse(`Çok Büyük İsim Giriyorsun Kısaltmayı Dene.`,message.channel)
64 | if(yaş && yaş.length > 4)return client.sendFalse(`Çok Büyük Yaş Giriyorsun Kısaltmayı Dene.`,message.channel)
65 |
66 | if(member) {
67 | if(isim) {
68 |
69 | if(düzen){
70 | if(düzen.includes('{yas}') && !yaş) yaş = "0"
71 |
72 | const replce = düzen.replace(`{isim}`,`${isim.charAt(0).toUpperCase() + isim.slice(1).toLowerCase()}`).replace(`{yas}`,`${yaş}`)
73 | member.setNickname(replce)
74 | } else {
75 | if(!yaş) yaş = ""
76 | member.setNickname(`${isim.charAt(0).toUpperCase() + isim.slice(1).toLowerCase()} ${yaş}`)
77 | }
78 | }
79 |
80 | if(aktiflik) {
81 | let kayıtSchema = new KayıtŞema({
82 | Guild : message.guild.id,
83 | MM : member.id,
84 | User : `**${member.user.tag}**(\`${member.id}\`)`,
85 | Owner : message.author.id,
86 | Gender : "<:erkek:769607582238900254>",
87 | Name : `${isim} | ${yaş}`
88 | })
89 | await kayıtSchema.save()
90 | }
91 |
92 | var roles = []
93 | if(teyit1) roles.push(teyit1.id)
94 | if(teyit5) roles.push(teyit5.id)
95 |
96 | member.roles.set(roles)
97 | message.channel.send(embed5)
98 | }
99 |
100 | }
101 |
102 | exports.help = {
103 | name : "e-kayıt",
104 | aliases : ['e','erkek'],
105 | open : true,
106 | perm : "no",
107 | limit : "0"
108 |
109 | }
110 | exports.play = {
111 | usage : "e @etiket / s!e @etiket İsim Yaş",
112 | description : "Kayıt Sİstemi Erkek Kayıt komutu"
113 | }
114 |
--------------------------------------------------------------------------------
/server/KAY_EKrol.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args,p,data) => {
5 | data.findOne({sunucu : message.guild.id},function(err,docs){
6 | let role = message.mentions.roles.first()|| message.guild.roles.cache.get(args[0])
7 | const embed1 = new Discord.MessageEmbed().setDescription(' | Kayıt ``Ekstra`` Rolünü Ayarlamam İçin ``@üye`` rolünü **@etiketle**!').setColor(open.embedFalse)
8 | if(role) {
9 |
10 | data.findOneAndUpdate({sunucu : message.guild.id},{$set : {Ekrol : role.id}},function(err,docs){
11 | const embed2 = new Discord.MessageEmbed().setDescription(` | Kayıt \`Ekstra\` rolü **${role.toString()}** Olarak ayarlandı.`).setColor(open.embedTrue)
12 | message.channel.send(embed2)
13 | })
14 |
15 | } else if(args[0] == "kapat") {
16 | const embed3 = new Discord.MessageEmbed().setDescription(` | Önce kapatmak istediğin şeyi ayarlanması lazım!`).setColor(open.embedFalse)
17 |
18 | let fetch = docs.Ekrol
19 | if(!fetch) return message.channel.send(embed3)
20 | data.findOneAndUpdate({sunucu : message.guild.id},{$set : {Ekrol : null}},function(err,docs){
21 | const embed4 = new Discord.MessageEmbed().setDescription(` | İstediğin şey **başarıyla** sıfırlandı.`).setColor(open.embedTrue)
22 | message.channel.send(embed4)
23 | })
24 | } else {
25 | return message.channel.send(embed1)
26 | }
27 | })
28 | }
29 | exports.help = {
30 | name : "ek-rol",
31 | aliases : ['üye-rol','ekstra-role','ek-role'],
32 | open : true,
33 | perm : "MANAGE_GUILD",
34 | limit : "0"
35 |
36 | }
37 | exports.play = {
38 | usage : "ek-rol @üye",
39 | description : "Kayıt Ekstra verilcek Rol Ayarlama Komutu"
40 | }
--------------------------------------------------------------------------------
/server/KAY_Erole.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args,p,data) => {
5 | data.findOne({sunucu : message.guild.id},function(err,docs){
6 | let role = message.mentions.roles.first() || message.guild.roles.cache.get(args[0])
7 | const embed1 = new Discord.MessageEmbed().setDescription(' | Kayıt ``Erkek`` Rolünü Ayarlamam İçin ``@Erkek`` rolünü **@etiketle**!').setColor(open.embedFalse)
8 | if(role) {
9 |
10 | data.findOneAndUpdate({sunucu : message.guild.id},{$set : { Erol : role.id}},function(err,docs){
11 | const embed2 = new Discord.MessageEmbed().setDescription(` | Kayıt \`Erkek\` rolü **${role.toString()}** Olarak ayarlandı.`).setColor(open.embedTrue)
12 | message.channel.send(embed2)
13 | })
14 | } else if(args[0] == "kapat") {
15 | const embed3 = new Discord.MessageEmbed().setDescription(` | Önce kapatmak istediğin şeyi ayarlanması lazım!`).setColor(open.embedFalse)
16 |
17 | let fetch = docs.Erol
18 | if(!fetch) return message.channel.send(embed3)
19 | data.findOneAndUpdate({sunucu : message.guild.id},{$set : { Erol : null}},function(err,docs){
20 | const embed4 = new Discord.MessageEmbed().setDescription(` | İstediğin şey **başarıyla** sıfırlandı.`).setColor(open.embedTrue)
21 | message.channel.send(embed4)
22 | })
23 | } else {
24 | return message.channel.send(embed1)
25 | }
26 | })
27 | }
28 | exports.help = {
29 | name : "e-rol",
30 | aliases : ['erkek-rol','erkek-role','e-role'],
31 | open : true,
32 | perm : "MANAGE_GUILD",
33 | limit : "0"
34 |
35 | }
36 | exports.play = {
37 | usage : "e-rol @erkek",
38 | description : "Kayıt Erkek Rol Ayarlama Komutu"
39 | }
--------------------------------------------------------------------------------
/server/KAY_K-kayıt.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 | const KayıtŞema = require('../database/şema/kayıt.js')
4 |
5 | exports.run = async(client, message, args,p,data) => {
6 | let docs = await data.findOne({sunucu : message.guild.id})
7 | let kız = docs.Krol
8 | let yetkili = docs.Yrol
9 | let kayıtsız = docs.Karol
10 | let kayıtkanal = docs.Kkanal
11 | let ekstra = docs.Ekrol
12 | let aktiflik = docs.aktiflik
13 | let düzen = docs.Idüzen
14 | let zorunlu = docs.Izorun
15 |
16 | const embed1 = new Discord.MessageEmbed().setDescription(' | Kayıt Sistemi tamamen ayarlanmamış! nelerin ayarlanmadığına bakmak için:\n ``'+p+'kontrol kayıt``').setColor(open.embedFalse)
17 | if(!kız || !yetkili || !kayıtsız || !kayıtkanal) return message.channel.send(embed1)
18 |
19 | let teyit1 = message.guild.roles.cache.get(kız)
20 | let teyit2 = message.guild.roles.cache.get(yetkili)
21 | let teyit3 = message.guild.channels.cache.get(kayıtkanal)
22 | let teyit4 = message.guild.roles.cache.get(kayıtsız)
23 | let teyit5 = message.guild.roles.cache.get(ekstra)
24 |
25 | let resim = "https://cdn.discordapp.com/emojis/769202829578731540.gif?v=1"
26 | if(!teyit1) return message.channel.send('Ayarlanan Kız rolü Sunucuda yok').then(a => a.delete({timeout : "5000"}))
27 | if(!teyit2) return message.channel.send('Ayarlanan Yetkili rolü Sunucuda yok').then(a => a.delete({timeout : "5000"}))
28 | if(!teyit3) return message.channel.send('Ayarlanan Kayıt kanalı Sunucuda yok').then(a => a.delete({timeout : "5000"}))
29 | if(!teyit4) return message.channel.send('Ayarlanan kayıtsız rolü Sunucuda yok').then(a => a.delete({timeout : "5000"}))
30 | if(!teyit5 && ekstra) return message.channel.send('Ayarlanan Esktra rol Sunucuda yok').then(a => a.delete({timeout : "5000"}))
31 |
32 | if(teyit1 && teyit1.position >= message.guild.member(client.user).roles.highest.position) return client.sendFalse(`**${teyit1}, Rolü Benim En Üst Rolümden Üstte Lütfen Rolümü Bu Rolün Üstüne Çekiniz**`,message.channel)
33 | if(teyit4 && teyit4.position >= message.guild.member(client.user).roles.highest.position) return client.sendFalse(`**${teyit4}, Rolü Benim En Üst Rolümden Üstte Lütfen Rolümü Bu Rolün Üstüne Çekiniz**`,message.channel)
34 | if(teyit5 && teyit5.position >= message.guild.member(client.user).roles.highest.position) return client.sendFalse(`**${teyit5}, Rolü Benim En Üst Rolümden Üstte Lütfen Rolümü Bu Rolün Üstüne Çekiniz**`,message.channel)
35 |
36 | const embed2 = new Discord.MessageEmbed().setDescription(` | Yanlış Kanaldasın burası Kayıt kanalı değil <#${kayıtkanal}> İşte Burası Kayıt kanalı`).setColor(open.embedFalse)
37 | const embed3 = new Discord.MessageEmbed().setDescription(` | Birini Kayıt edebilmek için bu sunucudaki <@&${yetkili}> Rolüne Sahip Olmalısın`).setColor(open.embedFalse)
38 | const embed4 = new Discord.MessageEmbed().setAuthor('Hata...','https://cdn.discordapp.com/emojis/769202870612131840.gif?v=1').setDescription(`Bir Kullanıcı **@Etiketlemelisin** veya **ID** Girmelisin.`).addField('Örnek:',`\`\`\`
39 | ${p}k <@etiket/ID>
40 | ${p}k <@etiket/ID>
41 | \`\`\``).setColor('#e100ff')
42 | const embed6 = new Discord.MessageEmbed().setDescription(` | kayıt edilcek kişi <@&${kayıtsız}> Rolüne sahip olmalı`).setColor(open.embedFalse)
43 |
44 | if(!message.member.roles.cache.has(yetkili)) return message.channel.send(embed3)
45 | if(message.channel.id !== kayıtkanal) return message.channel.send(embed2)
46 | let member = message.mentions.members.first() || message.guild.members.cache.get(args[0])
47 | if(!member)return message.channel.send(embed4)
48 | if(!member.roles.cache.has(kayıtsız)) return message.channel.send(embed6)
49 | let isim = args[1]
50 | let yaş = args[2]
51 | const embed5 = new Discord.MessageEmbed().setAuthor('[ Kayıt Başarılı ]',resim).setDescription(`
52 | **<:kadin:769607582318067723> - <@${member.id}> Kaydı ${message.author.toString()} Tarafından Yapıldı!**
53 | \`\`\`diff
54 | + ${isim ? isim : member.user.username} - Sunucuya Hoşgeldin 🤗
55 | \`\`\`
56 | **${member}, Kullanıcıya <@&${kız}> Rolü Verildi.**
57 | `).setThumbnail(member.user.avatarURL({format : "png", dynamic : true})).setColor('#af00f5')
58 | const embed7 = new Discord.MessageEmbed().setDescription(` | **İsim Zorunluluğu Ayarlanmış İsim Yaş girmelisin**.\n\n \`!k @etiket İsim Yaş\` `).setColor(open.embedFalse)
59 | if(!isim && !yaş && zorunlu) return message.channel.send(embed7)
60 | if(isim && isim.length > 20) return client.sendFalse(`Çok Büyük İsim Giriyorsun Kısaltmayı Dene.`,message.channel)
61 | if(yaş && yaş.length > 4)return client.sendFalse(`Çok Büyük Yaş Giriyorsun Kısaltmayı Dene.`,message.channel)
62 | if(member) {
63 |
64 | if(isim) {
65 |
66 | if(düzen){
67 | if(düzen.includes("{yas}") && !yaş) yaş = "0";
68 | const replce = düzen.replace(`{isim}`,`${isim.charAt(0).toUpperCase() + isim.slice(1).toLowerCase()}`).replace(`{yas}`,`${yaş}`)
69 | member.setNickname(replce)
70 | } else {
71 | if(!yaş) yaş = "0"
72 | member.setNickname(`${isim.charAt(0).toUpperCase() + isim.slice(1).toLowerCase()} ${yaş}`)
73 | }
74 | }
75 |
76 |
77 | if(aktiflik) {
78 |
79 | let kayıtSchema = new KayıtŞema({
80 | Guild : message.guild.id,
81 | MM : member.id,
82 | User : `**${member.user.tag}**(\`${member.id}\`)`,
83 | Owner : message.author.id,
84 | Gender : "<:kadin:769607582318067723>",
85 | Name :`${isim} | ${yaş}`
86 | })
87 | await kayıtSchema.save()
88 |
89 | }
90 |
91 | var roles = []
92 | if(teyit1) roles.push(teyit1.id)
93 | if(teyit5) roles.push(teyit5.id)
94 |
95 | member.roles.set(roles)
96 | message.channel.send(embed5)
97 |
98 |
99 | }
100 |
101 | }
102 | exports.help = {
103 | name : "k-kayıt",
104 | aliases : ['k','kız','kadın'],
105 | open : true,
106 | perm : "no",
107 | limit : "0"
108 |
109 | }
110 | exports.play = {
111 | usage : "k @etiket / s!k @etiket İsim Yaş",
112 | description : "Kayıt Sİstemi Kız Kayıt komutu"
113 | }
114 |
--------------------------------------------------------------------------------
/server/KAY_Karole.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args,p,data) => {
5 | data.findOne({sunucu : message.guild.id},function(err,doce){
6 | let role = message.mentions.roles.first()|| message.guild.roles.cache.get(args[0])
7 | const embed1 = new Discord.MessageEmbed().setDescription(' | Kayıt ``Kayıtsız`` Rolünü Ayarlamam İçin ``@Kayıtsız`` rolünü **@etiketle**!').setColor(open.embedFalse)
8 | if(role) {
9 |
10 | data.findOneAndUpdate({sunucu : message.guild.id},{ $set : {Karol : role.id}},function(err,doc){
11 | const embed2 = new Discord.MessageEmbed().setDescription(` | Kayıt \`Kayıtsız\` Rolü **${role.toString()}** Olarak ayarlandı.`).setColor(open.embedTrue)
12 | message.channel.send(embed2)
13 | })
14 |
15 |
16 | } else if(args[0] == "kapat") {
17 | const embed3 = new Discord.MessageEmbed().setDescription(` | Önce kapatmak istediğin şeyi ayarlanması lazım!`).setColor(open.embedFalse)
18 |
19 | let fetch = doce.Karol
20 | if(!fetch) return message.channel.send(embed3)
21 | data.findOneAndUpdate({sunucu : message.guild.id},{ $set : {Karol : null}},function(err,docs){
22 |
23 | const embed4 = new Discord.MessageEmbed().setDescription(` | İstediğin şey **başarıyla** sıfırlandı.`).setColor(open.embedTrue)
24 | message.channel.send(embed4)
25 | })
26 |
27 | } else {
28 | return message.channel.send(embed1)
29 | }
30 | })
31 | }
32 | exports.help = {
33 | name : "ka-rol",
34 | aliases : ['kayıtsız-rol','kayıtsız-role','ka-role'],
35 | open : true,
36 | perm : "MANAGE_GUILD",
37 | limit : "0"
38 |
39 | }
40 | exports.play = {
41 | usage : "ka-rol @kayıtsız",
42 | description : "Kayıt Kayıtsız rol ayarlama komutu"
43 | }
44 |
--------------------------------------------------------------------------------
/server/KAY_Kkanal.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args,p,data) => {
5 | data.findOne({sunucu : message.guild.id},function(err,doce){
6 | let channel = message.mentions.channels.first()
7 | if(channel) {
8 |
9 | data.findOneAndUpdate({sunucu : message.guild.id},{$set : {Kkanal : channel.id}},function(err,docs){
10 | const embed2 = new Discord.MessageEmbed().setDescription(` | Kayıtların yapılacağı \`kanal\` **${channel.toString()}** Olarak ayarlandı.`).setColor(open.embedTrue)
11 | message.channel.send(embed2)
12 | })
13 |
14 | } else if(args[0] == "kapat") {
15 | const embed3 = new Discord.MessageEmbed().setDescription(` | Önce kapatmak istediğin şeyi ayarlanması lazım!`).setColor(open.embedFalse)
16 |
17 | let fetch = doce.Kkanal
18 | if(!fetch) return message.channel.send(embed3)
19 | data.findOneAndUpdate({sunucu : message.guild.id},{$set : {Kkanal : null}},function(err,docs){
20 | const embed4 = new Discord.MessageEmbed().setDescription(` | İstediğin şey **başarıyla** sıfırlandı.`).setColor(open.embedTrue)
21 | message.channel.send(embed4)
22 | })
23 |
24 | } else {
25 | const embed1 = new Discord.MessageEmbed().setDescription(' | Kayıt ``Kanalını`` Ayarlamam İçin ``Kayıt`` kanalını **#etiketle**!').setColor(open.embedFalse)
26 | message.channel.send(embed1)
27 | }
28 | })
29 | }
30 | exports.help = {
31 | name : "k-kanal",
32 | aliases : ['kayıt-kanal'],
33 | open : true,
34 | perm : "MANAGE_GUILD",
35 | limit : "0"
36 |
37 | }
38 | exports.play = {
39 | usage : "k-kanal #kayıt-odası",
40 | description : "Kayıt Kanalı ayarlama komutu"
41 | }
--------------------------------------------------------------------------------
/server/KAY_Kmesaj.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 | const moment = require('moment')
4 | require('moment-duration-format')
5 | const hex = require('hex-color-regex')
6 | exports.run = async(client, message, args, p,db) => {
7 | const created = new Date().getTime() - message.author.createdAt.getTime();
8 | const userCe = moment.duration(created).format("Y [yıl], D [gün], H [saat]")
9 | let ne = args[0]
10 | let ne2 = args.slice(1).join(" ")
11 |
12 | if(ne == "kapat") {
13 | let veri = await db.findOne({sunucu : message.guild.id})
14 | if(!veri.mesaj.msj) return message.channel.send(new Discord.MessageEmbed().setColor(open.embedFalse).setDescription(` | Kayıt Mesajı Zaten Ayarlanmamış.`))
15 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {"mesaj.msj" : null}})
16 | message.channel.send(new Discord.MessageEmbed().setColor(open.embedTrue).setDescription(` | Kayıt Mesajı Başarıyla Normale döndü.`))
17 | }else if(ne == "ayarla") {
18 | if(!ne2) return message.channel.send(new Discord.MessageEmbed().setDescription(` | Ayarlamam için Değişkenler ile bir mesaj girmelisin: **${p}k-mesaj ayarla **`).setColor(open.embedFalse))
19 | if(ne2.length > 1000 || ne2.length < 10) return message.channel.send(new Discord.MessageEmbed().setDescription(` | Min. **10 Karakter** Max. **500 Karakter** Girmelisin.`).setColor(open.embedFalse))
20 |
21 | message.channel.send(new Discord.MessageEmbed().setColor('#4c0ff3').setDescription(`Onay veriyor musun? **evet** veya **hayır**`).addField('Mesaj',ne2))
22 | let collecter = await message.channel.awaitMessages(m=>m.author.id == message.author.id,{max : 1,time : 30000,errors : ['time']})
23 | let cv = collecter.first().content.toLowerCase()
24 | if(cv == "evet") {
25 |
26 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {"mesaj.msj":ne2}})
27 | return message.channel.send(new Discord.MessageEmbed().setDescription(`**Kayıt Mesajı Başarıyla Ayarlandı.**`).addField('Mesaj',ne2).setColor(open.embedTrue))
28 | } else if(cv == "hayır") {
29 | message.reply('İşlem iptal edildi')
30 | } else {
31 | message.reply('Evet veya hayır Demeliydin İşlem İptal oldu.')
32 | }
33 | } else if(ne == "renk") {
34 | let c = await db.findOne({sunucu : message.guild.id})
35 | if(c.mesaj.embed == false) return message.channel.send(new Discord.MessageEmbed().setDescription(` | Kayıt Mesajını Embed Yapınız :**${p}k-mesaj embed**`).setColor(open.embedFalse))
36 | if(!args[1]) return message.channel.send(new Discord.MessageEmbed().setDescription(' | Bir Renk Kodu Gir örnek **#3b2b2bs**').setColor(open.embedFalse))
37 | if(!hex().test(args[1])) return message.channel.send(new Discord.MessageEmbed().setColor(open.embedFalse).setDescription(' | Lütfen Geçerli bir Renk Kodu Giriniz.'))
38 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {"mesaj.renk":args[1]}})
39 | message.channel.send(new Discord.MessageEmbed().setDescription(` | **Başarıyla ${args[1]} Olarak Embedin Rengi Ayarlandı.**`).setColor(args[1]))
40 |
41 | } else if(ne == "embed"){
42 | let c = await db.findOne({sunucu : message.guild.id})
43 | if(c.mesaj.embed == true){
44 |
45 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {"mesaj.embed":false}})
46 | client.sendTrue(`Kayıt Mesajı Artık \`\` Olarak **Atılmayacak`,message.channel)
47 | } else if(c.mesaj.embed == false){
48 |
49 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {"mesaj.embed":true}})
50 | client.sendTrue(`Kayıt Mesajı Artık \`\` Olarak **Atılacak.**`,message.channel)
51 | }
52 |
53 | } else if(ne == "gif"){
54 | var gif = args[1]
55 | let c = await db.findOne({sunucu : message.guild.id})
56 | if(c.mesaj.embed == false) return message.channel.send(new Discord.MessageEmbed().setDescription(` | Kayıt Mesajını Embed Yapınız :**${p}k-mesaj embed**`).setColor(open.embedFalse))
57 | if(!gif)return client.sendFalse(`Gif Linkini Giriniz. Fotoraf Veya Gif Olabilir\n\n**UYARI:** Eğer Linki Doğru Girmesseniz GIF Gözükmeyecektir.`,message.channel)
58 | var rex = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$/i
59 | if(!rex.test(args[1]))return client.sendFalse(`Bu Bir Link Değil`,message.channel)
60 |
61 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {"mesaj.gif":args[1]}})
62 | const emb = new Discord.MessageEmbed()
63 | .setAuthor(message.author.username,message.author.avatarURL({dynamic : true}))
64 | .setDescription(`GIF Başarıyla Ayarlandı Eğer Doğru ise Altta Gif Gözükecektir.`)
65 | .setImage(args[1])
66 | .setColor('BLUE')
67 | message.channel.send(emb)
68 | } else {
69 | let c = message.guild.memberCount.toLocaleString()
70 |
71 | const mapping = {
72 | " ": " ",
73 | "0": "",
74 | "1": "",
75 | "2": "",
76 | "3": "",
77 | "4": "",
78 | "5": "",
79 | "6": "",
80 | "7": "",
81 | "8": "",
82 | "9": "",
83 | }
84 | let rplc = `${message.guild.memberCount.toString()}`
85 | .split("")
86 | .map(c => mapping[c] || c)
87 | .join("")
88 | return message.channel.send(new Discord.MessageEmbed().setColor('#4c0ff3').setTitle('***\:scroll: Kayıt Mesajı Ayarlama Menüsü***')
89 | .setDescription(`
90 | __Kayıt Kanalına Atılacak Mesajın İçeriği__
91 |
92 | **\`Kayıt mesajını Özelleştirmen için Değişkenler:\`**
93 |
94 | > \`{user:etiket}\` Gelen Kullanıcıyı ${message.author} Şeklinde Etiketler
95 | > \`{user:ad}\` Gelen Kullanıcının \`${message.author.username}\` Şeklinde ismi
96 | > \`{user:hastag}\` Gelen Kullanıcının \`${message.author.discriminator}\` Şeklinde Etiketi
97 | > \`{user:id}\` Gelen Kullanıcının \`${message.author.id}\` Şeklinde ID'si
98 | > \`{user:kuruluş}\` Gelen Kullanıcının \`${moment(message.author.createdAt).format(`YYYY/MM/DD`)}\` Şeklinde Kuruluş Tarihi
99 | > \`{user:kuruluş2}\` Gelen Kullanıcının \`${userCe}\` Şeklinde K. T.
100 | > \`{user:tehlike}\` Kullanıcıyı \`30 Günden Az\` Bir Kuruluş ise \`Tehlikeli\` yazar
101 | > \`{user:durum}\` Gelen Kullanıcının \`Yemek Yiyorum!\` Şeklinde Özel Durumu
102 |
103 | > \`{guild:ad}\` Sunucunun \`${message.guild.name}\` Şeklinde adı
104 | > \`{guild:üye}\` Sunucunun \`${message.guild.memberCount}\` Şeklinde Üye sayısı
105 | > \`{guild:üye2}\` Sunucunun ${rplc} Şeklinde Üye sayısı
106 | > \`{guild:yetkili:}\` Sunucunun Yetkili Rolü ve özellikleri
107 | > \`{guild:kayıtsız:}\` Sunucunun Kayıtsız rolü ve Özellikleri
108 |
109 | > \`{random}\` 6 Hoşgeldin Cümlesinden birini atar
110 |
111 | **NOT**: **\`Emoji Kullanacaksanız bu sunucuda olmalı\`**
112 | `).addField('Mesajı Ayarlamak İçin',`\`${p}k-mesaj ayarla \``,true).addField('Eskisine Dönmek için',`\`${p}k-mesaj kapat\``,true).addField('** **','** **').addField('Kayıt Mesajını Embed Yapma',`\`${p}k-mesaj embed\``,true).addField('Embed Rengi Ayarlama',`\`${p}k-mesaj renk #renk-kod\``,true).addField('** **','** **').addField(`Kayıt Embed Gifi`,`\`${p}k-mesaj gif \``,false))
113 | }
114 | }
115 | exports.help = {
116 | name : "k-msj",
117 | aliases : ['kayıt-mesaj','k-mesaj'],
118 | open : [true],
119 | perm : "ADMINISTRATOR",
120 | vote : true
121 |
122 | }
123 | exports.play = {
124 | usage : "k-mesaj ",
125 | description : "Kayıt Mesajını Ayarlarsınız."
126 | }
127 |
--------------------------------------------------------------------------------
/server/KAY_Krole.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args,p,data) => {
5 | data.findOne({sunucu : message.guild.id},function(err,doce){
6 | let role = message.mentions.roles.first()|| message.guild.roles.cache.get(args[0])
7 | const embed1 = new Discord.MessageEmbed().setDescription(' | Kayıt ``kız`` Rolünü Ayarlamam İçin ``@kız`` rolünü **@etiketle**!').setColor(open.embedFalse)
8 | if(role) {
9 |
10 | data.findOneAndUpdate({sunucu : message.guild.id},{$set : {Krol : role.id}},function(err,docs){
11 | const embed2 = new Discord.MessageEmbed().setDescription(` | Kayıt \`Kız\` rolü **${role.toString()}** Olarak ayarlandı.`).setColor(open.embedTrue)
12 | message.channel.send(embed2)
13 | })
14 | } else if(args[0] == "kapat") {
15 | const embed3 = new Discord.MessageEmbed().setDescription(` | Önce kapatmak istediğin şeyi ayarlanması lazım!`).setColor(open.embedFalse)
16 |
17 | let fetch = doce.Krol
18 | if(!fetch) return message.channel.send(embed3)
19 | data.findOneAndUpdate({sunucu : message.guild.id},{$set : {Krol : null}},function(err,docs){
20 | const embed4 = new Discord.MessageEmbed().setDescription(` | İstediğin şey **başarıyla** sıfırlandı.`).setColor(open.embedTrue)
21 | message.channel.send(embed4)
22 | })
23 | } else {
24 | return message.channel.send(embed1)
25 | }
26 | })
27 | }
28 | exports.help = {
29 | name : "k-rol",
30 | aliases : ['kız-rol','kız-role','k-role'],
31 | open : true,
32 | perm : "MANAGE_GUILD",
33 | limit : "0"
34 |
35 | }
36 | exports.play = {
37 | usage : "k-rol @kız",
38 | description : "Kayıt Kız Rol Ayarlama Komutu"
39 | }
--------------------------------------------------------------------------------
/server/KAY_Yrole.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args,p,data) => {
5 | data.findOne({sunucu : message.guild.id},function(error,docs){
6 | let role = message.mentions.roles.first()|| message.guild.roles.cache.get(args[0])
7 | const embed1 = new Discord.MessageEmbed().setDescription(' | Kayıt ``Yetkili`` Rolünü Ayarlamam İçin ``@Yetkili`` rolünü **@etiketle**!').setColor(open.embedFalse)
8 | if(role) {
9 |
10 | data.findOneAndUpdate({sunucu : message.guild.id},{$set : {Yrol : role.id}},function(err,docs){
11 | const embed2 = new Discord.MessageEmbed().setDescription(` | Kayıt \`Yetkili\` rolü **${role.toString()}** Olarak ayarlandı.`).setColor(open.embedTrue)
12 | message.channel.send(embed2)
13 | })
14 | } else if(args[0] == "kapat") {
15 | const embed3 = new Discord.MessageEmbed().setDescription(` | Önce kapatmak istediğin şeyi ayarlanması lazım!`).setColor(open.embedFalse)
16 |
17 | let fetch = docs.Yrol
18 | if(!fetch) return message.channel.send(embed3)
19 | data.findOneAndUpdate({sunucu : message.guild.id},{$set : {Yrol : null}},function(err,docs){
20 | const embed4 = new Discord.MessageEmbed().setDescription(` | İstediğin şey **başarıyla** sıfırlandı.`).setColor(open.embedTrue)
21 | message.channel.send(embed4)
22 | })
23 | } else {
24 | return message.channel.send(embed1)
25 | }
26 | })
27 | }
28 | exports.help = {
29 | name : "y-rol",
30 | aliases : ['yetkili-rol','yetkili-role','y-role'],
31 | open : true,
32 | perm : "MANAGE_GUILD",
33 | limit : "0"
34 |
35 | }
36 | exports.play = {
37 | usage : "y-rol @kayıt-sorumlusu",
38 | description : "Kayıt Yetkilisi Ayarlama Komutu"
39 | }
--------------------------------------------------------------------------------
/server/KAY_aktiflik.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args,p,data) => {
5 | let fetch1 = await data.findOne({sunucu : message.guild.id})
6 | let fetch = fetch1.aktiflik
7 | let ne = args[0]
8 |
9 | if(ne == "aç") {
10 | const embed6 = new Discord.MessageEmbed().setDescription(' | Kayıt Sayma Yani aktiflik Zaten **Açık**').setColor(open.embedFalse)
11 | if(fetch) return message.channel.send(embed6)
12 | await data.findOneAndUpdate({sunucu : message.guild.id},{$set : { aktiflik : true}})
13 | const embed7 = new Discord.MessageEmbed().setDescription(' | Kayıt Sayma yani aktiflik başarıyla **açıldı**').setColor(open.embedTrue)
14 |
15 | message.channel.send(embed7)
16 | } else if(ne == "kapat") {
17 | const embed5 = new Discord.MessageEmbed().setDescription(' | Kayıt Sayma Yani aktiflik Zaten **Kapalı**').setColor(open.embedFalse)
18 | if(!fetch) return message.channel.send(embed5)
19 |
20 | await data.findOneAndUpdate({sunucu : message.guild.id},{$set : { aktiflik : false}})
21 | const embed3 = new Discord.MessageEmbed().setDescription(' | Kayıt sayma **kapatıldı.** Fakat Haila Kayıt Verileriniz Duruyor').setColor(open.embedTrue)
22 | message.channel.send(embed3)
23 | } else {
24 | const embed = new Discord.MessageEmbed().setDescription(` | Lütfen Bir Seçenek girin : ${p}aktiflik `).setColor(open.embedFalse)
25 | message.channel.send(embed)
26 | }
27 |
28 |
29 |
30 | }
31 | exports.help = {
32 | name : "aktiflik",
33 | aliases : ['seviye'],
34 | open : true,
35 | perm : "MANAGE_GUILD",
36 | vote : true
37 |
38 | }
39 | exports.play = {
40 | usage : "aktiflik ",
41 | description : "Kayıt Sistemi Ne kadar kayıt yaptın o işte "
42 | }
43 |
--------------------------------------------------------------------------------
/server/KAY_eksikler.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args, p,db) => {
5 |
6 | let ne = args[0]
7 | let vr = await db.findOne({sunucu : message.guild.id})
8 | let arr = []
9 | const eksiks = new Discord.MessageEmbed().setColor('#e4eb27').setTitle(`Sunucudaki Kayıt Eksikleri`).setURL('https://discord.com/api/oauth2/authorize?client_id=769110620359622676&permissions=8&scope=bot')
10 | .setDescription(`**Zorunlu Olanların Başı <:dndly:769202661391466527> Tavsiye Olanların Başı <:afkly:769202661530140742> ile Başlıyor** `)
11 | if(ne == "kayıt") {
12 | if(!vr.Erol){
13 | eksiks.addField(`<:dndly:769202661391466527>__${p}e-rol__`,`\`${p}e\` **Erkek** Kayıt Komutu **Erkek** Rolü Ayarlanmassa **Çalışmaz**`)
14 | }
15 | if(!vr.Krol || !message.guild.roles.cache.get(vr.Krol)) {
16 | eksiks.addField(`<:dndly:769202661391466527>__${p}k-rol__`,`\`${p}k\` **Kız** Kayıt Komutu **Kız** Rolü Ayarlanmassa **Çalışmaz**`)
17 | }
18 | if(!vr.Yrol||!message.guild.roles.cache.get(vr.Yrol)) {
19 | eksiks.addField(`<:dndly:769202661391466527>__${p}y-rol__`,`\`${p}e & ${p}k\` **Yetkili** Rolü Ayarlanmazsa Kayıt Asla **Çalışamaz**`)
20 | }
21 | if(!vr.Kkanal||!message.guild.channels.cache.get(vr.Kkanal)) {
22 | eksiks.addField(`<:dndly:769202661391466527>__${p}k-kanal__`,`\`${p}e & ${p}k\` **Kayıt Kanalı** Ayarlanmazsa Kayıt Asla **Çalışamaz**`)
23 | }
24 | if(!vr.otoroll.user) {
25 | eksiks.addField(`<:afkly:769202661530140742>__${p}otorol user @role__`,`Otorol Ayarlanmazsa Gelen Kişilere Otorol **Verilmez**`)
26 | }
27 | if(!vr.Karol||!message.guild.roles.cache.get(vr.Karol)){
28 | eksiks.addField(`<:dndly:769202661391466527>__${p}ka-rol__`,`\`${p}e & ${p}k\` **Kayıtsız Rolü** Ayarlanmazsa Kayıt Asla **Çalışamaz**`)
29 | }
30 | if(!vr.aktiflik) {
31 | eksiks.addField(`<:afkly:769202661530140742>__${p}aktiflik aç__`,`Aktiflik Açarak Kayıt Sayılarını **Denetleyebilirsiniz**`)
32 | }
33 | if(!vr.Ekrol||!message.guild.roles.cache.get(vr.Ekrol)) {
34 | eksiks.addField(`<:afkly:769202661530140742>__${p}ek-rol__`,`Ekstra verilecek Rolü Girerek @üye Rolü Gibi Rollerinizi **verebilirsiniz**`)
35 | }
36 | if(vr.Erol && message.guild.roles.cache.get(vr.Erol).position >= message.guild.member(client.user).roles.highest.position) {
37 | eksiks.addField(`<:dndly:769202661391466527>UYARI`,`<@&${vr.Erol}>, Rolü Benim En Üst Rolümden Üstte Lütfen Rolümü bu rolün Üstüne Çekiniz`)
38 | }
39 | if(vr.Krol && message.guild.roles.cache.get(vr.Krol).position >= message.guild.member(client.user).roles.highest.position) {
40 | eksiks.addField(`<:dndly:769202661391466527>UYARI`,`<@&${vr.Krol}>, Rolü Benim En Üst Rolümden Üstte Lütfen Rolümü bu rolün Üstüne Çekiniz`)
41 | }
42 | if(vr.Karol && message.guild.roles.cache.get(vr.Karol).position >= message.guild.member(client.user).roles.highest.position) {
43 | eksiks.addField(`<:dndly:769202661391466527>UYARI`,`<@&${vr.Karol}>, Rolü Benim En Üst Rolümden Üstte Lütfen Rolümü bu rolün Üstüne Çekiniz`)
44 | }
45 | if(!vr.Idüzen) {
46 | eksiks.addField(`<:afkly:769202661530140742>__${p}isim-düzen__`,`Kayıt Edilince Değişecek İsmin Şeklini **Ayarlayabilirsiniz**`)
47 | }
48 | message.channel.send(eksiks.setFooter('Sadece İşleyişi Etkileyenler Vardır'))
49 | } else {
50 | return client.sendFalse(`Lütfen Sadece **${p}kontrol kayıt** yazınız.`,message.channel)
51 | }
52 | }
53 | exports.help = {
54 | name : "kontrol",
55 | aliases : ['eksikler'],
56 | open : [true],
57 | perm : "no"
58 |
59 | }
60 | exports.play = {
61 | usage : "kontrol ",
62 | description : "Belirlenen Bir Sistemin Eksikleri Olup Olmadığını Söyler"
63 | }
64 |
--------------------------------------------------------------------------------
/server/KAY_isim-zorun.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args,p,data) => {
5 | let fetch1 = await data.findOne({sunucu : message.guild.id})
6 | let yetkili = fetch1.Yrol
7 | const embed2= new Discord.MessageEmbed().setDescription(' | İlk Önce Kayıt yetkilisini ayarla ').setColor(open.embedFalse)
8 | const embed3= new Discord.MessageEmbed().setDescription(' | Kayıt ederken zaten İsimsiz kayıt ediyorum').setColor(open.embedFalse)
9 | const embed4= new Discord.MessageEmbed().setDescription(' | Kayıt Ederken Zaten İsimli Kayıt ediyorum ').setColor(open.embedFalse)
10 |
11 |
12 | let ne = args[0]
13 | let fetch = fetch1.Izorun
14 | if(ne == "evet") {
15 |
16 | if(!yetkili) return message.channel.send(embed2)
17 | if(fetch) return message.channel.send(embed4)
18 | await data.findOneAndUpdate({sunucu : message.guild.id},{$set : { Izorun : true}})
19 | message.channel.send(new Discord.MessageEmbed().setDescription(' | Kayıtta artık Zorunlu Olarak isimli kayıt yapılacak'))
20 | } else if(ne == "hayır") {
21 | if(!yetkili) return message.channel.send(embed2)
22 | if(!fetch) return message.channel.send(embed3)
23 |
24 | await data.findOneAndUpdate({sunucu : message.guild.id},{$set : { Izorun : false}})
25 | message.channel.send(new Discord.MessageEmbed().setDescription(' | Artık Kayıtta isim yaş yazmadan Kayıt Serbest.').setColor(open.embedTrue))
26 | } else {
27 | const embed = new Discord.MessageEmbed().setDescription(` | Lütfen Bir Seçenek girin : ${p}isim-zorunlu evet/hayır`).setColor(open.embedFalse)
28 | message.channel.send(embed)
29 | }
30 |
31 |
32 |
33 | }
34 | exports.help = {
35 | name : "isim-zorunlu",
36 | aliases : ['isim-zorun'],
37 | open : true,
38 | perm : "MANAGE_GUILD",
39 | limit : "0"
40 |
41 | }
42 | exports.play = {
43 | usage : "isim-zorunlu ",
44 | description : "Kayıt Sırasında İsimli mi isimsiz mi kayıt yapılacak?"
45 | }
--------------------------------------------------------------------------------
/server/KAY_isim.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 |
5 | exports.run = async(client, message, args,p,data) => {
6 | let f = await data.findOne({sunucu : message.guild.id})
7 | let yetkili = f.Yrol
8 | let erkek = f.Erol
9 | let kız = f.Krol
10 | let user = message.mentions.users.first() || message.guild.members.cache.get(args[0])
11 | let member = message.guild.member(user)
12 | let ism = args.slice(1).join(" ")
13 | if(!message.member.roles.cache.has(yetkili) && !message.member.hasPermission('MANAGE_NICKNAMES')) return message.channel.send(new Discord.MessageEmbed().setDescription(` | Kayıt Sorumlusu olan **<@&${yetkili}>** Rolüne Sahip Olmalısın!`).setColor(open.embedFalse))
14 | if(!member) return message.channel.send(new Discord.MessageEmbed().setDescription(' | Lütfen Bir **Kullanıcı @etiketleyin veya ID ** Yazınız..').setColor(open.embedFalse))
15 | if(member.id == message.guild.owner.id || member.roles.highest.position >= message.member.roles.highest.position) return client.sendFalse(`Bu Kişinin İsmini Değişmeye Yetkin Bulunmuyor`,message.channel)
16 | if(member.roles.highest.position >= message.guild.member(client.user).roles.highest.position) return client.sendFalse(`Bu Kişinin İsmini Değişemiyorum...`,message.channel)
17 | if(!ism) return message.channel.send(new Discord.MessageEmbed().setDescription(' | Lütfen Yeni **İsimi** Giriniz.').setColor(open.embedFalse))
18 | if(ism.length > 31) return client.sendFalse(`Max. **32** karakter Girebilirsin`,message.channel)
19 | member.setNickname(ism)
20 | message.channel.send(new Discord.MessageEmbed()
21 | .setAuthor('İsim Değiştirildi',message.author.avatarURL({dynamic : true}))
22 | .setDescription(`🔸️\`İsmi Değiştirilen\`: ${member}\n🔸️\`Yeni İsmi\`: **${ism}**`)
23 | .setColor('YELLOW')
24 | .setThumbnail(member.user.avatarURL({dynamic : true}))
25 | .setFooter(`${message.author.username}, ${member.user.username} Kişinin Adını Değiştirdi.`))
26 |
27 | }
28 | exports.help = {
29 | name : "isim",
30 | aliases : ['isim-değiş','nick'],
31 | open : true,
32 | perm : "no"
33 |
34 | }
35 | exports.play = {
36 | usage : "isim @etiket ",
37 | description : "Kayıt Edilen Kullanıcı Adı yanlış işe kayıt sorumlusu değişebilir."
38 | }
39 |
--------------------------------------------------------------------------------
/server/KAY_isimdüzen.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args,p,data) => {
5 |
6 | const embed1 = new Discord.MessageEmbed().setAuthor(message.author.username).setDescription(`
7 | **Bu mesajdan sonra 30 saniye içinde isim-yaş düzenini söyle**
8 |
9 | Değişkenler : {isim} / {yas}
10 | Örnek : 主 {isim} | {yas}
11 |
12 | **Şeklinde yazarsan kayıt sırasında bu şekilde kayıt eder**
13 |
14 | Kapatmak istersen \`kapat\` yazman yeterlidir.
15 | `).setColor('BLUE').setFooter('30 saniye sonra iptal edilecektir')
16 |
17 |
18 | let owo = false;
19 | while(!owo) {
20 |
21 |
22 | message.channel.send(embed1)
23 | try {
24 | const response = await message.channel.awaitMessages(neblm => neblm.author.id === message.author.id, { max: 1, time: 30000, errors:['time'] });
25 | const choice = response.first().content
26 | if(choice == "kapat") {
27 | owo = "kapat";
28 | await data.findOneAndUpdate({sunucu : message.guild.id},{$set : { Idüzen : null}},function(err,docs){
29 | message.channel.send(new Discord.MessageEmbed().setDescription(` | İsim Düzeni Kaldırıldı ve Normaline döndü`).setColor(open.embedTrue))})
30 | }
31 |
32 |
33 | if(choice !== "kapat") owo = true;
34 |
35 | if(owo !== "kapat") {
36 | const embed2 = new Discord.MessageEmbed().setColor(open.embedTrue).setDescription(`
37 | İsim Düzeni \`${choice}\` Olarak ayarlandı. Kayıt olanlar bu şekilde ismi düzenlenecek.
38 |
39 | (**Kayıt ederken Kayıt Sorumlusu İsim ve yaş Yazmaz ise değiştirilmez**) `)
40 | data.findOneAndUpdate({sunucu : message.guild.id},{$set : { Idüzen : choice}},function(err,docs){
41 | message.channel.send(embed2)
42 | })
43 | }
44 |
45 | } catch(e) {
46 | return message.reply('İşlem Süren bitti.')
47 | }
48 |
49 | }
50 | }
51 | exports.help = {
52 | name : "isim-düzeni",
53 | aliases : ['isimdüzen','i-düzen','isim-düzen'],
54 | open : true,
55 | perm : "MANAGE_GUILD",
56 | limit : "0"
57 |
58 | }
59 | exports.play = {
60 | usage : "isim-düzeni",
61 | description : "Kayıt ediltikten sonra İsimin nasıl yapılacağı"
62 | }
63 |
--------------------------------------------------------------------------------
/server/KAY_isimler.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 | const kyt = require('../database/şema/kayıt.js')
4 | exports.run = async(client, message, args, p,db) => {
5 | let member = message.mentions.members.first() || message.guild.members.cache.get(args[0])
6 | let ytk = await db.findOne({sunucu : message.guild.id})
7 | if(!ytk.aktiflik) return client.sendFalse(`İlk Önce Aktiflik Açılmalı: **${p}aktiflik aç**`,message.channel)
8 | if(!ytk.Yrol) return message.reply(`Bu Sunucuda Kayıt yetkili rolü ayarlanmamış`)
9 | if(!message.member.roles.cache.has(ytk.Yrol)) return message.channel.send(new Discord.MessageEmbed().setColor(open.embedFalse).setDescription(` | Bu Komutu Kullanmak için <@&${ytk.Yrol}> Rolüne Sahip olmalısın.`))
10 | if(!member) return message.channel.send(new Discord.MessageEmbed().setDescription(` | isimlerini Göstermek için Bir Kullanıcı(\`Sunucuda Olan\`) Girmelisin.`).setColor(open.embedFalse))
11 | let bilgiler = await kyt.find({event : "Kayıt",Guild : message.guild.id, MM : member.id})
12 | if(bilgiler.length <= 0) return message.channel.send(new Discord.MessageEmbed().setAuthor(member.user.tag,member.user.avatarURL({dynamic : true})).setDescription(`**Bu Üyenin herhangi Bir Kaydı Bulunmuyor**`).setColor('#000302').setFooter('Kayıt Bulunmuyor'))
13 | const embed = new Discord.MessageEmbed().setTitle(`${member.nickname ? member.nickname : member.user.username} \`-\` Kayıt İsimleri`)
14 | .setDescription(`
15 | <:mahkemeci:773549662988795904> **${member}'ın Toplam \`${bilgiler.length}\` Tane İsimli Kayıtı bulundu!**
16 |
17 | ${bilgiler.map(function(a,i){
18 | i++
19 | return `\`[${i}.]\` **-** \`${a.Name}\` - ${message.guild.members.cache.get(a.Owner) ? `**${message.guild.members.cache.get(a.Owner).user.tag}**` : "Kayıt Eden Sunucuda Değil."}`
20 | }).join("\n") || "**``Sunucuda Hiç Kayıt Olmamış``**"}
21 |
22 | **\`${bilgiler.filter(a => a.Gender == "<:erkek:769607582238900254>").length}\` Kere \`Erkek\` Olarak Kayıt Olmuş.**
23 | **\`${bilgiler.filter(a => a.Gender == "<:kadin:769607582318067723>").length}\` Kere \`Kadın\` Olarak Kayıt Olmuş.**
24 | `).setColor('YELLOW')
25 |
26 | message.channel.send(embed)
27 | }
28 | exports.help = {
29 | name : "isimler",
30 | aliases : ['isims'],
31 | open : true,
32 | perm : "no"
33 |
34 | }
35 | exports.play = {
36 | usage : "isimler ",
37 | description : "Kullanıcının Geçmiş Kayıt İsimlerini Sıralar."
38 | }
39 |
--------------------------------------------------------------------------------
/server/KAY_otorol.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args,p,data) => {
5 |
6 | let ne = args[0]
7 | if(ne == "user"||ne == "kullanıcı") {
8 | let role = message.mentions.roles.first()||message.guild.roles.cache.get(args[1])
9 | if(!role)return client.sendFalse(`Otorol **Kullanıcı** Rolünü Ayarlamak İçin Bir rol **@etiketlemelisin**`,message.channel)
10 | if(role.position >= message.guild.member(client.user).roles.highest.position) return client.sendFalse(`${role}, Bu Rol Benim En Üst Rolümden Üstte Bir rol`,message.channel)
11 | await data.findOneAndUpdate({sunucu : message.guild.id},{$set : {"otoroll.user":role.id}})
12 | client.sendTrue(`Otorol **Kullanıcı** Rolü ${role} Olarak başarıyla Ayarlandı`,message.channel)
13 | }else if(ne == "bot") {
14 | let role = message.mentions.roles.first()||message.guild.roles.cache.get(args[1])
15 | if(!role)return client.sendFalse(`Otorol **Bot** Rolünü Ayarlamak İçin Bir rol **@etiketlemelisin**`,message.channel)
16 | if(role.position >= message.guild.member(client.user).roles.highest.position) return client.sendFalse(`${role}, Bu Rol Benim En Üst Rolümden Üstte Bir rol`,message.channel)
17 | await data.findOneAndUpdate({sunucu : message.guild.id},{$set : {"otoroll.bot":role.id}})
18 | client.sendTrue(`Otorol **Bot** Rolü ${role} Olarak başarıyla Ayarlandı`,message.channel)
19 | } else if(ne == "kapat"){
20 | let d = await data.findOne({sunucu : message.guild.id})
21 | if(!d.otoroll.bot && !d.otoroll.user)return client.sendFalse(`Otorol Zaten Ayarlanmamış`,message.channel)
22 | await data.findOneAndUpdate({sunucu : message.guild.id},{$set : {"otoroll.bot":null,"otoroll.user":null}})
23 | client.sendTrue(`Otorol Sistemi başarıyla Kapatıldı`,message.channel)
24 | }else {
25 | const otorol = new Discord.MessageEmbed().setTitle('Otorol Sistem').setURL('https://discord.com/api/oauth2/authorize?client_id=769110620359622676&permissions=8&scope=bot')
26 | .addField(`__${p}otorol user @rol__`,`Otorol Gelen **Bot Olmayan** Kişilere Verilecek Rol`)
27 | .addField(`__${p}otorol bot @rol__`,'Otorol Gelen **Bot Olan** Kişilere Verilecek Rol')
28 | .addField(`__${p}otorol kapat__`,`Sistemi Kapatır.`)
29 | .setFooter('Otorol Sistemi',message.author.avatarURL({dynamic : true})).setColor('#d6e4e4')
30 | message.channel.send(otorol)
31 | }
32 |
33 |
34 |
35 | }
36 | exports.help = {
37 | name : "otorol",
38 | aliases : ['oto-rol'],
39 | open : true,
40 | perm : "MANAGE_GUILD",
41 | limit : "0"
42 |
43 | }
44 | exports.play = {
45 | usage : "otorol ",
46 | description : "Kayıt Sırasında Otomatik Kayıtsız rolü verilecek mi?"
47 | }
48 |
--------------------------------------------------------------------------------
/server/KAY_profil.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args,p,data) => {
5 | let f = await data.findOne({sunucu : message.guild.id})
6 | let yetkili = f.Yrol
7 |
8 | let acikmi = f.aktiflik
9 |
10 | const KayıtŞema = require('../database/şema/kayıt.js')
11 | let l;
12 | const embed7 = new Discord.MessageEmbed().setDescription(` | İlk Önce Aktifliği açman gerek \`${p}aktiflik aç\` Yazarak açabilirsin.`).setColor(open.embedFalse)
13 |
14 | if(!acikmi) return message.channel.send(embed7)
15 | if(!yetkili) return message.reply('Kayıt Yetkili Rolü Ayarlanmamış.')
16 | let user = message.mentions.users.first() || message.guild.members.cache.get(args[0]) || message.author
17 | let member = message.guild.member(user)
18 |
19 | let docs = await KayıtŞema.find({event :"Kayıt",Guild : message.guild.id})
20 |
21 | let mumber = docs ? docs.filter(a => a.Owner == member.id && a.Gender == "<:erkek:769607582238900254>").map(a => `${a.Gender} | ${!isNaN(a.User) ? `<@${a.User}>` : `${a.User}`}`).join("\n") : "**Veri Yok**" || "**Veri Yok**"
22 | let mumber2 = docs ? docs.filter(a => a.Owner == member.id && a.Gender == "<:kadin:769607582318067723>").map(a => `${a.Gender} | ${!isNaN(a.User) ? `<@${a.User}>` : `${a.User}`}`).join("\n") : "**Veri Yok**" || "**Veri Yok**"
23 | if(!mumber) mumber = "**Veri Yok**"
24 | if(!mumber2) mumber2 = "**Veri Yok**"
25 | let mumber3 = docs ? docs.filter(a => a.Owner.includes(member.id) && a.Gender == "<:erkek:769607582238900254>").length : "0"
26 | let mumber4 = docs ? docs.filter(a => a.Owner.includes(member.id) && a.Gender == "<:kadin:769607582318067723>").length : "0"
27 |
28 |
29 | const embed6 = new Discord.MessageEmbed().setDescription(` | Bu Komutu Kullanacak kişi **<@&${yetkili}>** Rolüne Sahip olmalı`).setColor(open.embedFalse)
30 | if(!member.roles.cache.has(yetkili)) return message.channel.send(embed6)
31 | const emb = new Discord.MessageEmbed().setColor('YELLOW').setTitle(`${member.nickname ? member.nickname : member.user.username} \`-\` Kayıt bilgileri`)
32 | .setDescription(`
33 | **Bilgileri Silmek için \`${p}sıfırla\` Yazınız Tüm Sunucu Verileriniz Silinir.**
34 |
35 | **Sunucudaki \`${docs.length}\` Kayıt İçerisinden Seninkiler ;**
36 |
37 | [__**Erkek Kayıtlar** [${mumber3}]__](${open.link}) ;
38 |
39 | ${mumber}
40 |
41 | [__**Kız Kayıtlar** [${mumber4}]__](${open.link}) ;
42 |
43 | ${mumber2}
44 |
45 | `).setThumbnail(member.user.avatarURL({dynamic : true, format :"png"})).setImage('https://cdn.glitch.com/b819e63f-ac6a-40a2-8616-c62ef5027fbe%2Fmy%20banner.png?v=1603739755993')
46 | const emb2 = new Discord.MessageEmbed().setColor('YELLOW').setTitle(` ${member.nickname ? member.nickname : member.user.username} \`-\` Kayıt bilgileri`)
47 | .setDescription(`
48 | **Sunucudaki \`${docs.filter(a => a.Guild == message.guild.id).length}\` Kayıt İçerisinden Seninkiler ;**
49 |
50 | [__**Erkek Kayıtlar**__](${open.link}) ;
51 |
52 | <:erkek:769607582238900254> | **${mumber3}** Erkek Kayıt Yapmışsın
53 |
54 | [__**Kız Kayıtlar**__](${open.link}) ;
55 |
56 | <:kadin:769607582318067723> | **${mumber4}** Kız Kayıt Yapmışsın
57 |
58 | `).setFooter('Çok Fazla Kayıt Yaptığın için listeleyemiyorum').setThumbnail(member.user.avatarURL({dynamic : true, format :"png"}))
59 | if(emb.description.length >= 2000) return message.channel.send(emb2)
60 | message.channel.send(emb)
61 |
62 | }
63 | exports.help = {
64 | name : "profil",
65 | aliases : ['aktiflik-bilgi'],
66 | open : true,
67 | perm : "no",
68 | limit : "0"
69 |
70 | }
71 | exports.play = {
72 | usage : "profil < /@etiket/id>",
73 | description : "Kendinizin veya başkasının kayıt bilgilerini gösterir"
74 | }
75 |
--------------------------------------------------------------------------------
/server/KAY_say.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js');
2 |
3 | const open = require('../open.json')
4 |
5 | exports.run = async (client, message, args,p,data) => {
6 |
7 | let f = await data.findOne({sunucu : message.guild.id})
8 | const datas = await f.Erol
9 | const datass = await f.Krol
10 | if(!datas) return message.channel.send(new Discord.MessageEmbed().setDescription(`Erkek Rolünü ayarlamamışsın **${p}e-rol @erkek** Şeklinde ayarla `).setColor(open.embedFalse).setFooter('Erkek Rolü ayarlanmamış'))
11 | if(!datass) return message.channel.send(new Discord.MessageEmbed().setDescription(`Kız Rolünü ayarlamamışsın **${p}k-rol @kız** Şeklinde ayarla `).setColor(open.embedFalse).setFooter('Kız Rolü ayarlanmamış'))
12 |
13 | function map(map){
14 | const mapping = {
15 | " ": " ",
16 | "0": "",
17 | "1": "",
18 | "2": "",
19 | "3": "",
20 | "4": "",
21 | "5": "",
22 | "6": "",
23 | "7": "",
24 | "8": "",
25 | "9": "",
26 | }
27 | let rplc = `${map}`
28 | .split("")
29 | .map(c => mapping[c] || c)
30 | .join("")
31 | return rplc
32 | }
33 |
34 | let toplamüye = message.guild.memberCount.toString()
35 | let aktifüye =message.guild.members.cache.filter(a => a.presence.status !== 'offline').size
36 | let botlar = message.guild.members.cache.filter(a => a.user.bot).size
37 | let sesaktif = message.guild.members.cache.filter(a => a.voice.channel).size
38 | let boost = message.guild.premiumSubscriptionCount.toString()
39 | let kadınüyesayısı = message.guild.members.cache.filter(a => a.roles.cache.has(datass)).size
40 | let erkeknüyesayısı = message.guild.members.cache.filter(a => a.roles.cache.has(datas)).size
41 | let CS = message.guild.channels.cache.filter(a => a.type == "text").size
42 | let CSS = message.guild.channels.cache.filter(a => a.type == "category").size
43 | let CSSS = message.guild.channels.cache.filter(a => a.type == "voice").size
44 | let tag;
45 | if(!f.tag) {
46 | tag = ' Tag Belirtilmemiş';
47 | } else {
48 | tag = message.guild.members.cache.filter(a => a.user.username.includes(f.tag)).size
49 | }
50 |
51 | message.channel.send(new Discord.MessageEmbed()
52 | .setAuthor(message.guild.name,message.author.avatarURL({dynamic: true}))
53 | .setThumbnail(message.guild.iconURL({dynamic : true, format : "png"}))
54 | .setDescription(`\`\`\`[${p}tag] Taglı Kişi Sayısı için\`\`\``)
55 | .addField(`__Üye Verileri__`,`
56 | Toplam Üye: **${toplamüye}**
57 | Aktif Üye: **${aktifüye}**
58 |
59 | <:erkek:769607582238900254>Erkek Üye: **${erkeknüyesayısı}**
60 | <:kadin:769607582318067723>Kadın Üye: **${kadınüyesayısı}**
61 |
62 | Sesteki Üye: **${sesaktif}**
63 | Boost Sayısı: **${boost}**
64 | Bot Sayısı: **${botlar}**
65 | Tagdaki Üye: **${tag}**
66 |
67 |
68 | `).addField('__Kanal Verileri__',`
69 | <:pack:779357197301317662>Yazı Kanalları: **${CS}**
70 | <:afkly:769202661530140742>Kategori Kanalları: **${CSS}**
71 | <:trash:776811458977464340>Ses Kanalları: **${CSSS}**
72 |
73 | `).setColor('#b41515')
74 |
75 | )
76 |
77 |
78 | }
79 | exports.help = {
80 | name : "say",
81 | aliases : [],
82 | open : true,
83 | perm : "no",
84 | limit : "0"
85 |
86 | }
87 | exports.play = {
88 | usage : "say",
89 | description : "Sunucuyu tarar sayar"
90 | }
--------------------------------------------------------------------------------
/server/K_kullanıcıbilg.js:
--------------------------------------------------------------------------------
1 | const Discord = require("discord.js");
2 |
3 | const moment = require('moment')
4 | require('moment-duration-format')
5 | exports.run = async(client, message, args) => {
6 |
7 | let usere = message.mentions.users.first() || message.guild.members.cache.get(args[0]) || message.author
8 | let user = message.guild.member(usere)
9 | let userK = moment(user.user.createdAt).format(" YYYY / MM / DD - HH:mm:ss")
10 | let userJ = moment(user.joinedAt).format(" YYYY / MM / DD - HH:mm:ss")
11 | const created = new Date().getTime() - user.user.createdAt.getTime();
12 | const userCe = moment.duration(created).format("Y [yıl], D [gün], H [saat], m [dakika], s [saniye]")
13 | const joined = new Date().getTime() - user.joinedAt.getTime();
14 | const userJo = moment.duration(joined).format("Y [yıl], D [gün], H [saat], m [dakika], s [saniye]")
15 |
16 | let ozeldurum = user.presence.activities[0] || 'Özel durumu yok'
17 | const Durum = user.presence.status;
18 | const durum = (Durum == "online" ? ("🟢 Çevrimiçi") : (Durum == "offline" ? ("❔ Çevrimdışı") : (Durum == "idle" ? ("🟡 Boşta") : (Durum == "dnd" ? ("🔴 Rahatsız Etmeyin") : ("bulunamadı.")))))
19 |
20 |
21 | //--------------------------------
22 | const embed2 = new Discord.MessageEmbed()
23 | .setAuthor(user.user.username+' Kişinin Katılım Bilgileri',user.user.avatarURL({dynamic : true, format : "png"}))
24 | .setThumbnail(user.user.avatarURL({dynamic : true, format : "png"}))
25 | .addField('Takma Ad:',user.toString(),true)
26 | .addField('Hesabın Bulunduğu zaman:',userCe,true)
27 | .addField('Hesabın Sunucuya Katılımı:',userJo,)
28 | .addField('Hesabın Kuruluş Tarihi:',userK,)
29 | .addField('Hesabın Sunucuya Giriş Tarihi:',userJ,)
30 | .setFooter(`${message.author.username} tarafından İstendi`,message.author.avatarURL({format : "png", dynamic : true}))
31 | const embed = new Discord.MessageEmbed().setColor(message.member.roles.highest.color)
32 | .setAuthor(user.user.username+' Kişinin Kullanıcı Bilgileri',user.user.avatarURL({dynamic : true, format : "png"}))
33 | .setThumbnail(user.user.avatarURL({dynamic : true, format : "png"}))
34 | .addField('Takma Ad:',user.toString(),true)
35 | .addField('Çevrimiçi Durumu:',durum,true)
36 | .addField('Kimlik', user.id,true)
37 | .addField('Özel Durumu:',ozeldurum.state || "Özel Durum Yok")
38 | .addField('Son mesajı:',user.lastMessage.content,true)
39 | .addField('Son Mesaj Linki:',`[Son Mesaj](${user.lastMessage.url})`,true)
40 | .addField("Oynadığı Oyun:", `${user.presence.game ? user.presence.game.name : 'Oynadığı Bir Oyun Yok'}`)
41 | .addField(`Roller [${user.roles.cache.filter(a => a.name !== '@everyone').size}]`,user.roles.cache.filter(a => a.name !== "@everyone").map(a => `${a}`).join(" ") || "Rolü Yok")
42 | .setFooter(`${message.author.username} tarafından İstendi`,message.author.avatarURL({format : "png", dynamic : true}))
43 |
44 |
45 | message.channel.send(embed).then(async m => {
46 | m.react('◀️').then(r =>{
47 |
48 | const tamam = (reaction,user) => reaction.emoji.name == '◀️' && user.id == message.author.id;
49 | const tamam2 = m.createReactionCollector(tamam)
50 | tamam2.on('collect', async (r)=>{
51 | m.reactions.resolve("◀️").users.remove(message.author);
52 |
53 | m.edit(embed)
54 |
55 | })
56 | })
57 | await m.react('📅').then(r =>{
58 |
59 | const tamam = (reaction,user) => reaction.emoji.name == '📅' && user.id == message.author.id;
60 | const tamam2 = m.createReactionCollector(tamam)
61 |
62 | tamam2.on('collect', async (r)=>{
63 |
64 |
65 | m.reactions.resolve("📅").users.remove(message.author);
66 | m.edit(embed2)
67 | })
68 | })
69 | })
70 | };
71 |
72 |
73 | exports.help = {
74 | name : "kullanıcıbilgi",
75 | aliases : ['kb','kullanıcı-bilgi'],
76 | open : true,
77 | perm : "no",
78 | limit : "0"
79 |
80 | }
81 | exports.play = {
82 | usage : "kb < /@kullanıcı/id>",
83 | description : "Kendiniz veya başkası hakkında bilgi alırsınız."
84 | }
--------------------------------------------------------------------------------
/server/M_nuke.js:
--------------------------------------------------------------------------------
1 | const Discord = require("discord.js");
2 | const open = require('../open.json');
3 | exports.run = async (client, message, args) => {
4 |
5 | let channel4 = message.channel
6 |
7 | channel4.clone({ name :channel4.name}).then(async klon => {
8 |
9 | await klon.setPosition(channel4.position);
10 | if(channel4.topic) {
11 | klon.setTopic(channel4.topic)
12 | }
13 | if(channel4.rateLimitPerUser) {
14 | klon.setRateLimitPerUser(channel4.rateLimitPerUser)
15 | }
16 | await klon.setNSFW(klon.nsfw)
17 | await channel4.delete()
18 | const em = new Discord.MessageEmbed().setDescription('3. Dünya savaşından kalan Atom Bombası Patlatıldı ').setImage('https://cdn.glitch.com/b819e63f-ac6a-40a2-8616-c62ef5027fbe%2Ftenor.gif?v=1603465620438').setColor('#ff7d00')
19 |
20 |
21 | klon.send(em)
22 | })
23 |
24 |
25 | }
26 |
27 | exports.help = {
28 | name : "nuke",
29 | aliases : ['patlat','bumbe'],
30 | open : [true,'Deneme Amaçlıdır.'],
31 | perm : "MANAGE_CHANNELS",
32 | limit : "5"
33 |
34 | }
35 | exports.play = {
36 | usage : "nuke",
37 | description : "Bulunduğunuz kanalı patlatır!"
38 | }
--------------------------------------------------------------------------------
/server/ResimliHgBB.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args, p,db) => {
5 | let ne = args[0]
6 | if(ne == "ayarla"){
7 | let ch = message.mentions.channels.first()||message.guild.channels.cache.get(args[1])
8 | if(!ch || ch.type !== "text")return client.sendFalse(`Resimli **HG BB** Kanalını Ayarlamak İçin Etiketlemelisin`,message.channel)
9 |
10 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {resimli : ch.id}})
11 | client.sendTrue(`Resimli Hg BB kanalı **${ch}** Olarak Ayarlandı`,message.channel)
12 | }else if(ne == "kapat"){
13 | let c = await db.findOne({sunucu : message.guild.id})
14 | if(!c.resimli) return client.sendFalse('Resimli Hg BB zaten ayarlanmamış')
15 |
16 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {resimli : null}})
17 | client.sendTrue(`Resimli **HG BB** Başarıyla Kapatıldı.`,message.channel)
18 | } else{
19 | const resim = new Discord.MessageEmbed().setTitle('Resimli HG BB Sistemi').setURL('https://discord.com/api/oauth2/authorize?client_id=769110620359622676&permissions=8&scope=bot')
20 | .addField(`<:tester:773549663458295818>__${p}resimli-hg-bb ayarla #kanal__`,`Resimli HG BB yi Ayarlamak İçin`)
21 | .addField(`<:tester:773549663458295818>__${p}resimli-hg-bb kapat__`,`Bu Şekilde Kapatabilirsiniz`)
22 | .setFooter('Resimli HG BB Sistem').setColor('#1dffea')
23 | .setImage('https://cdn.discordapp.com/attachments/781191198315905035/781212276363493386/Gorusuruz.png')
24 | message.channel.send(resim)
25 | }
26 | }
27 | exports.help = {
28 | name : "resimli-hg-bb",
29 | aliases : ['resimlihgbb','resimli-hg'],
30 | open : [true],
31 | perm : "no"
32 |
33 | }
34 | exports.play = {
35 | usage : "resimli-hg-bb #kanal",
36 | description : "Resimli Hg Bb kanalları ayarlarsınız"
37 | }
38 |
--------------------------------------------------------------------------------
/server/SAY_Sayaç.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args, p,db) => {
5 | let ne = args[0]
6 | if(ne == "ayarla") {
7 | let kanal = message.mentions.channels.first()||message.guild.channels.cache.get(args[1])
8 | let num = args[2]
9 | if(!kanal || kanal.type !== "text") return client.sendFalse(`Sayaçı Ayarlamak İçin Bir Kanal Etiketlemelisin`,message.channel)
10 | if(isNaN(num)||!num) return client.sendFalse(`Sayaçı Ayarlamak İçin Hedef Üye Sayısını Girmelisin`,message.channel)
11 | if(message.guild.memberCount >= num) return client.sendFalse(`Belirlediğiniz **Hedef** Şuanki Üye Sayısına Eşit Veya Düşük`,message.channel)
12 | if(num > 10000)return client.sendFalse(`Bu **Hedef** Senin İçin İmkansız Gibi Görünüyor `,message.channel)
13 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {"sayac.kanal":kanal.id,"sayac.hedef":num}})
14 | client.sendTrue(`Sayaç Kanalı **${kanal}** Sayaç Hedefi **${num}** Olarak Ayarlandı!`,message.channel)
15 | }else if(ne == "hg") {
16 | let mesaj = args.slice(1).join(" ")
17 | if(!mesaj)return client.sendFalse(`**HG** Mesajını Girmelisin Değişkenlere Bakmak için: **${p}sayaç**`,message.channel)
18 | if(mesaj.length > 500 || mesaj.length < 10) return client.sendFalse(`Min. **10** Max. **500** Karakter Girmelisin`,message.channel)
19 |
20 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {"sayac.hg":mesaj}})
21 | client.sendTrue(`Sayaç **HG** mesajı başarıyla Ayarlandı!\n\n${mesaj}`,message.channel)
22 | } else if(ne == "bb") {
23 | let mesaj = args.slice(1).join(" ")
24 | if(!mesaj)return client.sendFalse(`**BB** Mesajını Girmelisin Değişkenlere Bakmak için: **${p}sayaç**`,message.channel)
25 | if(mesaj.length > 500 || mesaj.length < 10) return client.sendFalse(`Min. **10** Max. **500** Karakter Girmelisin`,message.channel)
26 |
27 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {"sayac.bb":mesaj}})
28 | client.sendTrue(`Sayaç **BB** mesajı başarıyla Ayarlandı!\n\n${mesaj}`,message.channel)
29 | } else if(ne == "embed") {
30 |
31 | let g = await db.findOne({sunucu : message.guild.id})
32 | if(g.sayac.embed == true) {
33 |
34 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {"sayac.embed":false}})
35 | return client.sendTrue(`Sayaç Mesajları Artık Embed Olarak **Atılmayacak**`,message.channel)
36 |
37 | } else if(g.sayac.embed == false) {
38 |
39 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {"sayac.embed":true}})
40 | return client.sendTrue(`Sayaç Mesajları Artık Embed Olarak **Atılacak**`,message.channel)
41 | }
42 |
43 |
44 |
45 | }else if(ne == "kapat"){
46 |
47 | let g = await db.findOne({sunucu : message.guild.id})
48 | if(g.sayac.kanal && g.sayac.hedef) {
49 |
50 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {"sayac.embed":false,"sayac.hedef":null,"sayac.kanal":null,"sayac.hg":null,"sayac.bb":null}})
51 | client.sendTrue(`**Başarıyla Sayaç Verileri Silindi**`,message.channel)
52 | } else {
53 | return client.sendFalse(`Sayaç Zaten Ayarlanmamış`,message.channel)
54 | }
55 |
56 | }else {
57 | const sayaç = new Discord.MessageEmbed().setTitle('Smart Sayaç Sistemi',client.user.avatarURL({dynamic : true})).setURL('https://discord.com/api/oauth2/authorize?client_id=769110620359622676&permissions=8&scope=bot')
58 | .addField(`__${p}sayaç ayarla #kanal __》`,`Sayaç Sisteminin Çalışması İçin Sayaç Kanalı Ve Hedefini Ayarlayın`)
59 | .addField(`__${p}sayaç embed__》`,`Sayaç Mesajı Yanı Renkli Olan Kutulu mu Mesaj mı olsun(\`Normali : "Hayır"\`)`)
60 | .addField(`__${p}sayaç hg __》`,`Sayaç **HG** Mesajını Özelleştirebilirsiniz **Değişkenler Altta**`)
61 | .addField(`__${p}sayaç bb __》`,`Sayaç **BB** Mesajını Özelleştirebilirsiniz **Değişkenler Altta**`)
62 | .addField(`__${p}sayaç kapat__》`,`Sistemi Kapatır Yeniden Ayarlayabilirsiniz`)
63 | .addField(`__Sayaç Mesajı Değişkenler__`,`
64 | > \`{user:etiket}\` Gelen Kullanıcıyı ${message.author} Şeklinde Etiketler **(Sadece HG Mesajında Geçerli)**
65 |
66 | > \`{user:ad}\` Gelen Kullanıcının \`${message.author.username}\` Şeklinde ismi
67 | > \`{user:tag}\` Gelen Kullanıcının \`${message.author.tag}\` Şeklinde Tam İsmi
68 |
69 | > \`{guild:ad}\` Sunucunun \`${message.guild.name}\` Şeklinde adı
70 | > \`{guild:üye}\` Sunucunun \`${message.guild.memberCount}\` Şeklinde Üye sayısı
71 | > \`{guild:hedef}\` Sunucunun \`829\` Şeklinde hedef Üye Sayısı
72 | > \`{guild:kalan}\` Sunucunun \`281\` Şeklinde hedefe Kalan Üye Sayısı
73 | `).addField(`__Ayarlamak için__`,`**\`${p}sayaç hg \`** - **\`${p}sayaç bb \`**`)
74 | .setFooter('Sayaç Sistemi').setColor('#ef00ff')
75 | return message.channel.send(sayaç)
76 | }
77 |
78 | }
79 | exports.help = {
80 | name : "sayaç",
81 | aliases : ['sayaç-sistem'],
82 | open : [true],
83 | perm : "ADMINISTRATOR"
84 |
85 | }
86 | exports.play = {
87 | usage : "sayaç ",
88 | description : "Sayaç Sistemini Ayarlama"
89 | }
90 |
--------------------------------------------------------------------------------
/server/TAG_tag.js:
--------------------------------------------------------------------------------
1 | const Discord = require("discord.js");
2 |
3 | const open = require('../open.json')
4 | exports.run = async(client, message, args,p,data) => {
5 | data.findOne({sunucu : message.guild.id},function(err,docs){
6 | if(args[0] == "ayarla") {
7 | let tag = args[1]
8 | const embed1 = new Discord.MessageEmbed().setDescription(' | Sunucu Tagını Ayarlamam İçin **Tagı** Yazmalısın!').setColor(open.embedFalse)
9 | if(!tag) return message.channel.send(embed1)
10 |
11 | data.findOneAndUpdate({sunucu : message.guild.id},{$set : { tag : tag}},function(err,docs){
12 |
13 | const embed2 = new Discord.MessageEmbed().setDescription(` | Sunucu Tagını Başarıyla **\`${tag}\`** Olarak ayarladım.`).setColor(open.embedTrue)
14 | message.channel.send(embed2)})
15 | } else if(args[0] == "kapat") {
16 | const embed2= new Discord.MessageEmbed().setDescription(' | Sunucu Tagını Sıfırlamam için ilk önce **ayarlanması** lazım!').setColor(open.embedFalse)
17 |
18 | if(!docs.tag) return message.channel.send(embed2)
19 |
20 | data.findOneAndUpdate({sunucu : message.guild.id},{$set : { tag : null}},function(err,docs){
21 |
22 | const embed3 = new Discord.MessageEmbed().setDescription(` | Sunucu Tagını Başarıyla Sıfırladım.`).setColor(open.embedTrue)
23 | message.channel.send(embed3)})
24 | } else {
25 | const embed4 = new Discord.MessageEmbed().setDescription(` | **Geçersiz İşlem**, Lütfen Bir İşlem Girin : \`${p}tag \``).setColor(open.embedFalse)
26 | message.channel.send(embed4)
27 | return
28 | }
29 | })
30 | };
31 |
32 | exports.help = {
33 | name : "tag",
34 | aliases : [],
35 | open : true,
36 | perm : "MANAGE_GUILD",
37 | limit : "0"
38 |
39 | }
40 | exports.play = {
41 | usage : "tag 主",
42 | description : "tag rol Sunucunuzun Tagını ayarlar "
43 | }
--------------------------------------------------------------------------------
/server/_Sıfırla.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js');
2 | const kyt = require('../database/şema/kayıt.js')
3 | exports.run = async(client, message, args,p,data) => {
4 | let guild = message.guild;
5 | message.channel.send('Bunu Yapmak istediğine emin misin(evet ve hayır) Bu işlem Sunucundaki verilerimi tamamen siler')
6 | let uwu = false;
7 | while (!uwu) {
8 | const response = await message.channel.awaitMessages(neblm => neblm.author.id === message.author.id, { max: 1, time: 30000 });
9 | const choice = response.first().content
10 | if (choice == 'hayır' || choice == 'h') return message.channel.send(`**<:noki:748905994188226630> |** İşlem İptal edildi`)
11 | if (choice !== 'evet' && choice !== 'e' && choice !=="hayır"&&choice !=="h") {
12 | message.channel.send(`Lütfen sadece **hayır(h) ve evet(e)**.`)
13 | }
14 | if (choice == 'evet' || choice == 'e') uwu = true
15 | }
16 | if (uwu) {
17 | await kyt.deleteMany({Guild : message.guild.id})
18 | await data.findOneAndDelete({sunucu : message.guild.id})
19 | let yn = new data({
20 | sunucu : message.guild.id
21 | })
22 | await yn.save()
23 |
24 | message.channel.send(`** Bottaki Tüm veriler sıfırlandı **`)
25 |
26 | }
27 |
28 |
29 | }
30 | exports.help = {
31 | name : "sıfırla",
32 | aliases : [''],
33 | open : true,
34 | perm : "owner",
35 |
36 | }
37 | exports.play = {
38 | usage : "sıfırla",
39 | description : "Sunucudaki bot verilerini sıfırlar"
40 | }
--------------------------------------------------------------------------------
/server/_eval.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const ayarlar = require('../open.json');
3 | const tokenuyari = `SyntaxError: Unexpected token`
4 | exports.run = async (client, message, args) => {
5 | if(message.author.id == "573054368568311808" || message.author.id == "667017730259419139") {
6 | if(!args[0]) {
7 |
8 | const embed = new Discord.MessageEmbed()
9 | .setDescription(`\`\`\`fix\nUndefined\`\`\``)
10 | .setColor("#36393F")
11 | message.channel.send({embed})
12 | return
13 | }
14 | const code = args.join(' ');
15 | if (args.includes("client.token")) return message.channel.send('Al sana token : nahalırsın.com');
16 | function clean(text) {
17 | if (typeof text !== 'string')
18 | text = require('util').inspect(text, { depth: 0 })
19 | text = text
20 | .replace(/`/g, '`' + String.fromCharCode(8203))
21 | .replace(/@/g, '@' + String.fromCharCode(8203))
22 | return text;
23 | };
24 |
25 | const evalEmbed = new Discord.MessageEmbed()
26 | try {
27 | var evaled = clean(await eval(code));
28 | if(evaled.startsWith('NTQ3M')) evaled = tokenuyari;
29 | if (evaled.constructor.name === 'Promise') evalEmbed.setDescription(`\`\`\`\n${evaled}\n\`\`\``)
30 | else evalEmbed.setDescription(`\`\`\`js\n${evaled}\n\`\`\``)
31 | const newEmbed = new Discord.MessageEmbed()
32 | .addField('📥 Giriş', `\`\`\`javascript\n${code}\n\`\`\``)
33 | .addField('📤 Çıkış', `\`\`\`js\n${evaled}\`\`\``)
34 | .setColor("#36393F")
35 | message.channel.send(newEmbed);
36 | }
37 | catch (err) {
38 | evalEmbed.addField('Hata çıktı;', `\`\`\`js\n${err}\n\`\`\``);
39 | evalEmbed.setColor("#36393F")
40 | message.channel.send(evalEmbed);
41 | }
42 | }
43 | }
44 | exports.help = {
45 | name : "eval",
46 | aliases : ['dene'],
47 | open : true,
48 | perm : "no",
49 | limit : "0"
50 |
51 | }
52 | exports.play = {
53 | usage : "eval <[kod]>",
54 | description : "Kod dener"
55 | }
--------------------------------------------------------------------------------
/server/_komut.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args, p,db) => {
5 |
6 |
7 |
8 | }
9 | exports.help = {
10 | name : "",
11 | aliases : [''],
12 | open : [true],
13 | perm : "no"
14 |
15 | }
16 | exports.play = {
17 | usage : "",
18 | description : ""
19 | }
--------------------------------------------------------------------------------
/server/_komutbilgi.js:
--------------------------------------------------------------------------------
1 | const discord = require('discord.js')
2 | const open = require('../open.json')
3 | exports.run = async(client, message, args,p) => {
4 | let command = args[0];
5 | let dm;
6 | let dm2;
7 | let dm3;
8 | let cv;
9 |
10 | const embıre = new discord.MessageEmbed()
11 | .setTitle('Komut Bulunamadı.')
12 | .setDescription(`Lütfen bir komut adı giriniz : **${p}komut **`)
13 | .setColor('RED')
14 |
15 | if(!command) return message.channel.send(embıre).then(a => a.delete({timeout : "4000"}))
16 |
17 | if(client.commands.get(command)) {
18 | command = client.commands.get(command)
19 | } else if(client.commands.get(client.aliases.get(command))) {
20 | command = client.commands.get(client.aliases.get(command))
21 | } else {
22 | const embır = new discord.MessageEmbed()
23 | .setTitle('Komut Bulunamadı.')
24 | .setDescription(`\`${args[0]}\` Adında Bir komut Bulamadım`)
25 | .setColor('RED')
26 | message.channel.send(embır).then(a => a.delete({timeout : "4000"}))
27 | }
28 |
29 | if(command.help.open === false) dm = `Kapalı`
30 | if(command.help.open === true) dm = `Açık`
31 | if(command.help.perm) dm2 = `${command.help.perm}`
32 | if(!command.help.perm) dm2 = `Yetki Gerekmiyor`
33 | if(!command.help.aliases) dm3 = `Alternatif Kullanım yok`
34 | if(command.help.aliases) dm3 = `${command.help.aliases.map(a => `${p}${a}`).join(" - ")}`
35 |
36 | if(command.help.pre == true) cv = "#fdff00"
37 | if(!command.help.pre) cv = "#00f6fd"
38 |
39 | const replaced = dm2
40 | .replace('MANAGE_MESSAGES','Mesajları Yönet')
41 | .replace('ADMINISTRATOR','Yönetici')
42 | .replace('MANAGE_CHANNELS','Kanalları Yönet')
43 | .replace('VIEW_AUDIT_LOG','Denetim Kaydını Görüntüle')
44 | .replace('VIEW_GUILD_INSIGHTS','Sunucu Bilgilerini Görüntüle')
45 | .replace('MANAGE_NICKNAMES','Kullanıcı Adlarını Yönet')
46 | .replace('MANAGE_ROLES','Emojileri Yönet')
47 | .replace('MANAGE_WEBHOOKS','WebHookları Yönet')
48 | .replace('MANAGE_EMOJIS','Emojileri Yönet')
49 | .replace('MENTION_EVERYONE','@everyone Pingle')
50 | .replace('owner','Sunucu Sahibi')
51 | .replace('MANAGE_GUILD','Sunucuyu Yönet')
52 | .replace('no','Yetki Gerektirmiyor')
53 | .replace('BAN_MEMBERS','Üyeleri Engelle')
54 | .replace('KİCK_MEMBERS','Üyeleri at')
55 | let e = "https://cdn.discordapp.com/attachments/733962463946473504/764558451342049350/bilgilendirme.png"
56 | const em = new discord.MessageEmbed()
57 | .setAuthor(command.help.name,e)
58 | .setColor(cv)
59 | .addField('Hakkında','**``'+command.play.description+'``**')
60 | .addField('Kullanım','```'+p+command.play.usage+'```')
61 | .addField('Alternatifler','``'+dm3+'``')
62 | .addField('💂 - Hizmet ','``'+dm+'``',true)
63 | .addField('💂 - Gereken Yetki','``'+replaced+'``',true)
64 |
65 | .setFooter(client.commands.size + ' Komuta Sahibim')
66 | return message.channel.send(em)
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 | }
75 | exports.help = {
76 | name : "komut",
77 | aliases : ['komut-bilgi'],
78 | open : true,
79 | perm : "no",
80 | limit : "2"
81 | }
82 | exports.play = {
83 | usage : "örnek-komut",
84 | description : "Örnek bir komut yapısı",
85 | kategori : ""
86 | }
--------------------------------------------------------------------------------
/server/_prefix.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 |
3 | const open = require('../open.json')
4 | exports.run = async (client, message, args,p,data) => {
5 |
6 |
7 | let o = await data.findOne({sunucu : message.guild.id})
8 |
9 | if(args[0] === "ayarla") {
10 |
11 | if(!args[1]) return message.channel.send(new Discord.MessageEmbed()
12 | .setDescription(`**<:noki:769202569410117653> | Prefixi Girmelisin : \`${p}prefix ayarla \` örnek :**`).setImage('https://cdn.glitch.com/b819e63f-ac6a-40a2-8616-c62ef5027fbe%2F0b4b0b25-0cbb-48bd-894d-c9ee0a37d243.image.png?v=1603468414833').setColor(open.embedFalse))
13 | await data.findOneAndUpdate({sunucu : message.guild.id},{ $set : {prefix : args[1]}})
14 | message.channel.send(new Discord.MessageEmbed()
15 | .setDescription(` | Prefix Başarıyla \`${args[1]}\` Olarak Ayarlandı. **${args[1]}yardım**`).setColor(open.embedTrue))
16 | } else if(args[0] === "sıfırla") {
17 | if(!o) {
18 | return message.channel.send(new Discord.MessageEmbed()
19 | .setDescription(` | Ayarlanmayan Prefixi Sıfırlayamazsınız. Şuanki Prefix: ${p}`).setColor(open.embedFalse))
20 | }
21 | await data.findOneAndUpdate({sunucu : message.guild.id},{ $set : {prefix : open.prefix}})
22 | return message.channel.send(new Discord.MessageEmbed()
23 | .setDescription(` | Prefix Başarıyla Sıfırlandı. Şuanki Prefix: s!`).setColor(open.embedTrue));
24 | } else {
25 |
26 | const em = new Discord.MessageEmbed()
27 | .setDescription(` | Prefixi Ayarlamak için \`${p}prefix ayarla \` Yazınız! `).setColor(open.embedFalse)
28 | message.channel.send(em)
29 | }
30 | };
31 |
32 | exports.help = {
33 | name : "prefix",//Komut ADI
34 | aliases : ['p'],//Komutun alternatif kullanımları
35 | open : true,//Komut Kullanıma açık mı kapalı mı
36 | perm : "MANAGE_GUILD",//Komutu kullanacak Perming adını yaz sunucu sahibi ise owner eğer yok ise "no"
37 | limit : "10",
38 | vote : true
39 |
40 | }
41 | exports.play = {
42 | usage : "prefix ",//Komutun kullanımı
43 | description : "Sunucunuza özel prefixinizi değişin"//komutun açıklaması
44 | }
45 |
--------------------------------------------------------------------------------
/server/_yardım.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 | const l = require('../database/şema/begendim.js')
4 | const moment = require('moment')
5 | exports.run = async (client, message, args,p,data) => {
6 |
7 |
8 | let k = args[0]
9 | if(!k){
10 |
11 | const yardım = new Discord.MessageEmbed().setAuthor(`Yardım Menüsü`,client.user.avatarURL()).setTitle('Smart Yardım Menüsü').setURL('https://discord.com/api/oauth2/authorize?client_id=769110620359622676&permissions=8&scope=bot').setDescription(`
12 | **Güncelleme Bota Geçirildi Fakat Haila Komut Eklenecek. Öneriniz varsa Destek Sunucusuna Gelip Bildirebilirsiniz**
13 | `)
14 | .addField(`__<:english:773549662572511253>Bot Komutları__`,`\`${p}yardım bot\``,true)
15 | .addField(`__Kayıt Komutları__`,`\`${p}yardım kayıt\``,true).addField('** **','** **')
16 | .addField(`__Kullanıcı Komutları__`,`\`${p}yardım kullanıcı\``,true)
17 | .addField(`__Moderasyon Komutları__`,`\`${p}yardım moderasyon\``,true).addField('** **','** **')
18 | .addField(`__Prefix Değişmek için__`,`\`${p}prefix ayarla \``,true)
19 | .addField(`__Eksikleri Görmek__`,`\`${p}kontrol kayıt\``,true)
20 | .addField('__<:mahkemeci:773549662988795904>Linkler__',`
21 | <:starr:773549663118688306>[[**Botu Davet Edin!**](https://discord.com/api/oauth2/authorize?client_id=769110620359622676&permissions=8&scope=bot)]
22 | <:starr:773549663118688306>[[**Destek Sunucusu**](${open.link})]
23 | <:starr:773549663118688306>[[**Bota Oyverin!**](https://top.gg/bot/769110620359622676/vote)]
24 | `).setFooter('Smart yardım Menüsü',message.author.avatarURL({dynamic: true}))
25 | .setThumbnail(message.author.avatarURL() ? message.author.avatarURL({dynamic: true}) : 'https://cdn.glitch.com/b819e63f-ac6a-40a2-8616-c62ef5027fbe%2Fregister-and-manage-customer-devices-with-connected-field-service-social.png?v=1603620021292').setColor('#0017ff')
26 | return message.channel.send(yardım)
27 | } else if(k == "kayıt"){
28 | const kayıt = new Discord.MessageEmbed().setTitle('Smart Kayıt Sistemi').setURL('https://discord.com/api/oauth2/authorize?client_id=769110620359622676&permissions=8&scope=bot').setColor('#4800ff')
29 | .setDescription(`
30 | **Botun Rolünü üyelerden Üste Çekmek Sistemin Düzgün Çalışmasını Sağlar**
31 | `)
32 | .addField(`__${p}e-rol @erkek__》`,`\`Kayıt Erkek Rolünü Ayarlama\``)
33 | .addField(`__${p}k-rol @kız__》`,`\`Kayıt Kız rolünü Ayarlama\``)
34 | .addField(`__${p}y-rol @kayıtçı__》`,`\`Kayıt Yetkili Rolünü Ayarlama\``)
35 | .addField(`__${p}ka-rol @kayıtsız __》`,`\`Kayıt Kayıtsız Rolünü Ayarlama\``)
36 | .addField(`__${p}ek-rol @üye__》`,`\`Kayıt Ekstra Verilecek Rol Ayarlama\``)
37 | .addField(`__${p}k-kanal #kayıt__》`,`\`Kayıtların yapılacağı ve Kayıt mesajlarının atılacağı kanal\``)
38 | .addField(`__${p}isim-düzeni [Komutu uygula]__》`,`\`Kayıt Edilen Kişinin İsmini Düzenleme\``)
39 | .addField(`__${p}isim-zorun __》`,`\`Kayıt Edilirken mecburen İsim yaş ile Etme\``)
40 | .addField(`__${p}aktiflik __》`,`\`Kayıtları Sayar ve ${p}profil Komutu İle görebilirsiniz\``)
41 | .addField(`__${p}k-mesaj__》`,`\`Ultra Mega Süper Kayıt mesajı özelleştirme\``)
42 |
43 |
44 | .setImage('https://media.discordapp.net/attachments/766322179205496863/780023942189547540/Kullanmlar.png')
45 | .setFooter('Kayıt komutları',message.author.avatarURL({dynamic :true,format : "png"}))
46 | .setThumbnail(message.author.avatarURL() ? message.author.avatarURL({dynamic: true}) : 'https://cdn.glitch.com/b819e63f-ac6a-40a2-8616-c62ef5027fbe%2Fregister-and-manage-customer-devices-with-connected-field-service-social.png?v=1603620021292');
47 | return message.channel.send(kayıt)
48 | } else if(k == "kullanıcı") {
49 | const kullanıcı = new Discord.MessageEmbed().setTitle('Smart Kullanıcı Komutları').setURL('https://discord.com/api/oauth2/authorize?client_id=769110620359622676&permissions=8&scope=bot').setColor('#4800ff').setDescription(`
50 | \`${p}komut \` : **Komut Hakkında Yardım almak için Yazmanız Yeterlidir.**
51 |
52 | `)
53 | .addField(`\`${p}kb @etiket\`》`,'Kullanıcı Bilgi Komutu',true)
54 | .setFooter('Kullanıcı Komutları',message.author.avatarURL({dynamic :true,format : "png"}))
55 | .setThumbnail(message.author.avatarURL() ? message.author.avatarURL({dynamic: true}) : 'https://cdn.glitch.com/b819e63f-ac6a-40a2-8616-c62ef5027fbe%2Fregister-and-manage-customer-devices-with-connected-field-service-social.png?v=1603620021292');
56 | return message.channel.send(kullanıcı)
57 |
58 | }else if(args[0] == "moderasyon"){
59 | const pre = new Discord.MessageEmbed().setTitle('Smart Moderasyon Komutları').setURL('https://discord.com/api/oauth2/authorize?client_id=769110620359622676&permissions=8&scope=bot').setDescription(`
60 | **Bu Sistemlerin Düzgün Çalışması için Botun Rolünü yetkililerden Üste Çekmek Doğru Fikirdir**
61 | `)
62 | .addField(`__${p}ban-sistem__》`,`Gelişmiş Ban Sistemi Ayarları`,true)
63 | .addField(`__${p}sayaç__》`,`Ayarlamalı Sayaç Sistemi`,true).addField('** **','** **')
64 | .addField(`__${p}otorol__》`,`Botlara Ve Kullanıcılara Verilen Otorol`,true)
65 | .addField(`<:tester:773549663458295818>__${p}resimli-hg-bb__》`,`Resimli Hg Bb Kanalını Ayarlarsınız`,true).addField('** **','** **')
66 | .addField(`<:elmas:779701065997090816>__${p}otoisim__》`,`Otomatik isim Sistemi`,true)
67 | .addField(`<:sagadogru:769202699434459197>__${p}antiraid__》`,`İzin Verilmeyen Botlara Geçiş Yok`,true)
68 | .setFooter('Sunucu Moderasyon İşlemleri',message.author.avatarURL({dynamic: true}) ).setThumbnail(message.author.avatarURL({format : "png",dynamic : true})).setColor('#ff0000')
69 | return message.channel.send(pre)
70 | } else if(args[0] == "bot"){
71 |
72 | const bot = new Discord.MessageEmbed().setTitle('Smart Bot Komutları').setURL('https://discord.com/api/oauth2/authorize?client_id=769110620359622676&permissions=8&scope=bot').setFooter('Bot Komutları').setFooter('Bot komutları',message.author.avatarURL({dynamic :true,format : "png"})) .setThumbnail(message.author.avatarURL({format : "png",dynamic : true})).setColor('BLUE').setDescription(`
73 | \`${p}komut \` : **Komut Hakkında Yardım almak için.**
74 |
75 | `)
76 | .addField(`<:english:773549662572511253>__${p}davet__》`,`Smartın Linklerini Atar`,true)
77 | .addField(`<:english:773549662572511253>__${p}prefix ayarla __》`,`Botun Prefixini Değişebilirsiniz`,true).addField('** **','** **')
78 | .addField(`<:english:773549662572511253>__${p}istatistik__》`,`Botun İstatistiklerini Gösterir`,true)
79 | .addField(`<:english:773549662572511253>__${p}sıfırla__》`,`Sunucudaki Botun Verilerini Sıfırlar`,true).addField('** **','** **')
80 | .addField(`<:english:773549662572511253>__${p}komut __》`,`Botun Komutu Hakkında Bilgi verir`)
81 | return message.channel.send(bot)
82 | }else {
83 | return message.channel.send(new Discord.MessageEmbed().setDescription(` | Geçerli Bir kategori Giriniz: \`${p}yardım\``).setColor(open.embedFalse))
84 | }
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 | }
95 | exports.help = {
96 | name : "yardım",//Komut ADI
97 | aliases : ['y'],//Komutun alternatif kullanımları
98 | open : true,//Komut Kullanıma açık mı kapalı mı
99 | perm : "no",//Komutu kullanacak Perming adını yaz sunucu sahibi ise owner eğer yok ise "no"
100 | pre : false
101 |
102 | }
103 | exports.play = {
104 | usage : "yardım",//Komutun kullanımı
105 | description : "Tüm Komutları Gösterir"//komutun açıklaması
106 | }
107 |
--------------------------------------------------------------------------------
/server/_yaz.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args) => {
5 | if(message.author.id == "573054368568311808" || message.author.id == "667017730259419139") {
6 | let one = args[0]
7 | let args1 = args.slice(1).join(" ")
8 | const embed = new Discord.MessageEmbed().setTitle(one).setDescription(args1).setColor('BLUE')
9 | message.delete()
10 | message.channel.send(embed)
11 | }
12 |
13 |
14 |
15 |
16 |
17 | }
18 | exports.help = {
19 | name : "yaz",
20 | aliases : ['duyuru'],
21 | open : true,
22 | perm : "no",
23 | limit : "0"
24 |
25 | }
26 | exports.play = {
27 | usage : "yaz ",
28 | description : "Sahibe özel Duyuru Komutu"
29 | }
--------------------------------------------------------------------------------
/server/antiraid.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args, p,db) => {
5 |
6 | var ne = args[0]
7 | var f = await db.findOne({sunucu : message.guild.id})
8 | if(ne == "ayar") {
9 |
10 | if(f.anti.raid) {
11 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {"anti.raid":false}})
12 | return client.sendTrue(`**Anti Raid Kapatıldı **`,message.channel)
13 | }
14 | if(!f.anti.raid){
15 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {"anti.raid":true}})
16 | return client.sendTrue(`**Anti Raid Açıldı** Botun Rolünü Üste Almayı Unutmayınız`,message.channel)
17 | }
18 | } else if(ne == "izin") {
19 | if(!f.anti.raid) return message.reply('Anti Raidi Açmalısın...')
20 | var id = args[1]
21 | if(!id) return client.sendFalse(`İşlem Yapılacak Botun ID Girmelisin`,message.channel)
22 | if(isNaN(id) || id.length != 18) return client.sendFalse(`ID Sadece Sayı ve **18** Basamaklıdır`,message.channel)
23 | var kont = f.anti.white.some(id2 => id2 == id)
24 | if(kont){
25 |
26 |
27 | await db.findOneAndUpdate({sunucu : message.guild.id},{$pull : {"anti.white":id}})
28 | client.sendTrue(`\`${id}\` ID li Bot Sunucuya Giriş **İzni Alındı**`,message.channel)
29 | } else {
30 |
31 | await db.findOneAndUpdate({sunucu : message.guild.id},{$push : {"anti.white":id}})
32 | client.sendTrue(`\`${id}\` ID li Bot Sunucuya Giriş **İzni Verildi**`,message.channel)
33 | }
34 | } else if(ne == "log"){
35 | var ch = message.mentions.channels.first() || message.guild.channels.cache.get(args[1])
36 | if(!ch|| ch.type !== "text") return client.sendFalse(`Log Kanalını Ayarlamak İçin Bir Kanal Etiketle`,message.channel)
37 |
38 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {"anti.log":ch.id}})
39 | client.sendTrue(`Anti Raid Log Kanalı ${ch} Olarak Ayarlandı`,message.channel)
40 | }else {
41 | const antiraid = new Discord.MessageEmbed().setTitle('Anti Raid Sistemi').setURL('https://discord.com/api/oauth2/authorize?client_id=769110620359622676&permissions=8&scope=bot')
42 | .setDescription(`Botu Ekleyen Sunucu Sahibi İse Es Geçer\n**Botun Rolünü Üste Alınki İzin Verilmeyen Botları Kickleyebilsin**`)
43 | .addField(`<:sagadogru:769202699434459197>__${p}antiraid ayar__`,`Anti Raid Açıksa Kapar Kapalıysa Açar`)
44 | .addField(`<:sagadogru:769202699434459197>__${p}antiraid izin __`,`Anti Raid Bir Bota İzin Verir Ve Sunucuya Girebilir`)
45 | .addField(`<:sagadogru:769202699434459197>__${p}antiraid log #kanal>__`,`Anti Raid Log Kanalını Ayarlarsınız`)
46 |
47 | .setFooter('Anti Raid Sistemi',message.author.avatarURL({dynamic : true}))
48 | .setColor('#be1313')
49 | if(f.anti.raid){
50 | antiraid.addField(`<:sagadogru:769202699434459197>__İzin Verilen Botlar__:`,`
51 | ${f.anti.white.map(a => `\`${a}\``).join("\n")||"**İzin Verilen Herhangi Bir Bot yok.**"}
52 |
53 | `)
54 | }
55 | message.channel.send(antiraid)
56 | }
57 |
58 | }
59 | exports.help = {
60 | name : "antiraid",
61 | aliases : ['anti-raid'],
62 | open : [true],
63 | perm : "owner"
64 |
65 | }
66 | exports.play = {
67 | usage : "antiraid ",
68 | description : "Anti Raid Sistemi ile Sunucunuza Yabancı Bot Girmesini Önleyin"
69 | }
70 |
--------------------------------------------------------------------------------
/server/otoisim.js:
--------------------------------------------------------------------------------
1 | const Discord = require('discord.js')
2 | const open = require('../open.json')
3 |
4 | exports.run = async(client, message, args, p,db) => {
5 |
6 | let ne = args[0]
7 | if(ne == "ayarla") {
8 | if(!args.slice(1).join(" ")) return client.sendFalse(`Yapılacak İsmi Girmelisin`,message.channel)
9 | if(args.slice(1).join(" ").length > 15) return client.sendFalse(`Max. **19** Karakter Girebilirsin`,message.channel)
10 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {otoisim : args.slice(1).join(" ")}})
11 | client.sendTrue(`Oto İsim başarıyla **${args.slice(1).join(" ")}** Olarak Ayarlandı`,message.channel)
12 | } else if(ne =="kapat"){
13 | let varme = await db.findOne({sunucu : message.guild.id})
14 | if(!varme.otoisim) return client.sendFalse(`Oto İsim Sistemi Zaten Ayarlanmamış`,message.channel)
15 |
16 | await db.findOneAndUpdate({sunucu : message.guild.id},{$set : {otoisim : null}})
17 | client.sendTrue(`Oto İsim başarıyla Kapatıldı`,message.channel)
18 | } else {
19 | const otoisim = new Discord.MessageEmbed().setTitle('Oto İsim Sistemi').setURL('https://discord.com/api/oauth2/authorize?client_id=769110620359622676&permissions=8&scope=bot')
20 | .addField(`<:elmas:779701065997090816>__${p}otoisim ayarla __`,`Oto İsimi Ayarlamak İçin`)
21 | .addField(`<:elmas:779701065997090816>__${p}otoisim kapat__`,`Oto İsimi Kapatmak İçin`)
22 | .addField(`<:elmas:779701065997090816>Değişkenler:`,`
23 | > \`{username}\` Gelen kullanıcının \`${message.author.username}\` Şeklinde Adı
24 |
25 | **Örnek**: \`${p}otoisim ayarla isim | yaş\`
26 |
27 | Gelen Kullanıcının İsmini \`isim | yaş\` yapar
28 | `).setFooter('Oto isim Sistemi').setColor('#15caf1')
29 | message.channel.send(otoisim)
30 | }
31 |
32 |
33 | }
34 | exports.help = {
35 | name : "otoisim",
36 | aliases : ['oto-isim'],
37 | open : [true],
38 | perm : "MANAGE_GUILD"
39 |
40 | }
41 | exports.play = {
42 | usage : "otoisim ",
43 | description : "Sunucuya Gelenlere Otomatik İsim Koyar"
44 | }
45 |
--------------------------------------------------------------------------------
/smart.js:
--------------------------------------------------------------------------------
1 | const { Client, Intents, } = require('discord.js');
2 | const Discord = require('discord.js');
3 | const client = new Client({ ws: { intents: ['GUILDS', 'GUILD_MESSAGES','GUILD_MEMBERS','GUILD_PRESENCES','GUILD_MESSAGE_REACTIONS','GUILD_EMOJIS','GUILD_BANS'] } ,disableMentions : "everyone"});
4 | const open = require('./open.json');
5 | const moment = require('moment');
6 | const fs = require('fs');
7 | const http = require('http')
8 | const express = require('express')
9 | const app = new express()
10 | const data = require('./database/şema/Sunucu.js')
11 | require('events').EventEmitter.prototype._maxListeners = 100;
12 | require('./loader/eventloader.js')(client)
13 | app.get("/", (request, response) => {
14 | console.log(Date.now() + "İstek Alındı ve Proje Ayakta Durdu (Heroku ve Glitch Gibi Platformlar için lazım)");
15 | response.sendStatus(200);
16 | });
17 | app.listen(process.env.PORT || 3000);
18 |
19 |
20 |
21 | client.login(open.token).then(a => {
22 | console.log('Bot Başlatılıyor...')}).catch(a => {
23 | return console.error('Token Yanlış.')
24 | })
25 | const commands = require('./loader/commandloader.js')
26 | commands.run(client)
27 | const dataLoader = require(`./loader/dataLoader.js`)
28 | dataLoader.run(client)
29 | const helper = require('./helpers/clientMethods.js')
30 | helper.start(client,Discord)
31 | const {otoisim,antiraid}= require('./helpers/guildAdd.js')
32 | //-----------------------------------------------------------------------------------
33 | client.on('message', async message => {
34 | if(!open.sahip.includes(message.author.id)) return;
35 | if (message.content === '.katıl') {
36 | client.emit('guildMemberAdd', message.member);
37 | message.channel.send('Katılış Eventi Tetiklendi.')
38 | }
39 | if(!open.sahip.includes(message.author.id)) return;
40 | if (message.content === '.ayrıl') { //
41 | client.emit('guildMemberRemove', message.member);
42 | message.channel.send('Çıkış Eventi Tetiklendi.')
43 | }
44 | });
45 |
46 |
47 |
48 |
49 | //BOT ATILINCA SUNUCU VERİLERİNİ SİLCEK
50 | client.on('guildCreate',async (guild) => {
51 | try {
52 |
53 | const emb = new Discord.MessageEmbed().setTitle('Eklendim')
54 | .addField('Sunucu ID',guild.id).addField('Sunucu Adı',guild.name).addField('Uye sayısı',guild.memberCount)
55 | .addField('Bot Sayısı',guild.members.cache.filter(a => a.user.bot).size)
56 | .addField('Rol sayısı',guild.roles.cache.size)
57 | .addField('Emoji Sayısı',guild.emojis.cache.size,true)
58 | .addField('Owner Ad',guild.owner.user.username).setColor('GREEN')
59 | client.guilds.cache.get(open.destek).channels.cache.get('eklendim atıldım id').send(emb)
60 |
61 | } catch(e) {
62 | console.error(e)
63 | return;
64 | }
65 |
66 |
67 | })
68 | client.on('guildDelete',async (guild) => {
69 | const emb = new Discord.MessageEmbed().setTitle('Atıldım')
70 | .addField('Sunucu ID',guild.id).addField('Sunucu Adı',guild.name).addField('Uye sayısı',guild.memberCount)
71 | .addField('Bot Sayısı',guild.members.cache.filter(a => a.user.bot).size)
72 | .addField('Rol sayısı',guild.roles.cache.size)
73 | .addField('Emoji Sayısı',guild.emojis.cache.size,true)
74 | .addField('Owner Ad',guild.owner.user.username).setColor('RED')
75 | client.guilds.cache.get(open.destek).channels.cache.get('eklendim atıldım id').send(emb)
76 | if(guild){
77 | await data.findOneAndDelete({sunucu : guild.id})
78 | }
79 | })
80 |
81 |
82 |
83 | client.on('guildMemberAdd',async member => {
84 |
85 | let l = await data.findOne({sunucu : member.guild.id})
86 | if(!l)return;
87 | try {
88 | let yetkili = l.Yrol
89 | let kayıtsız = l.Karol
90 | let kayıtkanal = l.Kkanal
91 |
92 | let embed = l.mesaj.embed
93 | let mesaj = l.mesaj.msj,renk = l.mesaj.renk || "RANDOM"
94 | if(yetkili && kayıtsız && kayıtkanal) {
95 | let teyit1 = member.guild.roles.cache.get(yetkili)
96 | let teyit2 = member.guild.channels.cache.get(kayıtkanal)
97 | let teyit4 = member.guild.roles.cache.get(kayıtsız)
98 | if(teyit1 && teyit2 && teyit4) {
99 |
100 | let e;
101 |
102 | var created = new Date().getTime() - member.user.createdAt.getTime();
103 | var kuruluş = moment.duration(created).format("Y [yıl], D [gün], H [saat], m [dakika], s [saniye]")
104 | var kuruluş2 = moment(member.user.createdAt).format("YYYY/MM/DD")
105 |
106 | var ozeldurum = member.user.presence.activities[0] || 'Özel durumu yok'
107 |
108 | var kelimeler = ["Canım Benim Hoşgeldin",'Ahh Uzak Diyarlardan geldin','Adamın dibisin sen ya','Gelmene Çok sevindim','Kimler Gelmiş Bakıyorum','hoppp Reiz Hoşgeldin']
109 | var kelimelerc = kelimeler[Math.floor(Math.random() * 6)]
110 |
111 | var milisaniye = '2592000000'//15 gün
112 | if(created > milisaniye) e = `Güvenilir`
113 | if(created < milisaniye) e = `Tehlikeli`
114 |
115 | const mapping = {
116 | " ": " ",
117 | "0": "",
118 | "1": "",
119 | "2": "",
120 | "3": "",
121 | "4": "",
122 | "5": "",
123 | "6": "",
124 | "7": "",
125 | "8": "",
126 | "9": "",
127 | }
128 | let rplc = `${member.guild.memberCount.toString()}`
129 | .split("")
130 | .map(c => mapping[c] || c)
131 | .join("")
132 | if(teyit2) {
133 |
134 | let msj;
135 | if(mesaj) msj = mesaj.
136 | replace('{user:etiket}',member).
137 | replace('{user:ad}',member.user.username).
138 | replace('{user:hastag}',member.user.discriminator).
139 | replace('{user:id}',member.id).
140 | replace('{user:kuruluş}',kuruluş2).
141 | replace('{user:kuruluş2}',kuruluş).
142 | replace('{user:tehlike}',e).
143 | replace('{user:durum}',ozeldurum.state || "Özel Durumu yok").
144 | replace('{guild:ad}',member.guild.name).
145 | replace('{guild:üye}',member.guild.memberCount).
146 | replace('{guild:üye2}',rplc).
147 | replace('{guild:yetkili:id}',teyit1.id).
148 | replace('{guild:yetkili:name}',teyit1.name).
149 | replace('{guild:yetkili:etiket}',teyit1).
150 | replace('{guild:kayıtsız:id}',teyit4.id).
151 | replace('{guild:kayıtsız:name}',teyit4.name).
152 | replace('{guild:kayıtsız:etiket}',teyit4).
153 | replace('{random}',kelimelerc)
154 | else msj = `
155 |
156 | | ${member},**${kelimelerc}**
157 |
158 | | Seninle Beraber \`${member.guild.memberCount}\` Kişiyiz
159 |
160 | | Kayıt Olmak İçin İsim ve Yaşını Yazman yeterli!
161 |
162 | | **Kuruluş : \`${kuruluş}\`**
163 |
164 | | __**Birazdan <@&${yetkili}> Rolündekiler Seni kayıt edecektir!**__
165 |
166 | <:user:773549662875287563> | **Bu kullanıcı ${e}!**
167 |
168 | `
169 | if(embed) {
170 | const embed = new Discord.MessageEmbed().setAuthor(member.user.username)
171 | if(l.mesaj.gif){
172 | embed.setImage(l.mesaj.gif)
173 | } else {
174 | embed.setThumbnail(member.user.avatarURL({dynamic : true}))
175 | }
176 | embed.setDescription(msj).setColor(renk)
177 | await teyit2.send(`${teyit1}`).then(a => a.delete())
178 | teyit2.send(embed)
179 | } else if(!embed) {
180 | teyit2.send(msj)
181 | }
182 | }
183 |
184 | }
185 | }
186 |
187 | } catch(e) {
188 | console.error(e)
189 |
190 | }
191 | let sayac = l.sayac
192 | if(sayac.kanal && sayac.hedef) {
193 | let channel = member.guild.channels.cache.get(sayac.kanal)
194 | if(channel){
195 | let hgmsj;
196 | let kalan = sayac.hedef - member.guild.memberCount
197 | if(sayac.hg) hgmsj = sayac.hg
198 | .replace('{guild:kalan}',kalan)
199 | .replace('{user:etiket}',member)
200 | .replace('{guild:üye}',member.guild.memberCount)
201 | .replace('{guild:hedef}',sayac.hedef)
202 | .replace('{guild:ad}',member.guild.name)
203 | .replace('{user:ad}',member.user.username)
204 | .replace('{user:tag}',member.user.tag)
205 |
206 | else hgmsj = `
207 | ╔▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
208 | ║ ${member}, Sunucuya Katıldı
209 | ║ **${sayac.hedef}** Kişi Olmamıza **${kalan}** Kişi Kaldı
210 | ║ Toplam **${member.guild.memberCount}** Kişi Olduk
211 | ╚▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬`
212 | if(member.guild.memberCount >= sayac.hedef) {
213 | channel.send(`${member}, Hedefe Ulaştık! **${sayac.hedef}** Kişi olduk, \`Sayaç Verileri Sıfırlandı\` Yeniden Ayarlayınız.`)
214 | await data.findOneAndUpdate({sunucu : member.guild.id},{$set : {"sayac.embed":false,"sayac.hedef":null,"sayac.kanal":null,"sayac.hg":null,"sayac.bb":null}})
215 |
216 | }
217 |
218 | if(sayac.embed == true) {
219 | channel.send(new Discord.MessageEmbed().setDescription(hgmsj).setColor('#00ff11'))
220 | } else {
221 | channel.send(hgmsj)
222 | }
223 |
224 | }
225 | }
226 | if(member.user.bot && l.otoroll.bot) {
227 | member.roles.add(l.otoroll.bot)
228 | } else if(!member.user.bot && l.otoroll.user) {
229 | member.roles.add(l.otoroll.user)
230 | }
231 | if(l.resimli){
232 | let ch = member.guild.channels.cache.get(l.resimli)
233 | if(ch){
234 | const canv = require('discord-canvas')
235 |
236 |
237 | const resim = await new canv.Goodbye()
238 | .setUsername(member.user.username)
239 | .setDiscriminator(member.user.discriminator)
240 | .setMemberCount(member.guild.memberCount)
241 | .setGuildName(member.guild.name)
242 | .setAvatar(member.user.avatarURL({format : "jpg"}))
243 | .setColor("border", "#0c0ff0")
244 | .setColor("username-box", "#0c0ff0")
245 | .setColor("discriminator-box", "#0c0ff0")
246 | .setColor("discriminator", "#23e9b5")
247 | .setColor('username','#23e9b5')
248 | .setColor('hashtag','#09ff00')
249 | .setColor('title-border','#0e0c0c')
250 | .setColor("message-box", "#0c0ff0")
251 | .setColor('message','#b6bb1a')
252 | .setColor("title", "#0c0ff0")
253 | .setColor('member-count','#0e0c0c')
254 | .setColor("avatar", "#0c0ff0")
255 | .setBackground("https://cdn.discordapp.com/attachments/781089989781094410/781182296375033876/unnamed.jpg")
256 | .setText("title","Hosgeldin")
257 | .setText("message","{server} Sunucusuna KatIldI!")
258 | .setText("member-count","{count} Üye Olduk!")
259 | .toAttachment();
260 | var att = new Discord.MessageAttachment(resim.toBuffer(),"Hosgeldin.png")
261 | ch.send(att)
262 |
263 | }
264 | }
265 |
266 | otoisim(l,member)
267 | if(member.user.bot){
268 | await antiraid(l,member,member.guild)
269 | }
270 | })
271 | client.on('guildMemberRemove',async member => {
272 |
273 | let l = await data.findOne({sunucu : member.guild.id})
274 | if(!l)return;
275 | const canv = require('discord-canvas')
276 | if(l.resimli){
277 | let ch = member.guild.channels.cache.get(l.resimli)
278 | if(ch){
279 | const resim = await new canv.Goodbye()
280 | .setUsername(member.user.username)
281 | .setDiscriminator(member.user.discriminator)
282 | .setMemberCount(member.guild.memberCount)
283 | .setGuildName(member.guild.name)
284 | .setAvatar(member.user.avatarURL({format : "jpg"}))
285 | .setColor("border", "#ff0702")
286 | .setColor("username-box", "#ff0702")
287 | .setColor("discriminator-box", "#ff0702")
288 | .setColor("discriminator", "#23e9b5")
289 | .setColor('username','#23e9b5')
290 | .setColor('hashtag','#09ff00')
291 | .setColor('title-border','#0e0c0c')
292 | .setColor("message-box", "#ff0702")
293 | .setColor('message','#b6bb1a')
294 | .setColor("title", "#ff0702")
295 | .setColor('member-count','#0e0c0c')
296 | .setColor("avatar", "#ff0702")
297 | .setBackground("https://cdn.discordapp.com/attachments/781089989781094410/781182296375033876/unnamed.jpg")
298 | .setText("title","Görüsürüz")
299 | .setText("message","{server} Sunucusundan AyrIldI!")
300 | .setText("member-count","{count} Üye KaldIk")
301 | .toAttachment();
302 | var att = new Discord.MessageAttachment(resim.toBuffer(),"Gorusuruz.png")
303 | ch.send(att)
304 | }
305 | }
306 | let sayac = l.sayac
307 | if(sayac.kanal && sayac.hedef) {
308 | let channel = member.guild.channels.cache.get(sayac.kanal)
309 | if(!channel)return;
310 | let kalan = sayac.hedef - member.guild.memberCount
311 | let hgmsj;
312 | if(sayac.bb) hgmsj = sayac.bb
313 | .replace('{guild:kalan}',kalan)
314 | .replace('{guild:üye}',member.guild.memberCount)
315 | .replace('{guild:hedef}',sayac.hedef)
316 | .replace('{guild:ad}',member.guild.name)
317 | .replace('{user:ad}',member.user.username)
318 | .replace('{user:tag}',member.user.tag)
319 |
320 | else hgmsj = `
321 | ╔▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
322 | ║ **\`${member.user.tag}\`**, Sunucudan Ayrıldı
323 | ║ **${sayac.hedef}** Kişi Olmamıza **${kalan}** Kişi Kaldı
324 | ║ Toplam **${member.guild.memberCount}** Kişi Kaldık
325 | ╚▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
326 | `
327 |
328 |
329 | if(sayac.embed == true) {
330 | channel.send(new Discord.MessageEmbed().setDescription(hgmsj).setColor('#ff0000'))
331 | } else {
332 | channel.send(hgmsj)
333 | }
334 | }
335 |
336 | })
337 |
338 |
339 |
340 |
341 |
342 |
--------------------------------------------------------------------------------