Skip to content

Commit

Permalink
fix: help triggering /h on lfg
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Apr 3, 2019
1 parent 33a50ba commit 590406f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/commands/LFG/LFG.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class AddLFG extends Command {
*/
constructor(bot) {
super(bot, 'lfg.add', 'lfg|h|lfm', 'Submit an LFG request.');
this.regex = new RegExp(`^(?:${this.call})\\s?(.+)?`, 'i');
this.regex = new RegExp(`^(?:${this.call})(?!elp)\\s?(.+)?`, 'i');

this.usages = [
{
Expand Down

0 comments on commit 590406f

Please sign in to comment.