mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34:17 +00:00
use async
This commit is contained in:
parent
71b13c36b3
commit
53c112d7c4
@ -1,12 +1,12 @@
|
|||||||
#!/usr/bin/env EXPERIMENTAL_FASTCALL=1 node
|
#!/usr/bin/env EXPERIMENTAL_FASTCALL=1 node
|
||||||
const corenode = require("corenode")
|
const corenode = require("corenode")
|
||||||
|
|
||||||
corenode.runInNewRuntime(() => {
|
corenode.runInNewRuntime(async () => {
|
||||||
const { Server } = require("../server/index.js")
|
const { Server } = require("../server/index.js")
|
||||||
|
|
||||||
const instance = new Server({
|
const instance = new Server({
|
||||||
id: process.env.serverID,
|
id: process.env.serverID,
|
||||||
})
|
})
|
||||||
|
|
||||||
instance.initialize()
|
await instance.initialize()
|
||||||
})
|
})
|
Loading…
x
Reference in New Issue
Block a user