const Discord = require('discord.js');
const db = require('quick.db');
exports.run = (client, message, args) => {
var kod = String(Math.floor(Math.random()*9)) + String(Math.floor(Math.random()*9)) + String(Math.floor(Math.random()*9)) + String(Math.floor(Math.random()*9));
if(db.get(`${message.guild.id}${kod}`)) var kod = String(Math.floor(Math.random()*9)) + String(Math.floor(Math.random()*9)) + String(Math.floor(Math.random()*9)) + String(Math.floor(Math.random()*9));
if(db.get(`${message.guild.id}${kod}`)) var kod = String(Math.floor(Math.random()*9)) + String(Math.floor(Math.random()*9)) + String(Math.floor(Math.random()*9)) + String(Math.floor(Math.random()*9));
if(db.get(`${message.guild.id}${kod}`)) var kod = String(Math.floor(Math.random()*9)) + String(Math.floor(Math.random()*9)) + String(Math.floor(Math.random()*9)) + String(Math.floor(Math.random()*9));
db.set(`${message.guild.id}${kod}`,message.author.id);
message.channel.send("Kodun : "+kod);
};
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: 0
};
exports.help = {
name: 'kodum'
};