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

Update commands/alkış.js

parent 3124a9e4
No related branches found
No related tags found
No related merge requests found
const Discord = require('discord.js'); const Discord = require('discord.js');
exports.run = function(client, message, args) { exports.run = function(client, message, args) {
var sql = `SELECT dil FROM guilds WHERE guildid='${guildid}'`;
connection.query(sql, function (err, result) {
if(result == "tr"){
const embed = new Discord.MessageEmbed() const embed = new Discord.MessageEmbed()
.setTitle("Alkış 👏👏👏") .setTitle("Alkış 👏👏👏")
.setAuthor(message.author.username, message.author.avatarURL()) .setAuthor(message.author.username, message.author.avatarURL())
.setColor("RANDOM") .setColor("RANDOM")
.setImage("https://cdn.discordapp.com/attachments/782955123974078474/783057880978686022/AoJR1dBsZw.gif") .setImage("https://cdn.discordapp.com/attachments/782955123974078474/783057880978686022/AoJR1dBsZw.gif")
message.channel.send(embed); message.channel.send(embed);
} else {
const embed2 = new Discord.MessageEmbed()
.setTitle("Clap 👏👏👏")
.setAuthor(message.author.username, message.author.avatarURL())
.setColor("RANDOM")
.setImage("https://cdn.discordapp.com/attachments/782955123974078474/783057880978686022/AoJR1dBsZw.gif")
message.channel.send(embed2)
}
}; };
module.exports.help = { module.exports.help = {
name: 'alkış', name: 'alkış',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment