Skip to content

Commit

Permalink
fix(discord: commands): conf: fix syntax error °_°
Browse files Browse the repository at this point in the history
  • Loading branch information
dsevillamartin committed Jun 25, 2018
1 parent e8b607e commit ab16b27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Discord/Commands/Conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class ConfCommand extends Command {
const key = args.filter(e => !e.includes('-'))[1];
const global = (args.includes('--global') || args.includes('-g')) && args.length > 3;
const conf = global ? serverConf : channelConf;
const validKeys = globsl ? ServerConfig : ChannelConfig).validKeys;
const validKeys = (global ? ServerConfig : ChannelConfig).validKeys;
let value = global ? args.filter(e => !e.includes('-g')).slice(2).join(' ') : args.filter(2).join(' ');
if (key !== 'prefix' && value.includes(', ')) value = value.split(', ');
if (!Array.isArray(value) && (key === 'ignoredUsers' || key === 'ignoredBranches' || key === 'disabledEvents')) value = value ? [value] : [];
Expand Down

0 comments on commit ab16b27

Please sign in to comment.