Update chatbot/plugins/chat.py
Browse files- chatbot/plugins/chat.py +3 -0
chatbot/plugins/chat.py
CHANGED
@@ -42,6 +42,8 @@ from openai import AsyncOpenAI as openai
|
|
42 |
import akenoai.openai as akeno
|
43 |
import akenoai.logger as akeno_log
|
44 |
|
|
|
|
|
45 |
@Client.on_message(
|
46 |
~filters.scheduled
|
47 |
& filters.command(["onchat"])
|
@@ -78,6 +80,7 @@ async def rmchatbot_user(client: Client, message: Message):
|
|
78 |
& ~filters.forwarded,
|
79 |
group=2,
|
80 |
)
|
|
|
81 |
@akeno_log.log_performance
|
82 |
async def chatbot_talk(client: Client, message: Message):
|
83 |
chat_user = await db.get_chatbot(message.chat.id)
|
|
|
42 |
import akenoai.openai as akeno
|
43 |
import akenoai.logger as akeno_log
|
44 |
|
45 |
+
from . import force_sub
|
46 |
+
|
47 |
@Client.on_message(
|
48 |
~filters.scheduled
|
49 |
& filters.command(["onchat"])
|
|
|
80 |
& ~filters.forwarded,
|
81 |
group=2,
|
82 |
)
|
83 |
+
@force_sub
|
84 |
@akeno_log.log_performance
|
85 |
async def chatbot_talk(client: Client, message: Message):
|
86 |
chat_user = await db.get_chatbot(message.chat.id)
|