Skip to content

Commit

Permalink
Merge pull request #36 from ITCraftDevelopmentTeam/feat/ignore-bot
Browse files Browse the repository at this point in the history
允许屏蔽 WebHook
  • Loading branch information
This-is-XiaoDeng authored Jun 23, 2024
2 parents 403fc01 + 3e963e7 commit 1b9463d
Show file tree
Hide file tree
Showing 144 changed files with 12,901 additions and 8,169 deletions.
2 changes: 2 additions & 0 deletions actions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ def decorator(func: Callable) -> None:
return decorator
'''


def register_action(_type: str = "v12", name: str | None = None) -> Callable:
def _(func: Callable):
action_list[_type][n := name or func.__name__] = func
logger.debug(f"成功注册动作:{n} ({_type=})")
return func

return _
Loading

0 comments on commit 1b9463d

Please sign in to comment.