Skip to content

Commit

Permalink
refactor(dev)!: Add grps folder in dev dir
Browse files Browse the repository at this point in the history
  • Loading branch information
HsiangNianian committed Jul 19, 2024
1 parent cacd6c2 commit a9fc9f7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hrc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ async def _handle_event(self, current_event: Optional[Event[Any]] = None) -> Non
rule_state = _rule.__init_state__()
if rule_state is not None:
self.rule_state[_rule.name] = rule_state
# TODO(简律纯): Refactor event handle process
# TODO(简律纯): Refactor event handle process with General Rules Package Standard
if await _rule.rule():
logger.info(f"Event will be handled by {_rule!r}")
try:
Expand Down
3 changes: 1 addition & 2 deletions hrc/dev/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
from .character import Character

__all__ = ["Character"]
from .grps import v1
1 change: 1 addition & 0 deletions hrc/dev/grps/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import v1
2 changes: 2 additions & 0 deletions hrc/dev/grps/v1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__version__ = "1.0.0-alpha.1"

0 comments on commit a9fc9f7

Please sign in to comment.