Update chatbot/__init__.py
Browse files- chatbot/__init__.py +7 -0
chatbot/__init__.py
CHANGED
@@ -58,6 +58,7 @@ class Randydev(Client):
|
|
58 |
try:
|
59 |
await super().start()
|
60 |
except FloodWait as e:
|
|
|
61 |
await asyncio.sleep(e.value)
|
62 |
self.start_time = time.time()
|
63 |
LOGS.info(
|
@@ -66,6 +67,12 @@ class Randydev(Client):
|
|
66 |
layer,
|
67 |
self.me.username,
|
68 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
async def stop(self):
|
70 |
try:
|
71 |
await super().stop()
|
|
|
58 |
try:
|
59 |
await super().start()
|
60 |
except FloodWait as e:
|
61 |
+
await send_log(f"GPT-4 Bot: {e.value}")
|
62 |
await asyncio.sleep(e.value)
|
63 |
self.start_time = time.time()
|
64 |
LOGS.info(
|
|
|
67 |
layer,
|
68 |
self.me.username,
|
69 |
)
|
70 |
+
await send_log(
|
71 |
+
"akn running with Pyrogram v%s (Layer %s) started on @%s. Hi!",
|
72 |
+
pyrogram.__version__,
|
73 |
+
layer,
|
74 |
+
self.me.username,
|
75 |
+
)
|
76 |
async def stop(self):
|
77 |
try:
|
78 |
await super().stop()
|