mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2026-08-15 13:03:08 +00:00
[ci] apply-plugin-metadata-and-formatting
This commit is contained in:
parent
9d6d467737
commit
2a859b8495
2 changed files with 10 additions and 4 deletions
|
|
@ -2571,7 +2571,7 @@
|
|||
}
|
||||
},
|
||||
"glowing_profiles": {
|
||||
"description": "This plugin gives your profile glowlight, just like on some servers, but only offline. Dependences: simpleredefiner",
|
||||
"description": "This plugin gives your profile glowlight, just like on some servers, but only offline.",
|
||||
"external_url": "https://m.youtube.com/watch?v=Jb_dKz99rhY",
|
||||
"authors": [
|
||||
{
|
||||
|
|
@ -2581,6 +2581,7 @@
|
|||
}
|
||||
],
|
||||
"versions": {
|
||||
"1.0.1": null,
|
||||
"1.0.0": {
|
||||
"api_version": 9,
|
||||
"commit_sha": "d5cf26b",
|
||||
|
|
|
|||
|
|
@ -12,17 +12,18 @@ import enum
|
|||
|
||||
if TYPE_CHECKING:
|
||||
from typing import Type, Callable, Any, Tuple
|
||||
|
||||
|
||||
plugman = dict(
|
||||
plugin_name="glowing_profiles",
|
||||
description="This plugin gives your profile glowlight, just like on some servers, but only offline.",
|
||||
external_url="https://m.youtube.com/watch?v=Jb_dKz99rhY",
|
||||
external_url="https://m.youtube.com/watch?v=Jb_dKz99rhY",
|
||||
authors=[
|
||||
{"name": "andrejkuroglo8", "email": "andrejkuroglo8@gmail.com", "discord": "andrewku"},
|
||||
],
|
||||
version="1.0.1",
|
||||
)
|
||||
|
||||
|
||||
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):
|
||||
|
|
@ -82,6 +83,7 @@ def redefine_class_methods(orig_cls: Type[object]) -> Callable[[Any], None]:
|
|||
|
||||
return decorator
|
||||
|
||||
|
||||
class RedefineFlag(enum.Enum):
|
||||
REDEFINE = 0
|
||||
DECORATE_AFTER = 1
|
||||
|
|
@ -100,6 +102,7 @@ def redefine_flag(*flags: RedefineFlag) -> Callable[[Callable], Callable]:
|
|||
|
||||
return decorator
|
||||
|
||||
|
||||
def get_locale(*args):
|
||||
return "Error"
|
||||
|
||||
|
|
@ -214,5 +217,7 @@ class Chooser:
|
|||
self._update_text()
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
|
||||
|
||||
class Glowing(babase.Plugin):
|
||||
pass
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue