poshlostios/app/reset/reset.js
2025-03-19 01:12:43 +03:00

18 lines
694 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

async function main(args) {
await writeStdout("Ты уверен, что хочешь стереть систему, и установить снова?? (y/n) > ")
let confirm = (await readLine()).toLowerCase() == "y"
if (confirm) {
await new Promise(r => setTimeout(r, 100));
await writeStdout("Прощай...")
await new Promise(r => setTimeout(r, 2000));
await resetSystem()
document.location.reload()
for (const c of Array.from("\nвелосипе")) {
await writeStdout(c)
await new Promise(r => setTimeout(r, 30));
}
await new Promise(r => setTimeout(r, 999999));
}
return 0
}