https://github.com/nonebot/nonechat
通用控制台聊天界面
https://github.com/nonebot/nonechat
Last synced: 11 months ago
JSON representation
通用控制台聊天界面
- Host: GitHub
- URL: https://github.com/nonebot/nonechat
- Owner: nonebot
- Created: 2023-07-14T02:29:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-15T05:28:07.000Z (over 1 year ago)
- Last Synced: 2024-10-29T23:30:28.524Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 82 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nonechat
通用控制台聊天界面
## 使用
```python
from nonechat.info import Event
from nonechat.app import Frontend
from nonechat.backend import Backend
class ExampleBackend(Backend):
def on_console_load(self):
print("on_console_load")
def on_console_mount(self):
print("on_console_mount")
def on_console_unmount(self):
print("on_console_unmount")
async def post_event(self, event: Event):
print("post_event")
app = Frontend(ExampleBackend)
app.run()
```