Skip to content

Commit

Permalink
修复文件路径在 linux 下无法正确识别
Browse files Browse the repository at this point in the history
  • Loading branch information
SK-415 committed Nov 17, 2020
1 parent caafc1c commit 3b3663b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.prod
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ SUPERUSERS=[]
COMMAND_START=[""]

# HarukaBot Configs
HARUKA_DIR=".\\src\\data\\haruka_bot\\"
HARUKA_DIR="./src/data/haruka_bot/"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ HarukaBot 专注于订阅B站UP主们的动态与开播提醒, 并转发至QQ群

-`bot.py` 中添加 `nonebot.load_plugin("haruka_bot")`

- (可选) 在 `.env.prod``.env.dev` 中添加 `HARUKA_DIR=".\\data\\"`, 你也可以将 `.\\data\\` 改成任何其他路径.
> 如果不添加, HarukaBot 会将配置文件保存于其安装包位置的 `data` 文件夹下, 不推荐.
- (可选) 在 `.env.prod``.env.dev` 中添加 `HARUKA_DIR="./data/"`, 你也可以将 `./data/` 改成任何其他路径.
> 如果不添加, HarukaBot 会将配置文件保存于其安装包位置 (site-packages/haruka_bot) 的 `data` 文件夹下, 不推荐.
- 完成后重启 `NoneBot2` 实例即可使用

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "haruka-bot"
version = "1.0.2"
version = "1.0.3"
description = "Push dynamics and live informations from bilibili to QQ. Based on nonebot2."
authors = ["SK-415 <[email protected]>"]
license = "GPL-3.0-or-later"
Expand Down

0 comments on commit 3b3663b

Please sign in to comment.