diff --git a/plugins/utilities.json b/plugins/utilities.json index 036bc89..5cc1ca7 100644 --- a/plugins/utilities.json +++ b/plugins/utilities.json @@ -2569,6 +2569,34 @@ "md5sum": "487c0520dc833f15942941e0dbc82f1e" } } + }, + "glowing_profiles": { + "description": "This plugin gives your profile glowlight, just like on some servers, but only offline. Dependences: simpleredefiner", + "external_url": "https://m.youtube.com/watch?v=Jb_dKz99rhY", + "authors": [ + { + "name": "andrejkuroglo8", + "email": "andrejkuroglo8@gmail.com", + "discord": "andrewku" + } + ], + "versions": { + "1.0.0": null + } + }, + "simpleredefiner": { + "description": "Plugin redefine classes and methods, when it is addressed", + "external_url": "", + "authors": [ + { + "name": "andrejkuroglo8", + "email": "andrejkuroglo8@gmail.com", + "discord": "andrewku" + } + ], + "versions": { + "1.0.0": null + } } } } \ No newline at end of file diff --git a/plugins/utilities/glowing_profiles.py b/plugins/utilities/glowing_profiles.py index bf39f04..19038ee 100644 --- a/plugins/utilities/glowing_profiles.py +++ b/plugins/utilities/glowing_profiles.py @@ -18,7 +18,8 @@ plugman = dict( version="1.0.0", ) -file_dependence=Path("simpleredefiner.py") +file_dependence = Path("simpleredefiner.py") + def get_locale(*args): return "Error" @@ -134,9 +135,11 @@ class Chooser: self._update_text() # ba_meta export babase.Plugin + + class Glowing(babase.Plugin): - def __init__(self): - if file_path.exists(): - pass - else: - babase.screenmessage(f"File {file_dependence} not installed. Please, install!") \ No newline at end of file + def __init__(self): + if file_path.exists(): + pass + else: + babase.screenmessage(f"File {file_dependence} not installed. Please, install!") diff --git a/plugins/utilities/simpleredefiner.py b/plugins/utilities/simpleredefiner.py index 3da2982..a5af958 100644 --- a/plugins/utilities/simpleredefiner.py +++ b/plugins/utilities/simpleredefiner.py @@ -20,6 +20,7 @@ plugman = dict( version="1.0.0", ) + def redefine_method(dst: Tuple[Any, str], src: Tuple[Any, str]) -> None: if hasattr(getattr(*src), '__redefine_type') and getattr(*src).__redefine_type in ( RedefineFlag.DECORATE_PRE, RedefineFlag.DECORATE_AFTER, RedefineFlag.DECORATE_ADVANCED): @@ -98,5 +99,7 @@ def redefine_flag(*flags: RedefineFlag) -> Callable[[Callable], Callable]: return decorator # ba_meta export babase.Plugin + + class Simpleredefiner(babase.Plugin): - pass + pass