Skip to content

Commit

Permalink
Merge pull request #67 from kyometori/mention
Browse files Browse the repository at this point in the history
讓部分回覆可以 tag
  • Loading branch information
Zollo757347 authored Sep 6, 2024
2 parents c3984e8 + edb744a commit bc007cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const client = new HZClient({
ThreadMemberManager: 0,
UserManager: 0
}),
allowedMentions: { parse: [] },
allowedMentions: { parse: ['users'] },
devMode: process.argv[2]?.toLowerCase() === 'dev'
});

Expand Down
4 changes: 2 additions & 2 deletions src/hidden/Thanks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class Thanks extends HiddenCommand {
}

public filter(message: Message): boolean {
return message.content.startsWith('???') &&
return message.content.startsWith('!!!') &&
(('name' in message.channel && message.channel?.name == '釣魚拉霸室') || message.channel.isTestChannel());
}

Expand All @@ -42,4 +42,4 @@ export default class Thanks extends HiddenCommand {
);
return true;
}
}
}

0 comments on commit bc007cd

Please sign in to comment.