Update RPC game joined regex. (closes #80)

This commit is contained in:
Daniel Scalzi 2020-06-29 11:28:55 -04:00
parent bec1385c55
commit eeaa2e98d0
No known key found for this signature in database
GPG Key ID: D18EA3FB4B142A57

View File

@ -465,8 +465,9 @@ let proc
// Is DiscordRPC enabled // Is DiscordRPC enabled
let hasRPC = false let hasRPC = false
// Joined server regex // Joined server regex
// Change this if your server uses something different.
const SERVER_JOINED_REGEX = /\[.+\]: \[CHAT\] [a-zA-Z0-9_]{1,16} joined the game/ const SERVER_JOINED_REGEX = /\[.+\]: \[CHAT\] [a-zA-Z0-9_]{1,16} joined the game/
const GAME_JOINED_REGEX = /\[.+\]: Skipping bad option: lastServer:/ const GAME_JOINED_REGEX = /\[.+\]: Sound engine started/
const GAME_LAUNCH_REGEX = /^\[.+\]: (?:MinecraftForge .+ Initialized|ModLauncher .+ starting: .+)$/ const GAME_LAUNCH_REGEX = /^\[.+\]: (?:MinecraftForge .+ Initialized|ModLauncher .+ starting: .+)$/
const MIN_LINGER = 5000 const MIN_LINGER = 5000