thurdev / roblox-limiteds-sniper-free

Now UGC items are possible to be set as a limited, and some people are selling them for free, so the script will try to buy every copy, if any available
MIT License
7 stars 5 forks source link

new nodejs code #2

Closed thurdev closed 1 year ago

thurdev commented 1 year ago

still in tests, better not use for now

ghost commented 1 year ago

Will this be like an extension or an app?

CustomAmelia commented 1 year ago

How do you format the cookies in the env file?? is it like "", or something else?

thurdev commented 1 year ago

Will this be like an extension or an app?

an app, not sure, run it at your personal computer.

How do you format the cookies in the env file?? is it like "", or something else?

Just get the cookies from the headers of a request from roblox website, the beginning will look something like that: image

CustomAmelia commented 1 year ago

Will this be like an extension or an app?

an app, not sure, run it at your personal computer.

How do you format the cookies in the env file?? is it like "", or something else?

Just get the cookies from the headers of a request from roblox website, the beginning will look something like that: image

I still don't understad how I get the headers?

CustomAmelia commented 1 year ago

Nvm I figured it out but when I run it for a while I get error : could not get items {"errors":[{"code":0,"message":"Too many requests"}]}

thurdev commented 1 year ago

Nvm I figured it out but when I run it for a while I get error : could not get items {"errors":[{"code":0,"message":"Too many requests"}]}

try to use a bigger timeout :)

you can always add proxies, feel free to.

CustomAmelia commented 1 year ago

Nvm I figured it out but when I run it for a while I get error : could not get items {"errors":[{"code":0,"message":"Too many requests"}]}

try to use a bigger timeout :)

you can always add proxies, feel free to.

How would I add proxies?

CustomAmelia commented 1 year ago

I just did some editing of the code myself and I believe I added proxy support

thurdev commented 1 year ago

I just did some editing of the code myself and I believe I added proxy support

nice, if you want feel free to open a pr, i would love that

CustomAmelia commented 1 year ago

I just did some editing of the code myself and I believe I added proxy support

nice, if you want feel free to open a pr, i would love that

I failed to do it actually, kept getting errors, could you show me how to or add it?

thurdev commented 1 year ago

I just did some editing of the code myself and I believe I added proxy support

nice, if you want feel free to open a pr, i would love that

I failed to do it actually, kept getting errors, could you show me how to or add it?

you can do it using curl and adding the parameter to use a proxy, or use the axios which is already present in the code, and do something like this:

const proxy_list = [
    {
        protocol: 'http',
        host: '149.129.239.170',
        port: 8080,
    },
    //...
    {
        protocol: 'http',
        host: '132.129.121.148',
        port: 8080,
    },
    {
        protocol: 'http',
        host: '154.129.98.156',
        port: 8080,
    },
    {
        protocol: 'http',
        host: '211.129.132.150',
        port: 8080,
    },
    {
        protocol: 'http',
        host: '164.129.114.111',
        port: 8080,
    }
]
let random_index = Math.floor(Math.random() * proxy_list.length);

axios.get('https://api.ipify.org/?format=json',
    {
        proxy: proxy_list[random_index]
    }
)
CustomAmelia commented 1 year ago

I just did some editing of the code myself and I believe I added proxy support

nice, if you want feel free to open a pr, i would love that

I failed to do it actually, kept getting errors, could you show me how to or add it?

you can do it using curl and adding the parameter to use a proxy, or use the axios which is already present in the code, and do something like this:

const proxy_list = [
    {
        protocol: 'http',
        host: '149.129.239.170',
        port: 8080,
    },
    //...
    {
        protocol: 'http',
        host: '132.129.121.148',
        port: 8080,
    },
    {
        protocol: 'http',
        host: '154.129.98.156',
        port: 8080,
    },
    {
        protocol: 'http',
        host: '211.129.132.150',
        port: 8080,
    },
    {
        protocol: 'http',
        host: '164.129.114.111',
        port: 8080,
    }
]
let random_index = Math.floor(Math.random() * proxy_list.length);

axios.get('https://api.ipify.org/?format=json',
    {
        proxy: proxy_list[random_index]
    }
)

I'll try but could you add proxy support integrated?

CustomAmelia commented 1 year ago

I tried to do it but was having issues, could you push a proxy update as soon as you can?

CustomAmelia commented 1 year ago

Nvm i got it!

thurdev commented 1 year ago

Nvm i got it!

nice, share it if possible, i dont have too much time this week xd

CustomAmelia commented 1 year ago

Nvm i got it!

nice, share it if possible, i dont have too much time this week xd

I'll open a pr

CustomAmelia commented 1 year ago

Nvm i got it!

nice, share it if possible, i dont have too much time this week xd

do i have to do the pull request in typescript? i compiled the typescript and just used it in javascript and i cant compile it back to typescript

thurdev commented 1 year ago

Nvm i got it!

nice, share it if possible, i dont have too much time this week xd

do i have to do the pull request in typescript? i compiled the typescript and just used it in javascript and i cant compile it back to typescript

typescript sir, please 🙏 its pretty simple, just define types, i still gonna improve the script, so if you do it in typescript i will use ur code, if not the code is removed every time it is compiled.

CustomAmelia commented 1 year ago

Nvm i got it!

nice, share it if possible, i dont have too much time this week xd

do i have to do the pull request in typescript? i compiled the typescript and just used it in javascript and i cant compile it back to typescript

typescript sir, please 🙏 its pretty simple, just define types, i still gonna improve the script, so if you do it in typescript i will use ur code, if not the code is removed every time it is compiled.

alright i will try but im sorry if it isn't good or the code is trash

thurdev commented 1 year ago

np np, gonna close this issue for now, anything else open a new one 👍