Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
lgc2333 committed Sep 22, 2023
1 parent 6484186 commit cbbf1c0
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 81 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: ['https://afdian.net/a/agnes_digital', 'https://afdian.net/@lgc2333/']
37 changes: 29 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- markdownlint-disable MD026 MD031 MD033 MD036 MD041 -->
<!-- markdownlint-disable MD024 MD026 MD031 MD033 MD036 MD041 -->

<div align="center">

Expand Down Expand Up @@ -40,12 +40,14 @@ _✨ Project Sekai 表情包制作 ✨_

- 如遇字体大小不协调问题,请更新插件到最新版本,并且删除 `data/pjsk/fonts` 文件夹下的所有文件
- 如果遇到资源文件下载失败的情况,请参考 [这个 issue](https://github.com/Agnes4m/nonebot_plugin_pjsk/issues/15)
- ~~由于本人没玩过啤酒烧烤,~~ 可能出现一些小问题,可以提 issue 或者 [加群](https://jq.qq.com/?_wv=1027&k=l82tMuPG)反馈 ~~或者单纯进来玩~~
- 本项目仅供学习使用,请勿用于商业用途,喜欢该项目可以 Star 或者提供 PR,如果构成侵权将在 24 小时内删除

## 📖 介绍

### Wonderhoy!

![Wonderhoy](./readme/wonderhoy.png)
![Wonderhoy](https://raw.githubusercontent.com/lgc-NB2Dev/readme/main/pjsk/wonderhoy.png)

## 💿 安装

Expand Down Expand Up @@ -135,22 +137,29 @@ plugins = [
<details>
<summary>使用交互创建模式</summary>

![example](./readme/example-interact.png)
![example](https://raw.githubusercontent.com/lgc-NB2Dev/readme/main/pjsk/example-interact.png)

</details>

<details>
<summary>使用 Shell-Like 指令</summary>

![example](./readme/example.png)
![example](https://raw.githubusercontent.com/lgc-NB2Dev/readme/main/pjsk/example.png)

</details>

## 🙈 碎碎念
## 📞 联系

- ~~由于本人没玩过啤酒烧烤,~~ 可能出现一些小问题,可以提 issue 或者 [加群](https://jq.qq.com/?_wv=1027&k=l82tMuPG)反馈 ~~或者单纯进来玩~~
- 本项目仅供学习使用,请勿用于商业用途,喜欢该项目可以 Star 或者提供 PR,如果构成侵权将在 24 小时内删除
- [爱发电](https://afdian.net/a/agnes_digital)
### Agnes Digital

QQ 群: [424506063](https://jq.qq.com/?_wv=1027&k=l82tMuPG)

### student_2333

QQ:3076823485
Telegram:[@lgc2333](https://t.me/lgc2333)
吹水群:[1105946125](https://jq.qq.com/?_wv=1027&k=Z3n1MpEp)
邮箱:<[email protected]>

## 💡 鸣谢

Expand All @@ -162,8 +171,20 @@ plugins = [

感谢大家的赞助!你们的赞助将是我继续创作的动力!

### Agnes Digital

- [爱发电](https://afdian.net/a/agnes_digital)

### student_2333

- [爱发电](https://afdian.net/@lgc2333)
- <details>
<summary>赞助二维码(点击展开)</summary>

![讨饭](https://raw.githubusercontent.com/lgc2333/ShigureBotMenu/master/src/imgs/sponsor.png)

</details>

## 📝 更新日志

### 0.2.9
Expand Down
2 changes: 1 addition & 1 deletion nonebot_plugin_pjsk/__main__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from typing import List, Optional

from nonebot import logger, on_command, on_shell_command
from nonebot.adapters import Message
from nonebot.exception import ParserExit
from nonebot.internal.adapter import Message
from nonebot.matcher import Matcher
from nonebot.params import Arg, ArgPlainText, CommandArg, ShellCommandArgs
from nonebot.rule import ArgumentParser, Namespace
Expand Down
5 changes: 3 additions & 2 deletions nonebot_plugin_pjsk/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from typing_extensions import ParamSpec

import anyio
from anyio import to_thread
from imagetext_py import (
Canvas,
Color,
Expand Down Expand Up @@ -133,7 +134,7 @@ async def render_text(
padding = stoke_width

while True:
actual_size = await anyio.to_thread.run_sync(
actual_size = await to_thread.run_sync(
partial(
text_size_multiline,
lines=text_lines,
Expand Down Expand Up @@ -169,7 +170,7 @@ async def render_text(
if isinstance(stroke_color, str)
else Color(*stroke_color)
)
await anyio.to_thread.run_sync(
await to_thread.run_sync(
partial(
draw_text_multiline,
canvas=canvas,
Expand Down
24 changes: 12 additions & 12 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 2 additions & 58 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "nonebot-plugin-pjsk"
version = "0.2.9"
version = "0.2.9.post1"
description = "Project Sekai Sticker Creator for NoneBot2."
authors = [
{ name = "Agnes_Digital", email = "[email protected]" },
Expand Down Expand Up @@ -30,67 +30,11 @@ readme = "README.md"
license = { text = "MIT" }

[project.urls]
homepage = "https://github.com/Agnes4m/nonebot_plugin_pjsk"
homepage = "https://github.com/lgc-NB2Dev/nonebot-plugin-pjsk"

[tool.pdm.build]
includes = []

[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"

[tool.pyright]
pythonVersion = "3.8"

[tool.black]
line-length = 89
target-version = ["py39", "py310", "py311"]
include = '\.pyi?$'
# skip-string-normalization = true

[tool.ruff.isort]
extra-standard-library = ["typing_extensions"]

[tool.ruff]
ignore = [
"B008",
"B905",
"E501",
"FBT002",
"PGH003",
"RUF001",
"RUF002",
"RUF003",
"RUF006",
"RUF100",
"SIM117",
"TRY002",
"TRY003",
]
select = [
"A",
"ARG",
"ASYNC",
"B",
"C4",
"COM",
"E",
"F",
"FBT",
"FLY",
"I",
"ISC",
"N",
"PIE",
"PGH",
"PTH",
"PYI",
"Q",
"RET",
"RSE",
"RUF",
"SIM",
"SLF",
"SLOT",
"TRY",
]
Binary file removed readme/example-interact.png
Binary file not shown.
Binary file removed readme/example.png
Binary file not shown.
Binary file removed readme/wonderhoy.png
Binary file not shown.

0 comments on commit cbbf1c0

Please sign in to comment.