Skip to content

Commit

Permalink
🐛 version 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Sep 3, 2022
1 parent 07774c2 commit 3fccdbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions arclet/alconna/avilla/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ def command(
def wrapper(func: T_Callable) -> T_Callable:
cube: Cube[ListenerSchema] = ensure_cube_as_listener(func)
cube.metaclass.listening_events.append(MessageReceived)
if not guild and not private:
raise ValueError
if not guild:
cube.metaclass.inline_dispatchers.append(Filter().ctx.follows("friend"))
elif not private:
cube.metaclass.inline_dispatchers.append(Filter().ctx.follows("group"))
else:
raise ValueError
cube.metaclass.inline_dispatchers.append(
AvillaAlconnaDispatcher(
alconna, send_flag="post" if post else "reply", skip_for_unmatch=not send_error # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "arclet-alconna-avilla"
version = "0.1.0"
version = "0.1.1"
description = "Support Alconna for Avilla"
authors = [
{name = "RF-Tar-Railt", email = "[email protected]"},
Expand Down

0 comments on commit 3fccdbd

Please sign in to comment.