3 Commits

Author SHA1 Message Date
Chenric
d73f8afb0d ⚗️ 改版本号尝试github action 2024-07-29 13:50:20 +08:00
Chenric
3936363574 🚀 Create python-publish.yml 2024-07-29 13:44:30 +08:00
Chenric
3036111e72 📝 Update README.md 2024-07-28 13:43:00 +08:00
3 changed files with 67 additions and 19 deletions

43
.github/workflows/python-publish.yml vendored Normal file
View File

@@ -0,0 +1,43 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Upload Python Package
on:
push:
tags:
- 'V*'
workflow_dispatch:
# release:
# types: [published]
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

View File

@@ -73,29 +73,29 @@ __注意__
### 🎨一般用法
-`/B 话榜` ————看看有史以来(机器人存在以来)群友们发了多少消息! (好像没写)
-`/B话榜` ————看看有史以来(机器人存在以来)群友们发了多少消息! (好像没写)
-`/今日 B 话榜` ————看看今天的群友发了多少消息!
-`/今日B话榜` ————看看今天的群友发了多少消息!
-`/昨日 B 话榜` ————看看昨天的群友发了多少消息!
-`/昨日B话榜` ————看看昨天的群友发了多少消息!
-`/前日 B 话榜` ————看看前天的群友发了多少消息!
-`/前日B话榜` ————看看前天的群友发了多少消息!
-`/本周 B 话榜` ————看看本周的群友发了多少消息!
-`/本周B话榜` ————看看本周的群友发了多少消息!
-`/上周 B 话榜` ————看看上周的群友发了多少消息!
-`/上周B话榜` ————看看上周的群友发了多少消息!
-`/本月 B 话榜` ————看看这个月的群友发了多少消息!
-`/本月B话榜` ————看看这个月的群友发了多少消息!
-`/年度 B 话榜` ————看看今年的群友发了多少消息!
-`/年度B话榜` ————看看今年的群友发了多少消息!
-`/历史 B 话榜` ————看看历史上(机器人存在以来)的群友发了多少消息!
-`/历史B话榜` ————看看历史上(机器人存在以来)的群友发了多少消息!
### 🚀进阶用法
`/{时间类型(今日|年度)?}{B 话榜|废话榜} {时间类型?} {ISO8601 格式时间} {群号}`
`/{时间类型(今日|年度)?}{B话榜|废话榜} {时间类型?} {ISO8601 格式时间} {群号}`
如:`/B 话榜 历史 2024-01-01~2024-01-02 12345678`
如:`/B话榜 历史 2024-01-01~2024-01-02 12345678`
## 💪 目前支持的平台
@@ -136,6 +136,12 @@ __注意__
本插件的__init__.py 中的处理函数参考了词云中的方法 ~~(其实大部分都是 Ctrl+C Ctr+V~~
[nonebot-plugin-wordcloud](https://github.com/he0119/nonebot-plugin-wordcloud)
感谢以下开发者作出的贡献:
<a href="https://github.com/ChenXu233/nonebot_plugin_dialectlist/graphs/contributors">
<img src="https://contrib.rocks/image?repo=ChenXu233/nonebot_plugin_dialectlist&max=1000" />
</a>
### 🎀TODO
@@ -143,21 +149,20 @@ __注意__
- [x] 尝试利用 jinja2 模板引擎制作可视化图片
- [ ] 更好看的图片渲染
- [x] 私聊的查询(超级用户可以任意查询群聊的信息)一半完成
- [x] 添加一些全新的可配置项
- [x] 更好看的图片渲染
- [ ] 提供多样化的渲染器配置html 渲染pillow 渲染,统计绘图软件渲染)
- [ ] 为 pillow 渲染方式提供插件的加载方式(什么?插件里的插件???)
- [ ] 私聊的查询(超级用户可以任意查询群聊的信息)一半完成
- [ ] 查询带某关键词的消息量
- [ ] 使用管理员权限直接获取 QQ 官方统计的今日消息量以优化代码运行速度
- [ ] 特殊的储存方案优化消息统计
- [ ] 添加一些全新的可配置项
待补充。.....

View File

@@ -1,6 +1,6 @@
[project]
name = "nonebot-plugin-dialectlist"
version = "2.2.1"
version = "2.2.2"
description = "看看你群群友有多能说"
authors = [
{name = "Chen_Xu233", email = "woyerpa@outlook.com"},
@@ -54,4 +54,4 @@ publish = 'pdm run python -m twine upload dist/*'
# pre-commit = "^2.20.0"
# [tool.pdm.global-options]
# --no-pip-version-check = true
# --no-pip-version-check = true