Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.
/ GetGenshinDaily Public archive

This is a simple PowerShell Module to allow you to claim your Genshin Impact's daily reward from Hoyolab via the commandline

License

Notifications You must be signed in to change notification settings

nattadasu/GetGenshinDaily

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Genshin Impact Daily Login Claimer

Claim your daily login rewards for Genshin Impact from Hoyolab via PowerShell command!

Table of Contents

About

Get Genshin Daily Reward from HoyoLab. This function will return a message from the response.

Warranty and Liability Notice

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.

Getting Started

These instructions will get you a copy of the project up and running on your local machine .

Prerequisites

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

Installing

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

Parameters

UserID

Your HoyoLab UserID.

To grab your UserID, follow these steps:

Instruction based on Chrome Dev Tools:

  1. Go to HoYoLAB
  2. Log-In to your account
  3. Press F12 to open Developer Tools
  4. Go to Application -> Cookies -> https://www.hoyolab.com
  5. Copy ltuid

Token

Your HoyoLab Token.

To grab your Token, follow these steps:

Instruction based on Chrome Dev Tools:

  1. Go to HoYoLAB
  2. Log-In to your account
  3. Press F12 to open Developer Tools
  4. Go to Application -> Cookies -> https://www.hoyolab.com
  5. Copy ltoken

Examples

Get-GenshinDaily -UserID 123456789 -Token 123456789

Aliases

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

License

This project is licensed under the MIT License - see the LICENSE file for details.