changed back to proxy
This commit is contained in:
1 parent
ebc644e269
commit
27894dac21
1 file changed
+7
-7
@@ -96,7 +96,7 @@ module.exports = {
|
||||
|
||||
if (subcommand === 'user' || subcommand === 'u') {
|
||||
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',
|
||||
headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${process.env.ROBLOSECURITY}` },
|
||||
body: JSON.stringify({ usernames: [argument], excludeBannedUsers: false })
|
||||
@@ -107,7 +107,7 @@ module.exports = {
|
||||
if (!data.data || !data.data[0]) {
|
||||
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',
|
||||
headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${process.env.ROBLOSECURITY}` }
|
||||
});
|
||||
@@ -156,7 +156,7 @@ module.exports = {
|
||||
const hasPremium = r_data.premium;
|
||||
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 formatted_desc = (extra_data.description || "no description")
|
||||
@@ -210,21 +210,21 @@ module.exports = {
|
||||
}
|
||||
} else if (subcommand === 'item') {
|
||||
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',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'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',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'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',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
@@ -365,7 +365,7 @@ module.exports = {
|
||||
const game = data.data[0];
|
||||
embed.title = `Roblox Game: ${game.name}`;
|
||||
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 = [
|
||||
{ name: 'Creator', value: game.creator.name, inline: true },
|
||||
{ name: 'Playing', value: game.playing.toLocaleString(), inline: true },
|
||||
|
||||
Reference in new issue
Block a user