大变:移动了很多很多文件并优化构建流程
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-09-30 02:23:40 +08:00
parent 3b8b060c5b
commit 6e0082c1c9
28 changed files with 28 additions and 30 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 219 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 272 KiB

View File

@ -1,8 +1,8 @@
from imagetext_py import EmojiOptions, FontDB
from .path import ASSETS
from konabot.common.path import FONTS_PATH
FontDB.LoadFromDir(str(ASSETS))
FontDB.LoadFromDir(str(FONTS_PATH))
FontDB.SetDefaultEmojiOptions(EmojiOptions(
parse_shortcodes=False,

View File

@ -1,3 +0,0 @@
from pathlib import Path
ASSETS = Path(__file__).parent.parent.parent / "assets"

View File

@ -4,10 +4,11 @@ from typing import Any, cast
import imagetext_py
import PIL.Image
from .base.fonts import HARMONYOS_SANS_SC_BLACK
from .base.path import ASSETS
from konabot.common.path import ASSETS_PATH
geimao_image = PIL.Image.open(ASSETS / "geimao.jpg").convert("RGBA")
from .base.fonts import HARMONYOS_SANS_SC_BLACK
geimao_image = PIL.Image.open(ASSETS_PATH / "img" / "meme" / "geimao.jpg").convert("RGBA")
def _draw_geimao(saying: str):

View File

@ -3,10 +3,11 @@ import asyncio
import imagetext_py
import PIL.Image
from .base.fonts import HARMONYOS_SANS_SC_REGULAR
from .base.path import ASSETS
from konabot.common.path import ASSETS_PATH
pt_image = PIL.Image.open(ASSETS / "ptsay.png").convert("RGBA")
from .base.fonts import HARMONYOS_SANS_SC_REGULAR
pt_image = PIL.Image.open(ASSETS_PATH / "img" / "meme" / "ptsay.png").convert("RGBA")
def _draw_pt(saying: str):