Make power migration testable
This commit is contained in:
parent
2c27879afb
commit
5d91f999f2
4 changed files with 32 additions and 22 deletions
3
start.js
3
start.js
|
@ -25,13 +25,14 @@ const orm = sync.require("./db/orm")
|
|||
passthrough.from = orm.from
|
||||
passthrough.select = orm.select
|
||||
|
||||
const power = require("./matrix/power.js")
|
||||
sync.require("./m2d/event-dispatcher")
|
||||
|
||||
;(async () => {
|
||||
await migrate.migrate(db)
|
||||
await discord.cloud.connect()
|
||||
console.log("Discord gateway started")
|
||||
require("./matrix/power.js")
|
||||
await power.applyPower()
|
||||
|
||||
require("./stdin")
|
||||
})()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue