forked from Venom235/ElecusBot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathk-erkek-rol.js
53 lines (48 loc) · 1.96 KB
/
k-erkek-rol.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
const discord = require('discord.js')
const db = require('quick.db')
exports.run = async(client, message, args) => {
if (!message.member.hasPermission("ADMINISTRATOR")) return message.channel.send(`<a:by:752306236606906399> Bu komutu kullanabilmek için "\`yönetici\`" yetkisine sahip olmalısın`);
if(args[0] === "sıfırla") {
const sıfırlandı = new discord.MessageEmbed()
.setAuthor(client.user.username, client.user.avatarURL)
.setTitle(`${client.user.username} - Erkek Rol Sıfırla `)
.setColor('BLACK')
.setDescription(`<a:hg:752305081545916438> Sunucu İçin Ayarladığınız Erkek Rolü Başarıyla Sıfırlandı !`)
.setThumbnail(client.user.avatarURL)
.setFooter(`Komut ${message.author.tag} Tarafından Kullanıldı ! `)
message.channel.send(sıfırlandı)
db.delete(`erkekrol_${message.guild.id}`)
return;
}
let rol = message.mentions.roles.first();
if (!rol) {
const ayarlanmadı = new discord.MessageEmbed()
.setAuthor(client.user.username, client.user.avatarURL())
.setTitle(`${client.user.username} - Erkek Rol Ayarla `)
.setColor('BLACK')
.setDescription(`<a:by:752306236606906399> Ayarlayacağınız Erkek Rolünü Belirtiniz ! `)
.setThumbnail(client.user.avatarURL)
.setFooter(`Komut ${message.author.tag} Tarafından Kullanıldı ! `)
message.channel.send(ayarlanmadı)
}
db.set(`erkekrol_${message.guild.id}`, rol.id)
const ayarlandı = new discord.MessageEmbed()
.setAuthor(client.user.username, client.user.avatarURL())
.setTitle(`${client.user.username} - Erkek Rol Ayarlandı `)
.setColor('BLACK')
.setDescription(`<a:hg:752305081545916438> Erkek Rolü Başarıyla ${rol} Olarak Ayarlandı ! `)
.setThumbnail(client.user.avatarURL)
.setFooter(`Komut ${message.author.tag} Tarafından Kullanıldı ! `)
message.channel.send(ayarlandı)
}
exports.conf = {
enabled: true,
guildonly: false,
aliases: ['erkekrol', 'erol', 'e-rol'],
permlevel: 0
}
exports.help = {
name: 'erkek-rol',
description: 'erkek rolünü ayarlar',
usage: '!erkek-rol @rol'
}