Open djkrose opened 7 years ago
There needs to be the possibility to trigger commands from the game chat instead from console.
Multiple options to parse a chat message would be nice, like:
startsWith "/home"
contains "djkrose"
regex "item:(.+?)\b"
Additional requirements and ideas:
/
!
t.b.c.
There needs to be the possibility to trigger commands from the game chat instead from console.
Multiple options to parse a chat message would be nice, like:
startsWith "/home"
- To listen for chat messages that start with this text; interpreting everything after that as parameters.contains "djkrose"
- To listen for the text "djkrose" anywhere in the message, passing the whole message as parameter.regex "item:(.+?)\b"
- To check for a regular expression match and return the matched groups as parameters.Additional requirements and ideas:
/
or!
.t.b.c.