randydev commited on
Commit
ace94e5
·
verified ·
1 Parent(s): 9154955

Update Akeno/plugins/chatgpt.py

Browse files
Files changed (1) hide show
  1. Akeno/plugins/chatgpt.py +6 -5
Akeno/plugins/chatgpt.py CHANGED
@@ -25,6 +25,7 @@ from pyrogram.types import *
25
  from RyuzakiLib import FaceAI, FullStackDev, GeminiLatest, RendyDevChat
26
 
27
  from Akeno.utils.chat import chat_message
 
28
  from Akeno.utils.database import db
29
  from Akeno.utils.handler import *
30
  from Akeno.utils.logger import LOGS
@@ -96,7 +97,7 @@ async def akenoai_(client: Client, message: Message):
96
  )
97
  os.remove("chat.txt")
98
  else:
99
- await message.reply_text(response)
100
  except Exception as e:
101
  LOGS.error(str(e))
102
  return await message.reply_text(str(e))
@@ -283,7 +284,7 @@ async def faceai_(client: Client, message: Message):
283
  )
284
  os.remove("chat.txt")
285
  else:
286
- await message.reply_text(response)
287
  except Exception as e:
288
  LOGS.error(str(e))
289
  return await message.reply_text(str(e))
@@ -315,7 +316,7 @@ async def mistralai_(client: Client, message: Message):
315
  )
316
  os.remove("chat.txt")
317
  else:
318
- await message.reply_text(output)
319
  except Exception as e:
320
  LOGS.error(str(e))
321
  return await message.reply_text(str(e))
@@ -347,7 +348,7 @@ async def chatgpt_old_(client: Client, message: Message):
347
  )
348
  os.remove("chat.txt")
349
  else:
350
- await message.reply_text(output)
351
  except Exception as e:
352
  LOGS.error(str(e))
353
  return await message.reply_text(str(e))
@@ -376,7 +377,7 @@ async def chatgpt(client: Client, message: Message):
376
  )
377
  os.remove("chat.txt")
378
  else:
379
- await message.reply_text(messager)
380
  except Exception as e:
381
  LOGS.error(str(e))
382
  return await message.reply_text(str(e))
 
25
  from RyuzakiLib import FaceAI, FullStackDev, GeminiLatest, RendyDevChat
26
 
27
  from Akeno.utils.chat import chat_message
28
+ from Akeno.utils.tools import *
29
  from Akeno.utils.database import db
30
  from Akeno.utils.handler import *
31
  from Akeno.utils.logger import LOGS
 
97
  )
98
  os.remove("chat.txt")
99
  else:
100
+ await message.reply_text(response, reply_to_message_id=ReplyCheck(message))
101
  except Exception as e:
102
  LOGS.error(str(e))
103
  return await message.reply_text(str(e))
 
284
  )
285
  os.remove("chat.txt")
286
  else:
287
+ await message.reply_text(response, reply_to_message_id=ReplyCheck(message))
288
  except Exception as e:
289
  LOGS.error(str(e))
290
  return await message.reply_text(str(e))
 
316
  )
317
  os.remove("chat.txt")
318
  else:
319
+ await message.reply_text(output, reply_to_message_id=ReplyCheck(message))
320
  except Exception as e:
321
  LOGS.error(str(e))
322
  return await message.reply_text(str(e))
 
348
  )
349
  os.remove("chat.txt")
350
  else:
351
+ await message.reply_text(output, reply_to_message_id=ReplyCheck(message))
352
  except Exception as e:
353
  LOGS.error(str(e))
354
  return await message.reply_text(str(e))
 
377
  )
378
  os.remove("chat.txt")
379
  else:
380
+ await message.reply_text(messager, reply_to_message_id=ReplyCheck(message))
381
  except Exception as e:
382
  LOGS.error(str(e))
383
  return await message.reply_text(str(e))