// Main Dosya const Discord = require('discord.js') const db = require('quick.db') client.on("messageDelete", async(message) => { let mesajLog = "" if(message.author.bot) return; const gdb = new db.table(`genel`) gdb.set(`snipe.${message.guild.id}.snipe.mesajCreator`, message.author.id) gdb.set(`snipe.${message.guild.id}.snipe.mesaj`, message.content) gdb.set(`snipe.${message.guild.id}.snipe.zaman`, Date.now()) let interface = new Discord.MessageEmbed().setColor('RANDOM').setFooter(settings.bot.botFooter).setTimestamp() client.channels.cache.get(mesajLog).send(interface.setDescription( ` **${message.channel.name}** (\`${message.channel.id}\`) isimli kanalda bir mesaj silindi! __**Mesaj Analizi**__ Mesaj Yazarı: ${message.member} **(\`${message.author.id}\`)** > **${message.content}** ` )) }) // Komut Dosyası const Discord = require('discord.js') const client = new Discord.Client() const db = require('quick.db') const gdb = new db.table('genel') const moment = require('moment') require('moment-duration-format') moment.locale('tr') module.exports.run = async(client, message, args) => { if(!message.guild) return; let snipes = gdb.get(`snipe.${message.guild.id}.snipe`) || "Herhangi birşey bulunamadı!" if(snipes){ let snipesTime = gdb.get(`snipe.${message.guild.id}.snipe.zaman`) || [] let snipesCreator = gdb.get(`snipe.${message.guild.id}.snipe.mesajCreator`) || [] let snipesContent = gdb.get(`snipe.${message.guild.id}.snipe.mesaj`) || "Mesaj bulunamadı!" let snipesTimeZone = Date.now() - snipesTime const yenisEmbed = new Discord.MessageEmbed() .setTitle(`Silinen Mesaj`) .setDescription( ` __Mesaj Yazarı:__ <@${snipesCreator}> **(\`${snipesCreator}\`)** __Mesaj Silinme Zamanı:__ **${moment.duration(snipesTimeZone).format(`h [Saat], m [Dakika], s [Saniye]`)}** önce. > ${snipesContent} ` ) .setColor("RANDOM") .setFooter(settings.bot.botFooter, client.user.avatarURL()) .setTimestamp() message.channel.send(yenisEmbed) } } exports.config = { name: 'Snipe', aliases: ['snipe'], guildOnly: true, enabled: true }