Update chatbot/plugins/chat.py
Browse files- chatbot/plugins/chat.py +4 -4
chatbot/plugins/chat.py
CHANGED
@@ -67,8 +67,8 @@ DISABLED_COMMANDS = [
|
|
67 |
"about:",
|
68 |
"enabled:",
|
69 |
"disabled:",
|
70 |
-
"--stream-
|
71 |
-
"--edit-
|
72 |
]
|
73 |
|
74 |
def obfuscate(word):
|
@@ -940,9 +940,9 @@ async def chatbot_talk(client: Client, message: Message):
|
|
940 |
if regex_all_blacklist(caption):
|
941 |
return await message.reply_text("You been blocked blacklisted")
|
942 |
|
943 |
-
if caption
|
944 |
return await message.reply_text(
|
945 |
-
"You can't type
|
946 |
)
|
947 |
|
948 |
stream_image_now = re.sub(r"--stream-image", "", caption).strip()
|
|
|
67 |
"about:",
|
68 |
"enabled:",
|
69 |
"disabled:",
|
70 |
+
"--stream-images",
|
71 |
+
"--edit-images"
|
72 |
]
|
73 |
|
74 |
def obfuscate(word):
|
|
|
940 |
if regex_all_blacklist(caption):
|
941 |
return await message.reply_text("You been blocked blacklisted")
|
942 |
|
943 |
+
if caption in ["--stream-images", "--edit-images"] or len(caption) > 350:
|
944 |
return await message.reply_text(
|
945 |
+
"You can't type (error 404: creativity not found)"
|
946 |
)
|
947 |
|
948 |
stream_image_now = re.sub(r"--stream-image", "", caption).strip()
|