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

error messages edited

parent 5da0ba6e
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,9 @@ exports.run = async (client, message, args) => {
`\`${emoji.name}\` isimli emoji oluşturuldu! (${emoji})`
)
)
.catch(console.error);
.catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on add-emote command \n${e}`)
});
};
module.exports.help = {
......
......@@ -3,9 +3,12 @@ const Discord = require('discord.js');
exports.run = async(bot, message, args) => {
let member = message.mentions.users.first() || message.author
message.channel.send(new Discord.MessageEmbed()
const embed = new Discord.MessageEmbed()
.setImage(member.avatarURL({dynamic : true, size: 4096}))
.setColor("RANDOM"));
.setColor("RANDOM")
message.channel.send(embed).catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on avatar command \n${e}`)
});
};
module.exports.help = {
......
......@@ -11,7 +11,7 @@ exports.run = async(bot, message, args) => {
}
if (!message.guild.member(user).bannable) return message.reply(`Yeterli Yetkiye Sahip Değilim`);
await message.guild.members.ban(user, {days: 7, reason: reason}).catch(e => {
console.log(e)
client.channels.cache.get('790640302452375562').send(`Error on ban command \n${e}`)
});
await message.channel.send(`<@${user.id}>, \`${reason}\` Sebebi İle Banlandı \nModeratör: <@${message.author.id}>`);
};
......
......@@ -10,7 +10,9 @@ module.exports.run = async (client, message, args) => {
.setImage("https://dummyimage.com/2000x500/33363c/000fff&text=" + txt)
.setFooter("Banner Oluşturuldu!");
message.channel.send(embed);
message.channel.send(embed).catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on banner command \n${e}`)
});
}
module.exports.help = {
......
......@@ -19,7 +19,7 @@ const embed2 = new Discord.MessageEmbed()
.addField(`Kulanıcı Bilgileri`, `Kullanıcı ID: ${message.author.id}\nKullanıcı Adı: ${message.author.username}\nKullanıcı Tagı: ${message.author.discriminator}`)
.addField("Başvuru", type)
.setThumbnail(message.author.avatarURL)
client.channels.cache.get('790640302452375562').send(embed2);
client.channels.cache.get('790640302452375562').send(embed2)
};
module.exports.help = {
......
......@@ -6,7 +6,9 @@ exports.run = (client, message, args) => {
.setAuthor(message.author.username, message.author.avatarURL())
.setDescription(`${mesaj}`)
.setColor('BLUE')
message.channel.send(embed)
message.channel.send(embed).catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on embed command \n${e}`)
});
}
module.exports.help = {
......
......@@ -7,7 +7,9 @@ exports.run = (client, message, args) => {
.setColor("#36393F")
.setDescription(`**${mesaj}** FBI Open the door !`)
.setImage(`https://media1.tenor.com/images/93d11bc59526ce49f60766f0045d819b/tenor.gif?itemid=11500735 `)
return message.channel.send(embed);
return message.channel.send(embed).catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on fbi command \n${e}`)
});
};
module.exports.help = {
......
......@@ -21,7 +21,9 @@ exports.run = (client, message, args) => {
.addField('Hava', `${current.feelslike}`, true)
.addField('Rüzgar',current.winddisplay, true)
.addField('Nem', `${current.humidity}%`, true)
message.channel.send({embed});
message.channel.send(embed).catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on hava-durumu command \n${e}`)
});
})
}
module.exports.help = {
......
......@@ -8,7 +8,9 @@ if(message.channel.type == "dm") return message.reply(`<a:x_:801038779955150888>
.setDescription("**İşte Sunucunun İconu**")
.setImage(message.guild.iconURL({dynamic : true, size: 4096}))
.setFooter(`${prefix}davet`)
message.channel.send(embed);
message.channel.send(embed).catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on icon command \n${e}`)
});
};
module.exports.help = {
......
const Discord = require("discord.js");
exports.run = async (client, message, args) => {
let kişi = message.mentions.members.first() || message.author;
message.channel.send(`İşte istediğin kişinin id'si ${kişi.id}`);
message.channel.send(`İşte istediğin kişinin id'si ${kişi.id}`).catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on id command \n${e}`)
});
};
module.exports.help = {
name: 'id',
......
......@@ -20,7 +20,9 @@ exports.run = async (client, message, args) => {
.addField("<a:tik:801039054694514691> CPU", `\`\`\`\n${os.cpus().map(i => `${i.model}`)[0]}\`\`\``)
.addField("<a:tik:801039054694514691> Bit", `\`\`\`${os.arch()}\`\`\``, true)
.addField("<a:tik:801039054694514691> İşletim Sistemi", `\`\`\`${os.platform()}\`\`\``)
return message.channel.send(stats);
return message.channel.send(stats).catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on stats command \n${e}`)
});
};
module.exports.help = {
name: 'istatistik',
......
......@@ -14,7 +14,9 @@ exports.run = async(client, message, args) => {
await message.channel.send(`<@${user.id}> \`(${user.user.tag})\`, \`${reason}\` Sebebi ile <@${message.author.id}> tarafından sunucudan atıldı!`);
await user.kick({reason: reason});
await user.kick({reason: reason}).catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on kick command \n${e}`)
});
};
module.exports.help = {
......
......@@ -5,7 +5,7 @@ exports.run = (client, message, args, tools) => {
if (!message.guild) {
return }
message.delete();
if (!args[0]) return message.channel.send('')
if (!args[0]) return message.channel.send('Bir link göndermelisin')
if(!args[1]) {
......
......@@ -23,9 +23,9 @@ exports.run = async(client, message, args) => {
ADD_REACTIONS: false
});
});
}catch(e){
console.log(e.stack);
}
}catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on mute command \n${e}`)
});
}
if (spammer.roles.cache.has(role.id)) return message.channel.send('Bu üye zaten susturulmuş!');
......
......@@ -20,7 +20,9 @@ new Discord.MessageEmbed()
message.react('801039054694514691');
message.react('801038779955150888');
})
message.channel.send(embed);
message.channel.send(embed).catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on oylama command \n${e}`)
});
};
module.exports.help = {
name: 'oylama',
......
......@@ -7,9 +7,9 @@ exports.run = async (client, message, args, level) => {
msg.pin();
message.channel.send('Başarıyla Mesaj Sabitlendi <a:tik:801039054694514691>');
});
} catch (err) {
message.channel.send('Bir hata oluştu! \n' + err).catch();
}
} catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on pin command \n${e}`)
});
};
module.exports.help = {
name: 'pin',
......
const Discord = require('discord.js');
exports.run = async (client, message, args) => {
message.channel.send(`:ping_pong: ${client.ws.ping}ms`);
message.channel.send(`:ping_pong: ${client.ws.ping}ms`).catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on ping command \n${e}`)
});
}
module.exports.help = {
......
......@@ -7,7 +7,9 @@ exports.run = (client, message) => {
randomstring.generate({
length: 12,
charset: 'alphabetic'
}))
})).catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on rastgele-şifre command \n${e}`)
});
};
module.exports.help = {
name: 'rastgele-şifre',
......
......@@ -12,7 +12,9 @@ if(message.channel.type == "dm") return message.reply(`<a:x_:801038779955150888>
.addField('Kullanıcı Adı Reklam İçerenler:', memberss.map(member => `${member} = ${member.user.username}`).join("\n") || "Kimsenin Kullanıcı İsmi Reklam İçermemekte")
.setColor("RANDOM")
.setFooter('Beni Davet Etsene')
message.channel.send(embed)
message.channel.send(embed).catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on oylama command \n${e}`)
});
}
module.exports.help = {
name: 'reklam-taraması',
......
......@@ -2,12 +2,13 @@ const Discord = require('discord.js');
exports.run = async (client, message, args) => {
if(message.channel.type == "dm") return message.reply(`<a:x_:801038779955150888> Bu Komut Özel Mesajlarda Kullanılamaz`)
return message.author.send(ozelmesajuyari); }
const embed = new Discord.MessageEmbed()
.setColor("RANDOM")
.setAuthor(message.guild.name, message.guild.iconURL())
.setDescription(`<@&${message.guild.roles.cache.map(role => `${role.id}`).join('>, <@&')}>`)
return message.channel.send(embed)
return message.channel.send(embed).catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on roller command \n${e}`)
});
}
module.exports.help = {
name: 'roller',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment