Spaces:
Sleeping
Sleeping
Commit ·
10fde30
1
Parent(s): 7f86101
why me dumb
Browse files- bot/plugins/bash.py +1 -1
- bot/plugins/eval.py +1 -1
- bot/utils/__init__.py +1 -1
bot/plugins/bash.py
CHANGED
|
@@ -8,7 +8,7 @@ from bot.config import Telegram
|
|
| 8 |
|
| 9 |
MAX_MESSAGE_LENGTH = 4096
|
| 10 |
|
| 11 |
-
@TelegramBot.on_message(filters.command("bash") & filters.
|
| 12 |
async def execution(client, message):
|
| 13 |
status_message = await message.reply_text("`Processing ...`")
|
| 14 |
|
|
|
|
| 8 |
|
| 9 |
MAX_MESSAGE_LENGTH = 4096
|
| 10 |
|
| 11 |
+
@TelegramBot.on_message(filters.command("bash") & filters.user(Telegram.OWNER_ID))
|
| 12 |
async def execution(client, message):
|
| 13 |
status_message = await message.reply_text("`Processing ...`")
|
| 14 |
|
bot/plugins/eval.py
CHANGED
|
@@ -9,7 +9,7 @@ from hydrogram.types import Message
|
|
| 9 |
from bot import TelegramBot
|
| 10 |
from bot.config import Telegram
|
| 11 |
|
| 12 |
-
@TelegramBot.on_message(filters.command(["eval", "ev"]) & filters.
|
| 13 |
async def evaluation_cmd_t(client, message: Message):
|
| 14 |
if message.from_user.id != 790841356:
|
| 15 |
return await message.reply("Only Developer")
|
|
|
|
| 9 |
from bot import TelegramBot
|
| 10 |
from bot.config import Telegram
|
| 11 |
|
| 12 |
+
@TelegramBot.on_message(filters.command(["eval", "ev"]) & filters.user(Telegram.OWNER_ID) & ~filters.forwarded)
|
| 13 |
async def evaluation_cmd_t(client, message: Message):
|
| 14 |
if message.from_user.id != 790841356:
|
| 15 |
return await message.reply("Only Developer")
|
bot/utils/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
from .time_format import get_readable_time
|
|
|
|
| 1 |
+
from .time_format import get_readable_time, get_system_info
|