update sysinfo.py

This commit is contained in:
zxce3 2021-09-12 11:35:21 +07:00
parent 43bd54f5d0
commit 9a4574113e

View File

@ -8,14 +8,15 @@ import uuid
import psutil import psutil
from pyrogram import Client, filters from pyrogram import Client, filters
from config import BOT_USERNAME # from config import Veez.BOT_USERNAME
from config import Veez
from helpers.decorators import sudo_users_only, humanbytes from helpers.decorators import sudo_users_only, humanbytes
from helpers.filters import command from helpers.filters import command
# FETCH SYSINFO # FETCH SYSINFO
@Client.on_message(command(["sysinfo", f"sysinfo@{BOT_USERNAME}"]) & ~filters.edited) @Client.on_message(command(["sysinfo", f"sysinfo@{Veez.BOT_USERNAME}"]) & ~filters.edited)
@sudo_users_only @sudo_users_only
async def give_sysinfo(client, message): async def give_sysinfo(client, message):
splatform = platform.system() splatform = platform.system()