- Accept the quest under User Settings -> Gift Inventory.
- Join a vc to your alt or your friend.
- Stream any window
- Press
Ctrl
+Shift
+I
to open DevTools - Go to the
Console
tab - Paste this code and press enter:
let wpRequire;
window.webpackChunkdiscord_app.push([[ Math.random() ], {}, (req) => { wpRequire = req; }]);
let api = Object.values(wpRequire.c).find(x => x?.exports?.getAPIBaseURL).exports.HTTP;
let ApplicationStreamingStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getStreamerActiveStreamMetadata).exports.default;
let QuestsStore = Object.values(wpRequire.c).find(x => x?.exports?.default?.getQuest).exports.default;
let encodeStreamKey = Object.values(wpRequire.c).find(x => x?.exports?.encodeStreamKey).exports.encodeStreamKey;
let sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
let quest = [...QuestsStore.quests.values()].find(x => x.userStatus?.enrolledAt && !x.userStatus?.completedAt)
if(!quest) {
console.log("You don't have any uncompleted quests!")
} else {
let streamId = encodeStreamKey(ApplicationStreamingStore.getCurrentUserActiveStream())
let secondsNeeded = quest.config.streamDurationRequirementMinutes * 60
let heartbeat = async function() {
console.log("Completing quest", quest.config.messages.gameTitle, "-", quest.config.messages.questName)
while(true) {
let res = await api.post({url: `/quests/${quest.id}/heartbeat`, body: {stream_key: streamId}})
let progress = res.body.stream_progress_seconds
console.log(`Quest progress: ${progress}/${secondsNeeded}`)
if(progress >= secondsNeeded) break;
await sleep(30 * 1000)
}
console.log("Quest completed!")
}
heartbeat()
}
- Keep the stream running for 15 minutes.
- You can now claim the reward in User Settings -> Gift Inventory!
- Accept the quest under User Settings -> Gift Inventory.
- Open
Program Files
in yourC
drive. - Head-over to
Windows NT
. - Open the folder named
Accessories
. - See all of these files (
en-US
-wordpad
-WordpadFilter.dll
)? Copy Them. - Make a folder named
Win64
in your Desktop. - Add the files that you copied to the folder.
- Rename the file named
wordpad
toGenshinImpact
NO SPACES. - Open the file.
- DON'T click OK.
- Go to a VC with your friend or an alt.
- Stream the application for 15 minutes and BOOM progress bar should be going up
- You can now claim the reward in User Settings -> Gift Inventory!
To check if it's working Discord will detect that your apparently playing Genshin Impact and the progress bar will go up.
- Credits to aamiaa on Github, which where i found the code from for the first method
- Credits to me for the second method 😀