- Awards
- 5
1. Accept the quest under User Settings -> Gift Inventory
2. Join a vc (voice channel)
3. Stream any window (can be notepad, steam or something)
4. Press Ctrl+Shift+I to open DevTools
5. Go to the Console tab
6. Type allow pasting
7. Paste the following code and press enter:
2. Join a vc (voice channel)
3. Stream any window (can be notepad, steam or something)
4. Press Ctrl+Shift+I to open DevTools
5. Go to the Console tab
6. Type allow pasting
7. Paste the following 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()
}
You must be registered for see images
7. Keep the stream running for 15 minutes
8. You can now claim the reward in User Settings --> Gift Inventory
Now you have the badge on the right side
You must be registered for see images attach
Credits to noritem (gg./cloner)