Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/bots/commbot.js
// @flow | // @flow | ||||
import invariant from 'invariant'; | import invariant from 'invariant'; | ||||
import bots from 'lib/facts/bots.js'; | import bots from 'lib/facts/bots.js'; | ||||
import { threadTypes } from 'lib/types/thread-types.js'; | import { threadTypes } from 'lib/types/thread-types-enum.js'; | ||||
import { createThread } from '../creators/thread-creator.js'; | import { createThread } from '../creators/thread-creator.js'; | ||||
import { createBotViewer } from '../session/bots.js'; | import { createBotViewer } from '../session/bots.js'; | ||||
const { commbot } = bots; | const { commbot } = bots; | ||||
async function createCommbotThread(userID: string): Promise<string> { | async function createCommbotThread(userID: string): Promise<string> { | ||||
const commbotViewer = createBotViewer(commbot.userID); | const commbotViewer = createBotViewer(commbot.userID); | ||||
Show All 16 Lines |