überlegung windows
This commit is contained in:
@@ -74,9 +74,9 @@ function logCommand(state, ip, message) {
|
||||
function logPing(state, ip) {
|
||||
fs.appendFileSync(
|
||||
'./logs/pings.log',
|
||||
`${new Date().toISOString()} ${ip}: Ping\n`
|
||||
`${new Date().toISOString()} ${ip} : Ping\n`
|
||||
);
|
||||
state.lastPings.push(`${new Date().toISOString()}: Ping`);
|
||||
state.lastPings.push(`${new Date().toISOString()} ${ip} : Ping`);
|
||||
if (state.lastPings.length > 10) state.lastPings.shift();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user