fixed storage location issues and minor bugs

This commit is contained in:
2021-04-28 18:43:19 +02:00
parent 9bbf1b302e
commit 471213dae0
11 changed files with 17 additions and 1782 deletions

View File

@ -8,7 +8,7 @@ module.exports = {
description: 'Zeigt dir deinen Fertigkeitswert im jeweiligen Magietalent.',
aliases: ['spell', 'zauber'],
usage: '<Zauber>',
needs_args: true,
needs_args: false,
async exec(message, args) {
db.find({ user: message.author.tag }, (err, docs) => {
@ -46,8 +46,6 @@ const ReplySpell = (Spell = {}) => {
const createSpellList = (Character = {}) => {
if (!Character || !Character.hasOwnProperty('spells')) return;
let SpellList = [];
Character.spells.forEach(spell =>
SpellList.push(getSpell({ Character: Character, spell_name: spell.id }))
);
Character.spells.forEach(spell => SpellList.push(getSpell({ Character: Character, spell_name: spell.id })));
return SpellList.filter(value => value !== undefined); //?+
};