Skip to content

Commit

Permalink
fix: directly output undecodable commands
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Nov 2, 2021
1 parent a3940b8 commit fedfbab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/settings/DatabaseQueries/CustomCommandQueries.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const SQL = require('sql-template-strings');
// eslint-disable-next-line no-unused-vars
const Discord = require('discord.js');
const CustomCommand = require('../../models/CustomCommand.js');
const logger = require('../../Logger');

/**
* Database Mixin for custom command queries
Expand Down Expand Up @@ -41,10 +40,9 @@ module.exports = class CustomCommandQueries {
guildId: row.guild_id,
};
} catch (ignored) {
logger.error(`couldn't decode ${row.response}`);
return {
call: row.command,
response: 'unable to parse',
response: row.response,
guildId: row.guild_id,
};
}
Expand Down

0 comments on commit fedfbab

Please sign in to comment.