From 2409f898fa09ea9990fdd98bccd6561adc2c8312 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 4 Apr 2023 19:26:10 +0200 Subject: [PATCH] Load cheats without specifying the list --- cheat.py | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/cheat.py b/cheat.py index 8e4ef6e..8108326 100644 --- a/cheat.py +++ b/cheat.py @@ -1,18 +1,12 @@ -from cheats.aimbot import * -from cheats.bhop import * -from cheats.chams import * -from cheats.fov import * -from cheats.glow import * -from cheats.noflash import * -from cheats.norecoil import * -from cheats.radarhack import * -from cheats.trigger import * +from glob import glob + +# Import all cheats +backslash = "\\" +for file in glob("cheats/*.py"): + exec(f"from {file.replace(backslash, '.')[:-3]} import *") -class Cheat(Bhop, Radarhack, Glow, Trigger, - Norecoil, Noflash, Chams, Aimbot, - Fov, - ): +class Cheat(*[child for child in Hack.__subclasses__()]): # type: ignore """All cheats are loaded in this class""" def __init__(self, **kwargs) -> None: