torikushiii / hoyolab-auto

Auto check-in and others for any Hoyoverse games
https://ko-fi.com/torikushiii
GNU Affero General Public License v3.0
107 stars 24 forks source link

Code redeem in google script #63

Closed junoprima closed 1 month ago

junoprima commented 2 months ago

i see on code it's possible to use redeem in google script :)

torikushiii commented 2 months ago

you mean like auto redeem new codes?

junoprima commented 2 months ago

Yes i mean like that

torikushiii commented 2 months ago

I don't think I can integrate it into the current script because it runs on timers that execute every midnight. Unless you want to check for new codes while the check-in script is running?

Aida-Enna commented 1 month ago

Not the OP, but I think that would be fine - I just want the daily check in + check/redeem new codes daily, and being able to lock it in a google script would be ideal.

junoprima commented 1 month ago

i see your updated ran and got error

ParseError: Unexpected token ILLEGAL 371 .gs

torikushiii commented 1 month ago

fixed on latest commit

junoprima commented 1 month ago

I see redeem code not redeem with Loop multiple Game ? Only Redeem 1

It's show need to login ? That's mean need login hoyo alo?

torikushiii commented 1 month ago

yes, code redeem feature requires you to provide full cookie, you can follow the guide again here

junoprima commented 1 month ago

I think it's same as before to go to page check-in ? ZZZ game error

image

torikushiii commented 1 month ago

@junoprima oh yeah, that one is on me.

you can try again, i've updated the code again