Update chatbot/plugins/chat.py
Browse files- chatbot/plugins/chat.py +3 -4
chatbot/plugins/chat.py
CHANGED
@@ -54,7 +54,8 @@ DISABLE_COMMAND = [
|
|
54 |
"start",
|
55 |
"status",
|
56 |
"offchat",
|
57 |
-
"onchat"
|
|
|
58 |
]
|
59 |
|
60 |
NOT_ALLOWED_NON_PROGRAMMER = [
|
@@ -155,7 +156,6 @@ async def userstatus(client: Client, message: Message):
|
|
155 |
& filters.command(["onchat"])
|
156 |
& ~filters.forwarded
|
157 |
)
|
158 |
-
@akeno.LogChannel(channel_id="KillerXSupport", is_track=True)
|
159 |
async def addchatbot_user(client: Client, message: Message):
|
160 |
if message.from_user.id in NOT_ALLOWED_NON_PROGRAMMER:
|
161 |
return
|
@@ -194,7 +194,6 @@ async def rmchatbot_user(client: Client, message: Message):
|
|
194 |
group=2,
|
195 |
)
|
196 |
@akeno.ForceSubscribe(where_from="RendyProjects", owner_id="xtdevs")
|
197 |
-
@akeno.LogChannel(channel_id="KillerXSupport", is_track=True)
|
198 |
async def chatbot_talk(client: Client, message: Message):
|
199 |
if message.from_user.id in NOT_ALLOWED_NON_PROGRAMMER:
|
200 |
return
|
@@ -407,4 +406,4 @@ async def chatbot_talk(client: Client, message: Message):
|
|
407 |
await client.send_chat_action(message.chat.id, enums.ChatAction.CANCEL)
|
408 |
return
|
409 |
except Exception as e:
|
410 |
-
return await message.reply_text(f"Error:
|
|
|
54 |
"start",
|
55 |
"status",
|
56 |
"offchat",
|
57 |
+
"onchat",
|
58 |
+
"setmodel",
|
59 |
]
|
60 |
|
61 |
NOT_ALLOWED_NON_PROGRAMMER = [
|
|
|
156 |
& filters.command(["onchat"])
|
157 |
& ~filters.forwarded
|
158 |
)
|
|
|
159 |
async def addchatbot_user(client: Client, message: Message):
|
160 |
if message.from_user.id in NOT_ALLOWED_NON_PROGRAMMER:
|
161 |
return
|
|
|
194 |
group=2,
|
195 |
)
|
196 |
@akeno.ForceSubscribe(where_from="RendyProjects", owner_id="xtdevs")
|
|
|
197 |
async def chatbot_talk(client: Client, message: Message):
|
198 |
if message.from_user.id in NOT_ALLOWED_NON_PROGRAMMER:
|
199 |
return
|
|
|
406 |
await client.send_chat_action(message.chat.id, enums.ChatAction.CANCEL)
|
407 |
return
|
408 |
except Exception as e:
|
409 |
+
return await message.reply_text(f"Error: {e}")
|