Claim your daily login rewards for Genshin Impact from Hoyolab via PowerShell command!
Get Genshin Daily Reward from HoyoLab. This function will return a message from the response.
This module is provided as-is, without warranty of any kind. The author is not responsible for any damage or loss of data that may result from the use of this module. Use at your own risk.
These instructions will get you a copy of the project up and running on your local machine .
You must to have latest PowerShell Core installed on your system. You can download it from here.
Or, for Windows 10 (1809 Build 17763) or higher user can use WinGet:
winget install --id Microsoft.PowerShell -e
You also need to install InstallModuleFromGitHub
module from PSGallery, as this module won't be published to PSGallery due to this mddule's nature.
Install-Module -Name InstallModuleFromGitHub
You can install the module via Install-ModuleFromGitHub
command (sudo
may be required for Linux and macOS or run PowerShell as Administrator for Windows):
Install-ModuleFromGitHub -GitHubRepo nattadasu/GetGenshinDaily
To instal the module without root/administrator permission, you can use -Scope CurrentUser
parameter:
Install-ModuleFromGitHub -GitHubRepo nattadasu/GetGenshinDaily -Scope CurrentUser
Your HoyoLab UserID.
To grab your UserID, follow these steps:
Instruction based on Chrome Dev Tools:
- Go to HoYoLAB
- Log-In to your account
- Press F12 to open Developer Tools
- Go to Application -> Cookies ->
https://www.hoyolab.com
- Copy
ltuid
Your HoyoLab Token.
To grab your Token, follow these steps:
Instruction based on Chrome Dev Tools:
- Go to HoYoLAB
- Log-In to your account
- Press F12 to open Developer Tools
- Go to Application -> Cookies ->
https://www.hoyolab.com
- Copy
ltoken
Get-GenshinDaily -UserID 123456789 -Token 123456789
This module has aliases for Get-GenshinDaily
command:
ggd
, daily
To add aliases to your PowerShell session, modify your $PROFILE
file:
# Add aliases to your PowerShell session
Set-Alias -Name ggd -Value Get-GenshinDaily
# ^^^
# Alias name
This project is licensed under the MIT License - see the LICENSE file for details.