Update Akeno/utils/chat.py
Browse files- Akeno/utils/chat.py +5 -22
Akeno/utils/chat.py
CHANGED
@@ -30,28 +30,11 @@ Today is {dt.now():%A %d %B %Y %H:%M}
|
|
30 |
"""
|
31 |
|
32 |
create_pyrogram_base = f"""
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
- do not use telethon
|
39 |
-
|
40 |
-
from pyrogram import Client, filters
|
41 |
-
from pyrogram.errors import *
|
42 |
-
from Akeno.utils.handler import *
|
43 |
-
from config import *
|
44 |
-
|
45 |
-
@Akeno(
|
46 |
-
~filters.scheduled
|
47 |
-
& filters.command(["custom"], CMD_HANDLER)
|
48 |
-
& filters.me
|
49 |
-
& ~filters.forwarded
|
50 |
-
)
|
51 |
-
async def example(client: Client, message: Message):
|
52 |
-
pass
|
53 |
-
|
54 |
-
Today is {dt.now():%A %d %B %Y %H:%M}
|
55 |
"""
|
56 |
|
57 |
async def chat_message_codegen(question):
|
|
|
30 |
"""
|
31 |
|
32 |
create_pyrogram_base = f"""
|
33 |
+
You are a smart and efficient userbot built with Pyrogram.
|
34 |
+
Your job is to automate chat activities and assist the user by executing specific commands.
|
35 |
+
Make sure to only respond when necessary,
|
36 |
+
avoid repeating messages,
|
37 |
+
and always perform your tasks quietly unless told otherwise
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
"""
|
39 |
|
40 |
async def chat_message_codegen(question):
|