Skip to content

Commit

Permalink
Merge branch 'develop' into esm
Browse files Browse the repository at this point in the history
  • Loading branch information
huan authored Oct 25, 2021
2 parents 7f69ac8 + 40c54ef commit 71e77be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/asker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ interface FaqItem {
post: string
categories: string
replies: FaqAnswer[]
extends: string[]
extends?: string[]
enabled: boolean
}

Expand All @@ -73,6 +73,8 @@ function generateBoName (fullName: string): string {
return botName
}

type CommandFn = (...args: any[]) => Promise<any>

function getCommand (clientId: string, secret: string): CommandFn {
const chatbot = new Chatbot(clientId, secret)

Expand All @@ -86,8 +88,6 @@ function getCommand (clientId: string, secret: string): CommandFn {
})
}

type CommandFn = (...args: any[]) => Promise<any>

async function initBotFaq (
faqRoot: string,
botPromise: Promise<RoomBotConfig[]>
Expand Down

0 comments on commit 71e77be

Please sign in to comment.