Skip to content

Commit

Permalink
updated /ask on and off text
Browse files Browse the repository at this point in the history
  • Loading branch information
theofandrich committed Oct 4, 2023
1 parent 77223f1 commit d412875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/open-ai/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -605,12 +605,12 @@ export class OpenAIBot implements PayableBot {
private async freePromptChatGroup (ctx: OnMessageContext | OnCallBackQueryData, prompt: string): Promise<boolean> {
if (prompt === 'on' || prompt === 'On') {
ctx.session.openAi.chatGpt.isFreePromptChatGroups = true
await ctx.reply('Command free Open AI is enabled').catch(async (e) => { await this.onError(ctx, e) })
await ctx.reply('/ask with prefixes or commands is enabled.').catch(async (e) => { await this.onError(ctx, e) })
return true
}
if (prompt === 'off' || prompt === 'Off') {
ctx.session.openAi.chatGpt.isFreePromptChatGroups = false
await ctx.reply('Command free Open AI is disabled').catch(async (e) => { await this.onError(ctx, e) })
await ctx.reply('/ask with prefixes or commands is disabled.').catch(async (e) => { await this.onError(ctx, e) })
return true
}
return false
Expand Down

0 comments on commit d412875

Please sign in to comment.