mrsbfh.meta

Issues/PRs archive for MTRNord/mrsbfh
git clone git://archive.git.mtrnord.blog/MTRNord/mrsbfh.meta.git
Log | Files | Refs

4.md (631B)


      1 # PR #4 Fixed bots not looking for ! at the start of commands
      2 
      3 - **Status:** merged
      4 - **Author:** @donicrosby
      5 - **Created:** 2021-10-22T21:54:44Z
      6 - **Branch:** fix-command-flow → main
      7 - **Merged:** 2021-10-24T12:49:46Z
      8 - **Labels:** enhancement
      9 - **Assignees:** @MTRNord
     10 - **Diff:** [4.diff](./4.diff)
     11 
     12 ---
     13 
     14 This PR adds support for bots misinterpreting the messages "!cmd" and "cmd" as equivalent. It would cause unwanted spam and processing cycles. I have added a regex that looks for the "!" at the start of the command and then strips it out or returns an empty string if it does not find a "!" at the start of the message.
     15