allow setting multiple bot prefixes in the configuration file,
use a single source for prefixes instead of multiple (we have a RegEx in one class and a String in another class now).
We should grab all strings from the config and automate building a RegEx similar to (?i)^(prefix1|prefix2|prefix3)\b.
This has the drawback of limiting us to specific one-word prefixes, but we could technically add exceptions to the message listener to also still support more elaborate RegEx expressions (or support eg. a single ! as a prefix, without being followed by a word break, like !help.).
We should:
- allow setting multiple bot prefixes in the configuration file,
- use a single source for prefixes instead of multiple (we have a RegEx in one class and a String in another class now).
We should grab all strings from the config and automate building a RegEx similar to `(?i)^(prefix1|prefix2|prefix3)\b`.
This has the drawback of limiting us to specific one-word prefixes, but we could technically add exceptions to the message listener to also still support more elaborate RegEx expressions (or support eg. a single `!` as a prefix, without being followed by a word break, like `!help`.).
bea
added the enhancement label 2022-11-22 21:51:35 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
We should:
We should grab all strings from the config and automate building a RegEx similar to
(?i)^(prefix1|prefix2|prefix3)\b.This has the drawback of limiting us to specific one-word prefixes, but we could technically add exceptions to the message listener to also still support more elaborate RegEx expressions (or support eg. a single
!as a prefix, without being followed by a word break, like!help.).