I am scripting for a group to make tycoons they can upload several times with different themes.
I have also been tasked with creating a program to automatically upload developer products for these games since they will have the same developer products and it takes forever to manually do this.
I was able to use noblox.js to upload developer products, although this doesn’t allow you to upload images. I have sifted through the GamesAPI, and I am not sure where I’d include the image, since the API post links are all URL-based.
const noblox = require('noblox.js')
const productNames = [
"1",
"2",
"3",
"4",
]
const prices = [
11,
22,
33,
44
]
async function upload () {
const currentUser = await noblox.setCookie('cookie removed')
console.log(`Logged in as ${currentUser.UserName} [${currentUser.UserID}]`)
const game = "gameidremoved"
for (i = 0; i < productNames.length ; i++){
console.log(productNames[i]);
let name = productNames[i];
let price = prices[i]
noblox.addDeveloperProduct(game, name, price,"");
}
}
upload()