Commands inside Code Blocks - #412#454
Conversation
PR Summary
|
vcarl
left a comment
There was a problem hiding this comment.
Hey, a couple of required changes before I can approve this — let's keep the PR narrowly focused on just the specific issue of command triggers in code blocks
|
Seems like this could be made a lot simpler utilizing a slightly more complex regex: this should match |
|
Can someone help me on why these 8 test cases fail? |
okay I added this regex |
12b8c36 to
36bb00e
Compare
📌 Description
This PR adds a new feature, where in, if any command is found within either a triple or single code block, it's ignored and the bot does not trigger the message that is instead triggered if its not within codeblocks
ℹ️ **Fixes **
Fixes: #412
🧱 Type of Change
🧪 How Has This Been Tested?
test/commands.test.ts)✅ Checklist
prettier(npm run prettier)🛠️ Affected Bot Areas
!su,!docs)📸 Screenshots / Demos (if applicable)
🧠 Additional Notes