update fork to be up-to-date with matrixmc
i couldve just applied a patch
This commit is contained in:
parent
a02a5505e7
commit
e5c710c3b6
1 changed files with 5 additions and 6 deletions
11
main.go
11
main.go
|
|
@ -72,21 +72,20 @@ type MatrixConfig struct {
|
|||
|
||||
var (
|
||||
chatRE = regexp.MustCompile(
|
||||
`^\[[0-9:]+\] \[[^]]+/INFO\]: (?:\[Not Secure\] )?<([^>]+)> (.*)$`,
|
||||
`^\[[0-9:]+\] \[[^]]+/INFO\]: (?:System chat: )?(?:\[Not Secure\] )?<([^>]+)> (.*)$`,
|
||||
)
|
||||
|
||||
joinRE = regexp.MustCompile(
|
||||
`^\[[0-9:]+\] \[[^]]+/INFO\]: ([A-Za-z0-9_]+) joined the game$`,
|
||||
`^\[[0-9:]+\] \[[^]]+/INFO\]: (?:System chat: )?([A-Za-z0-9_]+) joined the game$`,
|
||||
)
|
||||
|
||||
leaveRE = regexp.MustCompile(
|
||||
`^\[[0-9:]+\] \[[^]]+/INFO\]: ([A-Za-z0-9_]+) left the game$`,
|
||||
`^\[[0-9:]+\] \[[^]]+/INFO\]: (?:System chat: )?([A-Za-z0-9_]+) left the game$`,
|
||||
)
|
||||
|
||||
advancementRE = regexp.MustCompile(
|
||||
`^\[[0-9:]+\] \[[^]]+/INFO\]: ([A-Za-z0-9_]+) has (?:made the advancement|reached the goal|completed the challenge) \[(.+)\]$`,
|
||||
)
|
||||
|
||||
`^\[[0-9:]+\] \[[^]]+/INFO\]: (?:System chat: )?([A-Za-z0-9_]+) has (?:made the advancement|reached the goal|completed the challenge) \[(.+)\]$`,
|
||||
)
|
||||
deathRE = regexp.MustCompile(
|
||||
`^\[[0-9:]+\] \[[^]]+/INFO\]: (.+)$`,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue