54 lines
1.7 KiB
JavaScript
54 lines
1.7 KiB
JavaScript
//@ts-check
|
|
function panic() {
|
|
console.log("/!\\ INIT PANIK /!\\ LOSE CHIBRE")
|
|
while(1) {}
|
|
}
|
|
|
|
async function main() {
|
|
try {
|
|
const audio = require('./audio.js')
|
|
//@ts-expect-error
|
|
const { poweroff, halt } = require('./shutdown.js')
|
|
const input = require('./input.js')
|
|
const { fHook } = require("./hook.js")
|
|
|
|
console.log("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n")
|
|
console.log(`
|
|
|
|
|
|
_______ _________ ______ _______ _______
|
|
( ____ \\|\\ /|\\__ __/( ___ \\ ( ____ )( ___ )|\\ /|
|
|
| ( \\/| ) ( | ) ( | ( ) )| ( )|| ( ) |( \\ / )
|
|
| | | (___) | | | | (__/ / | (____)|| (___) | \\ (_) /
|
|
| | | ___ | | | | __ ( | __)| ___ | ) _ (
|
|
| | | ( ) | | | | ( \\ \\ | (\\ ( | ( ) | / ( ) \\
|
|
| (____/\\| ) ( |___) (___| )___) )| ) \\ \\__| ) ( |( / \\ )
|
|
(_______/|/ \\|\\_______/|/ \\___/ |/ \\__/|/ \\||/ \\|
|
|
|
|
_______ _______
|
|
( ___ )( ____ \\
|
|
| ( ) || ( \\/
|
|
| | | || (_____
|
|
| | | |(_____ )
|
|
| | | | ) |
|
|
| (___) |/\\____) |
|
|
(_______)\\_______)
|
|
|
|
`)
|
|
|
|
audio('/chibrax/sheeebr.wav')
|
|
|
|
//chainload into sheebr
|
|
await fHook("/usr/bin/sheebr.js")
|
|
poweroff()
|
|
|
|
/*while(1){}
|
|
console.log("End of init reached")
|
|
panic()*/
|
|
} catch(e) {
|
|
console.log(e)
|
|
panic()
|
|
}
|
|
}
|
|
main()
|