Skip to content
Snippets Groups Projects
Commit f6f5f490 authored by Reviath's avatar Reviath
Browse files

Update commands/istatistik.js, commands/id.js, commands/icon.js,...

Update commands/istatistik.js, commands/id.js, commands/icon.js, commands/eğlence.js, commands/diğer.js, commands/desteksunucusu.js, commands/davetoluştur.js, commands/davet.js, commands/ban.js, commands/alkış.js, commands/add-emote.js, commands/kick.js files
parent c2dde55b
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ exports.run = async (client, message, args, connection) => {
});
}
)}
};
}};
module.exports.help = {
name: "add-emoji",
......
......@@ -17,7 +17,7 @@ exports.run = function(client, message, args, connection) {
.setImage("https://cdn.discordapp.com/attachments/782955123974078474/783057880978686022/AoJR1dBsZw.gif")
message.channel.send(embed2)
}
};
}};
module.exports.help = {
name: 'alkış',
aliases: ['clap']
......
......@@ -32,7 +32,7 @@ exports.run = async(client, message, args, connection) => {
});
await message.channel.send(`<@${user.id}> banned with reason: \`${reason}\` \nModerator: <@${message.author.id}>`);
}
};
}};
module.exports.help = {
name: 'ban',
......
......@@ -17,7 +17,7 @@ exports.run = (client, message, args, connection) => {
.addField(`My Links`, `[Invite Link](https://discordapp.com/oauth2/authorize?client_id=771043242242342962&scope=bot&permissions=8) \n[My Server](https://discord.gg/NCzZdB9Etf) \n[Vote Link](https://top.gg/bot/771043242242342962/vote)`)
message.channel.send(embed);
}
};
}};
module.exports.help = {
name: 'davet',
aliases: ['invite']
......
......@@ -19,7 +19,7 @@ exports.run = (client, message, args) => {
.setDescription(`[Server's invite link](${invite})`);
message.channel.send(embed);
}
}
}};
module.exports.help = {
name: 'davet-oluştur',
aliases: ['davetoluştur']
......
......@@ -18,8 +18,8 @@ exports.run = async (client, message, connection, args) => {
.addField("Links", `[Our Guild](https://discord.gg/NCzZdB9Etf) \n[Invite Link](https://discordapp.com/oauth2/authorize?client_id=771043242242342962&scope=bot&permissions=8)`)
message.channel.send(yardım2)
}
};
}};
module.exports.help = {
name: 'destek-sunucusu',
aliases: ['desteksunucusu']
aliases: ['desteksunucusu','help-server']
};
......@@ -34,7 +34,7 @@ exports.run = (client, message, connection) => {
.setImage('https://cdn.discordapp.com/attachments/776161964035670016/777243293264248892/Weasht.gif')
message.channel.send(embedyardim2);
}
};
}};
module.exports.help = {
name: 'diğer',
aliases: ['yardım-diğer']
......
......@@ -40,7 +40,7 @@ exports.run = (client, message, connection) => {
.setImage('https://cdn.discordapp.com/attachments/776161964035670016/777243293264248892/Weasht.gif')
message.channel.send(embedyardim);
}
};
}};
module.exports.help = {
name: 'eğlence',
aliases: ['yardım-eğlence','fun','help-fun']
......
......@@ -22,7 +22,7 @@ exports.run = function(client, message, connection) {
client.channels.cache.get('790640302452375562').send(`Error on icon command \n${e}`)
});
}
};
}};
module.exports.help = {
name: 'icon',
aliases: []
......
......@@ -13,7 +13,7 @@ exports.run = async (client, message, connection) => {
client.channels.cache.get('790640302452375562').send(`Error on id command \n${e}`)
});
}
};
}};
module.exports.help = {
name: 'id',
aliases: []
......
......@@ -47,7 +47,7 @@ exports.run = async (client, message, args, connection) => {
client.channels.cache.get('790640302452375562').send(`Error on stats command \n${e}`)
});
}
};
}};
module.exports.help = {
name: 'istatistik',
aliases: ['i','stats']
......
const Discord = require('discord.js');
exports.run = async(client, message, args) => {
var sql = `SELECT dil FROM guilds WHERE guildid='${guildid}'`;
connection.query(sql, function (err, result) {
if(result == "tr"){
if (!message.member.hasPermission('KICK_MEMBERS')) return [message.channel.send(`Yeterli yetkiye sahip değilsin`)];
let user = message.guild.member(message.mentions.users.first() || message.guild.members.cache.get(args[0]));
......@@ -17,8 +20,26 @@ exports.run = async(client, message, args) => {
await user.kick({reason: reason}).catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on kick command \n${e}`)
});
} else {
if (!message.member.hasPermission('KICK_MEMBERS')) return [message.channel.send(`You don't have enough permisison`)];
let user = message.guild.member(message.mentions.users.first() || message.guild.members.cache.get(args[0]));
let reason = args.slice(1).join(' ');
if(!user) return message.channel.send('You need mention someone to kick');
if(!reason) {
reason = "Unspecified"
};
if (!message.guild.member(user).kickable) return message.reply(`I don't have enough permisison`);
await message.channel.send(`<@${user.id}> has been kicked with reason: \`${reason}\` \nModerator <@${message.author.id}>`);
await user.kick({reason: reason}).catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on kick command \n${e}`)
});
}});
};
module.exports.help = {
name: 'kick',
aliases: []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment