zzbslayer

Results 24 comments of zzbslayer

很抱歉,这个暂时不支持。我争取这周把这个功能加上去。 我看了看代码,原作者设计的预约接口是支持周目预约的,结果最后没有实现……

Then we may need to add a `is_bot` function for UserInterface.

`mention` in telegram is totally different from other platform. It is `@nickname` in telegram but `@id` in others. This may influence the behavior of some functionality in `clanbattle v2` because...

So this issue can be assigned to you ?

For the RESOURCE_DIR, just mount the directory to the container by `-v`. ```bash docker run -d --name=hoshino \ -v ~/.hoshino:/root/.hoshino \ -p 8080:8080 \ hoshino ```

I see. README updated in the latest commit.

Basically, there're 3 advantages to deploy Hoshino with docker. 1. Hoshino can be run as daemon without python-daemon. 2. Environment isolation. No need for `pyvenv`, `conda`, or other virtual environment....

docker部署优点在于隔离性好,无须任何额外环境配置。 我提供了docker部署的feature,但并不影响你直接在linux上运行。 至少我看好几个想用Hoshino的人,连配环境都不会,有各种各样的问题(我自己配环境的时候也因为系统缺少_sqlite 导致我得自行编译python3.8,属实麻烦)。他们也不会conda等工具管理虚拟环境,这种情况下,docker一键部署对他们来说是一个更好的选择。(连配环境都不会,所以他们当然更不会去改代码了…)

Dockerfile 一般都是本地将代码和配置文件拷贝到容器内,不知道你是想怎么做? 如果是为了更方便的修改config.json,可以在config.json中允许使用环境变量赋值。 然后通过 docker-compose来启动,这样修改compose配置文件中的环境变量,就相当于修改了config.json配置。

环境变量是修改docker中的配置的常用手段。比如cqhttp镜像就是通过环境变量来修改配置文件。