Skip to content

Commit

Permalink
kaiyuanshe/osschat#175 move CommandFn defined
Browse files Browse the repository at this point in the history
  • Loading branch information
mukaiu committed Oct 25, 2021
1 parent 5d3436e commit 40c54ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/asker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,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 @@ -78,8 +80,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 40c54ef

Please sign in to comment.