Files
HeXi/hexi/plugins/nonebot_plugin_group_tools/constants.py
T

17 lines
633 B
Python
Raw Normal View History

from pathlib import Path
# 插件根目录(放 dk_is_me.jpg 等根级资源)
PLUGIN_ROOT = Path(__file__).resolve().parent
IMG_DIR = PLUGIN_ROOT
# 资源目录:res/ 下的 record/ 与 img/
RES_DIR = PLUGIN_ROOT / "res"
# 视频临时目录(项目数据目录下)
TEMP_DIR = PLUGIN_ROOT.parents[1] / "data" / "temp"
# 违禁词(触发黑手语音)
BANNED_WORDS = (
"rbq", "RBQ", "憨批", "废物", "死妈", "崽种", "傻逼", "傻逼玩意",
"没用东西", "傻B", "傻b", "SB", "sb", "煞笔", "cnm", "爬", "kkp",
"nmsl", "D区", "口区", "我是你爹", "nmbiss", "弱智", "给爷爬", "杂种爬", "爪巴",
)