Skip to content

Commit

Permalink
fix(alias): properly run aliased custom command (#3977)
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Jul 12, 2020
1 parent 143d950 commit 80fdd3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bot/systems/alias.ts
Expand Up @@ -18,6 +18,7 @@ import { addToViewersCache, getFromViewersCache } from '../helpers/permissions';
import permissions from '../permissions';
import { translate } from '../translate';
import customvariables from '../customvariables';
import customcommands from './customcommands';

/*
* !alias - gets an info about alias usage
Expand Down Expand Up @@ -138,6 +139,10 @@ class Alias extends System {
responses.forEach(r => {
parserReply(r.response, { sender: r.sender, attr: r.attr });
});

// go through custom commands
await customcommands.run({ ...opts, message: response });

incrementCountOfCommandUsage(alias.alias);
} else {
return false;
Expand Down

0 comments on commit 80fdd3b

Please sign in to comment.