Skip to content

Commit 7b18d19

Browse files
committed
🔖 version 0.12.0
1 parent 28b9f86 commit 7b18d19

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

arclet/entari/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@
6767
WS = WebsocketsInfo
6868
WH = WebhookInfo
6969

70-
__version__ = "0.11.2"
70+
__version__ = "0.12.0"

example_plugin.py

+6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
propagate
1313
# Entari,
1414
)
15+
from arclet.entari.event.command import CommandOutput
1516
from arclet.entari.filter import Interval
1617

1718
metadata(__file__)
@@ -106,6 +107,11 @@ async def unloaded(event):
106107
print(f">> Plugin {event.name} Unloaded")
107108

108109

110+
@plug.use(CommandOutput)
111+
async def output_hook(event: CommandOutput):
112+
content = event.content
113+
return f"{event.type.title()}:\n{content}"
114+
109115
# @scheduler.cron("* * * * *")
110116
# async def broadcast(app: Entari):
111117
# for account in app.accounts.values():

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "arclet-entari"
3-
version = "0.11.2"
3+
version = "0.12.0"
44
description = "Simple IM Framework based on satori-python"
55
authors = [
66
{name = "RF-Tar-Railt",email = "[email protected]"},

0 commit comments

Comments
 (0)