Knowing it exists / makes it hard not to believe / the great dimentions
5
   
Award
Favorite
Favorited
Unfavorite
Download
"radical memory tweaks:

################################################################################
OPN = require('opn'),
## get rid of group and friend listeners.
no more opn ( I was using it for group kicks and invites or we
no more shooing away invites (and kicks) duh, keep that and manually remove away.
bots dont automatically join groups, and if they join groups it will be from the chat game
move the startup friends check to a function and call in the loop

// accept/decline incoming friend invites
if (this.accept_friend) {
Object.keys(this.user.myFriends).forEach((friend) => {
if (this.user.myFriends[friend] == 2 && this.accept_friend && steamid_blacklist.indexOf(friend) == -1) {
this.user.addFriend(friend);
}
});
}

// accept/decline incoming friend invites
if (this.accept_friend) {
Object.keys(this.user.myFriends).forEach((friend) => {
if (this.user.myFriends[friend] == 2 && this.accept_friend && steamid_blacklist.indexOf(friend) == -1) {
this.user.addFriend(friend);
}
});
}
});
this.accept_group = accept_group;
this.user.on('groupRelationship', (steamID, relationship) => {
if (relationship != SteamUser.EClanRelationship.Blocked
&& relationship != SteamUser.EClanRelationship.Member) {
this.log('SESSION | groupRelationship: '
+ (SteamUser.EClanRelationship[relationship].toUpperCase()
+ "=https://steamproxy.com/gid/" + steamID).yellow);
}
if (relationship == SteamUser.EClanRelationship.Invited) {
this.user.respondToGroupInvite(steamID, this.accept_group);
}
if (!this.accept_friend && relationship != SteamUser.EClanRelationship.Member
&& relationship != SteamUser.EClanRelationship.Blocked && this.index == 0) {
OPN("https://steamproxy.com/gid/" + steamID + "?" + SteamUser.EClanRelationship[relationship]);
}
});
this.accept_friend = accept_friend;
this.user.on('friendRelationship', (steamID, relationship) => {
if (this.accept_friend) {
if (relationship == SteamUser.EFriendRelationship.RequestRecipient && steamid_blacklist.indexOf(steamID) == -1) {
return this.user.addFriend(steamID);
}
} else if (relationship != SteamUser.EFriendRelationship.Friend
&& relationship != SteamUser.EFriendRelationship.RequestInitiator && this.index == 0) {
OPN("https://steamproxy.com/profiles/" + steamID + "?" + SteamUser.EFriendRelationship[relationship]);
}
this.log('SESSION | friendRelationship: '
+ (SteamUser.EFriendRelationship[relationship].toUpperCase()
+ "=https://steamproxy.com/profiles/" + steamID).yellow);
});

################################################################################

## screw items events, bank for later? straight removeal? or code in byteframe
was main account supposed to see this action?
maybe thats why it was screwed up?

// XXX accounts[a].clear_item_notification(),

// watch for new items
this.new_items = false;
this.new_items_timer = -1;
this.user.on('newItems', (count) => {
this.new_items = true;
if (count > 0) {
clearTimeout(this.new_items_timer);
this.new_items_timer = setTimeout((count) => {
this.log('SESSION | newItems: ' + ("{" + count + "} https://steamproxy.com/" + this.profile_url() + "/inventory").yellow);
}, 5000, count);
}
});
}
clear_item_notification() {
if (this.new_items) {
this.new_items = false;
this.http_request(this.profile_url() + "/inventory");
}
}

################################################################################

## ...comment notifications?
only apply on main at least?

// hide comment notifications
this.comment_timer = -1;
this.comment_check = true;
this.user.on('newComments', (count, myItems) => {
if (!this.accept_friend && count) {
if (myItems) {
this.comment_check = true;
}
clearTimeout(this.comment_timer);
this.comment_timer = setTimeout(() => {
if (verbose || myItems) {
this.log('SESSION | newComments: ' + (count + "|" + myItems).yellow);
}
this.http_request('my/commentnotifications', { action: 'markallread' });
}, 3000);
}
});

################################################################################"
2 Comments
≻ཌ༻ᑕᕼᎥᗴᖴ༺ད< 31 Aug, 2021 @ 10:41am 
:frenemy:
Death's Assassin 17 Dec, 2019 @ 9:03pm 
Wow, someone is pissed :) Must be a clown, hehe!