canaria3406 / hoyolab-auto-sign

A lightweight, secure, and free script that automatically collect Hoyolab daily check in rewards. Supports Genshin Impact, Honkai Impact 3rd, and Honkai: Star Rail.
MIT License
406 stars 49 forks source link

added option for discord ping on check-in error #9

Closed cd36th closed 1 year ago

cd36th commented 1 year ago

started to get annoyed by the daily ping, so I made an option where it only pings when there is an error in the check-in process.

also removed the check for if discord_notify is true before calling the webhook because it became confusing with this addition and it was already checking whether discordWebhook had a value. I think its safe to assume that if someone enters a webhook URL they probably want the webhook message to be posted.

cd36th commented 1 year ago

noticed something off with the output message formatting, fixing now

cd36th commented 1 year ago

fixed 👍