text: const ayarlar = require('../ayarlar.json');
  const db = require('quick.db')
  const database = require('quick.db')
  let talkedRecently = new Set();
  
  module.exports = message => {
    
    let prefixes = ["magic", "bee"]; 
  let prefix2 = "m!"; 
  for (var i = 0; i < prefixes.length; i++) { 
  if (message.content.startsWith(prefixes[i])) prefix2 = prefixes[i]; 
  } 
    
      let prefix;
    
    if (db.has(`prefix_${message.guild.id}`) === true) {
      prefix = db.fetch(`prefix_${message.guild.id}`)
    }
      
    if (db.has(`prefix_${message.guild.id}`) === false) {
      prefix = ayarlar.prefix
    }
    
    if (talkedRecently.has(message.author.id)) {
      return;
    }
    talkedRecently.add(message.author.id);
  	setTimeout(() => {
      talkedRecently.delete(message.author.id);
    }, 2500);
    let client = message.client;
    if (message.author.bot) return;
    if (!message.content.startsWith(ayarlar.prefix)) return;
    let command = message.content.split(' ')[0].slice(ayarlar.prefix.length);
    let params = message.content.split(' ').slice(1);
    let perms = client.elevation(message);
    let cmd;
    if (client.commands.has(command)) {
      cmd = client.commands.get(command);
    } else if (client.aliases.has(command)) {
      cmd = client.commands.get(client.aliases.get(command));
    }
    if (db.fetch(`cokaradalistere_${message.author.id}`)) return message.channel.send("Olamaz sen botun karalistesinde bulunuyorsun botu kullanamazsın.")
    if (cmd) {
      if (perms < cmd.conf.permLevel) return;
      cmd.run(client, message, params, perms);
    }
    
    
    
  
  };
  