changed back to proxy

This commit is contained in:
yhqe committed 2026-03-15 20:43:22 -05:00
1 parent ebc644e269
commit 27894dac21
1 file changed
+7 -7
+7 -7
View File
@@ -96,7 +96,7 @@ module.exports = {
if (subcommand === 'user' || subcommand === 'u') { if (subcommand === 'user' || subcommand === 'u') {
try { try {
const res = await fetch(`https://users.roblox.com/v1/usernames/users`, { const res = await fetch(`https://users.roproxy.com/v1/usernames/users`, {
method: 'POST', method: 'POST',
headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${process.env.ROBLOSECURITY}` }, headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${process.env.ROBLOSECURITY}` },
body: JSON.stringify({ usernames: [argument], excludeBannedUsers: false }) body: JSON.stringify({ usernames: [argument], excludeBannedUsers: false })
@@ -107,7 +107,7 @@ module.exports = {
if (!data.data || !data.data[0]) { if (!data.data || !data.data[0]) {
throw new Error('User not found'); throw new Error('User not found');
} }
const extra_res = await fetch(`https://users.roblox.com/v1/users/${data.data[0].id}`, { const extra_res = await fetch(`https://users.roproxy.com/v1/users/${data.data[0].id}`, {
method: 'GET', method: 'GET',
headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${process.env.ROBLOSECURITY}` } headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${process.env.ROBLOSECURITY}` }
}); });
@@ -156,7 +156,7 @@ module.exports = {
const hasPremium = r_data.premium; const hasPremium = r_data.premium;
const isOnline = ra_data.isOnline; const isOnline = ra_data.isOnline;
const viewInvRes = await fetch(`https://inventory.roblox.com/v1/users/${user.id}/can-view-inventory`); const viewInvRes = await fetch(`https://inventory.roproxy.com/v1/users/${user.id}/can-view-inventory`);
const isInvPublic = (await viewInvRes.json()).canView; const isInvPublic = (await viewInvRes.json()).canView;
const formatted_desc = (extra_data.description || "no description") const formatted_desc = (extra_data.description || "no description")
@@ -210,21 +210,21 @@ module.exports = {
} }
} else if (subcommand === 'item') { } else if (subcommand === 'item') {
try { try {
const res = await fetch(`https://economy.roblox.com/v2/assets/${argument}/details`, { const res = await fetch(`https://economy.roproxy.com/v2/assets/${argument}/details`, {
method: 'GET', method: 'GET',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Cookie': `.ROBLOSECURITY=${process.env.ROBLOSECURITY}` 'Cookie': `.ROBLOSECURITY=${process.env.ROBLOSECURITY}`
} }
}); });
const p_res = await fetch(`https://thumbnails.roblox.com/v1/assets?assetIds=${argument}&returnPolicy=PlaceHolder&size=420x420&format=Png&isCircular=false`, { const p_res = await fetch(`https://thumbnails.roproxy.com/v1/assets?assetIds=${argument}&returnPolicy=PlaceHolder&size=420x420&format=Png&isCircular=false`, {
method: 'GET', method: 'GET',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Cookie': `.ROBLOSECURITY=${process.env.ROBLOSECURITY}` 'Cookie': `.ROBLOSECURITY=${process.env.ROBLOSECURITY}`
} }
}); });
const resale_res = await fetch(`https://economy.roblox.com/v1/assets/${argument}/resale-data`, { const resale_res = await fetch(`https://economy.roproxy.com/v1/assets/${argument}/resale-data`, {
method: 'GET', method: 'GET',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
@@ -365,7 +365,7 @@ module.exports = {
const game = data.data[0]; const game = data.data[0];
embed.title = `Roblox Game: ${game.name}`; embed.title = `Roblox Game: ${game.name}`;
embed.description = game.description || 'No description.'; embed.description = game.description || 'No description.';
embed.thumbnail.url = `https://www.roblox.com/asset-thumbnail/image?assetId=${game.rootPlaceId}&width=420&height=420&format=png`; embed.thumbnail.url = `https://www.roproxy.com/asset-thumbnail/image?assetId=${game.rootPlaceId}&width=420&height=420&format=png`;
embed.fields = [ embed.fields = [
{ name: 'Creator', value: game.creator.name, inline: true }, { name: 'Creator', value: game.creator.name, inline: true },
{ name: 'Playing', value: game.playing.toLocaleString(), inline: true }, { name: 'Playing', value: game.playing.toLocaleString(), inline: true },