mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 23:24:26 -05:00
17 lines
433 B
JavaScript
17 lines
433 B
JavaScript
export default {
|
|
// the names are currently the wrong way around in these logs
|
|
regex: /^\[([0-9.:-]+)]\[([ 0-9]*)]LogSquad: (.+) has revived (.+)\./,
|
|
onMatch: (args, logParser) => {
|
|
const data = {
|
|
...logParser.eventStore.session[args[3]],
|
|
raw: args[0],
|
|
time: args[1],
|
|
chainID: args[2],
|
|
reviverName: args[3],
|
|
victimName: args[4]
|
|
};
|
|
|
|
logParser.emit('PLAYER_REVIVED', data);
|
|
}
|
|
};
|