-
Notifications
You must be signed in to change notification settings - Fork 0
getVotes
JblusItsMe edited this page Sep 18, 2023
·
1 revision
(async () => {
try {
const votes = await api.getVotes();
console.log('Server votes:');
votes.forEach(vote => {
console.log(' - Username: ' + vote.nickname);
console.log(' Date: ' + vote.data);
console.log(' Timestamp: ' + vote.timestamp);
console.log(' Steamid: ' + vote.steamid);
console.log(' Claimed: ' + vote.claimed);
console.log('\n ');
});
} catch(error) {
console.error(error.message);
}
})();