mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-05-25 18:04:01 +00:00
979bef6013
This reverts commit 68ca69882bd7627414951aef11985408fd29dec8.
17 lines
563 B
TypeScript
17 lines
563 B
TypeScript
/**
|
|
* This file is used to launch mjolnir for manual testing, creating a user and management room automatically if it doesn't already exist.
|
|
*/
|
|
|
|
import { draupnirClient, makeMjolnir } from "./mjolnirSetupUtils";
|
|
import { read as configRead } from '../../src/config';
|
|
import { constructWebAPIs } from "../../src/DraupnirBotMode";
|
|
|
|
(async () => {
|
|
const config = configRead();
|
|
let mjolnir = await makeMjolnir(config);
|
|
await mjolnir.start();
|
|
const apis = constructWebAPIs(mjolnir);
|
|
await draupnirClient()?.start();
|
|
await apis.start();
|
|
})();
|