// Not Al const { JSON } = require('odies.database'); const db = new JSON('database') const Discord = require('discord.js'); exports.run = async (client, message, args) => { var data = db.fetch(`odiescode.notes_${message.author.id}`) var not = args.slice(" "); if (!data) { data.sayi = 0 } if (not) { if (data.sayi < 11) { db.set(`odiescode.notes_${message.author.id}`, { sayi: data.sayi + 1, not: not, }).then(message.reply(`Notunuz Başarıyla Eklendi !! Not : \`${not}\``)) return; } else { return message.reply('En Fazla 10 Not Ekleyebilirsiniz') } } else { message.reply('Bir Not Belirtmelisin') } }; exports.conf = { aliases: ['not-al'], permLevel: 0 }; exports.help = { name: 'notal', description: 'Botun Pingini Gösterir !', usage: 'notal' }; // Notlarım const { JSON } = require('odies.database'); const db = new JSON('database') const Discord = require('discord.js'); exports.run = async (client, message, args) => { var data = db.fetch(`odiescode.notes_${message.author.id}`) var not = args.slice(" "); if (data) { var mbed = new Discord.MessageEmbed() .setAuthor(message.author.username, message.author.avatarURL({ dynamic: true })) .setThumbnail(message.guild.iconURL({ dynamic: true })) db.fetch(`odiescode.notes_${message.author.id}`).then(x => x.map(c => mbed.addField(c.sayi + " : ", c.not))) message.channel.send(mbed) } else { var embed = new Discord.MessageEmbed() .setAuthor(message.author.username, message.author.avatarURL({ dynamic: true })) .setThumbnail(message.guild.iconURL({ dynamic: true })) .addField('**Notlarınız :**', '**Hiç Not Alınmamış !!**'); message.channel.send(embed) } }; exports.conf = { aliases: ['notlarım'], permLevel: 0 }; exports.help = { name: 'notlarım', description: 'Botun Pingini Gösterir !', usage: 'notlarım' };