Skip to content

Commit

Permalink
Do not reply with error message for gimme command
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele committed Jul 11, 2020
1 parent f0bf975 commit 9fcdcef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/hooks/sdtdCommands/commands/gimme.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ class Gimme extends SdtdCommand {
);

if (response.result.includes('ERR:')) {
chatMessage.reply('error', { error: response.result });
chatMessage.reply('error');
}
} catch (error) {
chatMessage.reply('error', { error: error });
chatMessage.reply('error');
}
}
break;
Expand All @@ -123,7 +123,7 @@ class Gimme extends SdtdCommand {
cmdToExec
);
} catch (error) {
chatMessage.reply('error', { error: error });
chatMessage.reply('error');
}
}
break;
Expand Down

0 comments on commit 9fcdcef

Please sign in to comment.