pfp randomization for new users

This commit is contained in:
MathMan05 2024-08-11 22:45:36 -05:00
parent b1fc333bc4
commit 28e7f1bdc8
2 changed files with 4 additions and 2 deletions

View file

@ -144,7 +144,8 @@ class User {
return this.info.cdn + "/avatars/" + this.id + "/" + this.avatar + ".png";
}
else {
return this.info.cdn + "/embed/avatars/3.png";
const int = new Number((BigInt(this.id) >> 22n) % 6n);
return this.info.cdn + `/embed/avatars/${int}.png`;
}
}
createjankpromises() {

View file

@ -146,7 +146,8 @@ class User{
if(this.avatar!=null){
return this.info.cdn+"/avatars/"+this.id+"/"+this.avatar+".png";
}else{
return this.info.cdn+"/embed/avatars/3.png";
const int=new Number((BigInt(this.id) >> 22n) % 6n);
return this.info.cdn+`/embed/avatars/${int}.png`;
}
}
createjankpromises(){