Binato/server/Packets/UserStatsRequest.js

14 lines
420 B
JavaScript
Raw Permalink Normal View History

2020-08-27 13:09:35 +01:00
const UserPresenceBundle = require("./UserPresenceBundle.js"),
UserPresence = require("./UserPresence.js"),
StatusUpdate = require("./StatusUpdate.js");
2020-08-27 13:09:35 +01:00
2021-01-26 12:26:46 +00:00
module.exports = function (currentUser, data = [0]) {
UserPresenceBundle(currentUser);
2020-08-27 13:09:35 +01:00
for (let i1 = 0; i1 < data.length; i1++) {
const CurrentUserID = data[i1];
2020-08-27 13:09:35 +01:00
UserPresence(currentUser, CurrentUserID);
StatusUpdate(currentUser, CurrentUserID);
}
2020-08-27 13:09:35 +01:00
}