-
Notifications
You must be signed in to change notification settings - Fork 42
Commands inside Code Blocks - #412 #454
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
Conversation
PR Summary
|
vcarl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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