Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(message): (!#) and (!!#) filters should be properly parsed #3663

Merged
merged 1 commit into from May 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/bot/message.ts
Expand Up @@ -404,7 +404,7 @@ class Message {
.replace('!', '') // replace first !
.replace(/\(|\)/g, '')
.replace(/\$param/g, attr.param);
const parse = new Parser({ sender: attr.sender, message: cmd, skip: true, quiet: true });
const parse = new Parser({ sender: attr.sender, message: cmd, skip: false, quiet: true });
const responses = await parse.process();
for (let i = 0; i < responses.length; i++) {
setTimeout(async () => {
Expand All @@ -417,7 +417,7 @@ class Message {
const cmd = filter
.replace(/\(|\)/g, '')
.replace(/\$param/g, attr.param);
const parse = new Parser({ sender: attr.sender, message: cmd, skip: true, quiet: false });
const parse = new Parser({ sender: attr.sender, message: cmd, skip: false, quiet: false });
const responses = await parse.process();
for (let i = 0; i < responses.length; i++) {
setTimeout(async () => {
Expand Down