improve regex
This commit is contained in:
parent
d6a302ecee
commit
13ff55efe0
1 changed files with 3 additions and 3 deletions
|
@ -22,9 +22,9 @@ const messageTypes = {
|
|||
EVENT: 3
|
||||
};
|
||||
|
||||
const chatMessageRegex = /^\[(?:.*?)\]: \<(?<username>.*)\> (?<message>.*)/;
|
||||
const joinNotificationRegex = /^\[(?:.*?)\]: (?<username>.*) joined the game/;
|
||||
const leaveNotificationRegex = /^\[(?:.*?)\]: (?<username>.*) left the game/;
|
||||
const chatMessageRegex = /^\[(?:.*?)\]: \<(?<username>[a-zA-Z0-9]+)\> (?<message>.*)/;
|
||||
const joinNotificationRegex = /^\[(?:.*?)\]: (?<username>[a-zA-Z0-9]+) joined the game/;
|
||||
const leaveNotificationRegex = /^\[(?:.*?)\]: (?<username>[a-zA-Z0-9]+) left the game/;
|
||||
const rconConnection = new Rcon("localhost", "25575", process.env.RCON_PASSWORD);
|
||||
|
||||
export default class GatewayClient {
|
||||
|
|
Loading…
Reference in a new issue