Skip to content

Commit

Permalink
fix debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ender-null committed Apr 12, 2024
1 parent 473ae8f commit 86b8144
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,11 @@ export class Bot {
}
}
}
logger.info(`trigger: ${trigger}`);
logger.info(`content: ${message.content}`);
logger.info(`test: ${new RegExp(trigger, 'gim').test(message.content)}`);
if (command.indexOf('@') > -1) {
logger.info(`trigger: ${trigger}`);
logger.info(`content: ${message.content}`);
logger.info(`test: ${new RegExp(trigger, 'gim').test(message.content)}`);
}
if (message.content && typeof message.content == 'string' && new RegExp(trigger, 'gim').test(message.content)) {
message = setInput(message, trigger);
try {
Expand Down

0 comments on commit 86b8144

Please sign in to comment.