Git Product home page Git Product logo

Comments (6)

ilharp avatar ilharp commented on June 20, 2024

https://forum.koishi.xyz/t/topic/7455/3

在论坛这个问题已经回答过无数遍,一个 Koishi 实例中一个插件可以存在 0 个、1 个或多个实例,就像电脑上的软件可以开启多份一样。插件配置右上角可以添加或删除任意个数的插件。

有关 Koishi 使用方面的问题可以在 Discussions 版 的 Q&A 区 提问。Issue 主要用于反馈 Koishi 本身的 bug。

from koishi.

TszcWhut avatar TszcWhut commented on June 20, 2024

大概理解了 是为了兼容多账号吧,但是插件添加以后会重载页面回到首页,需要重新去插件市场搜索此插件(虽然目前保留了搜索记录)但是多次点击的体验还是有点割裂感的,要是可以的话 能不能在增加一个按钮【添加插件并配置】, 热重载后再自动读取SessionStorage里的待更新插件列表到插件配置菜单页面 可能会好一点

from koishi.

shigma avatar shigma commented on June 20, 2024

Koishi 的插件市场有两种安装模式:普通安装和批量安装。

普通安装后,会立即创建插件配置并跳转;批量安装时可以批量选择,且安装后也不会创建配置。

按理说是会显示的,你是什么操作流程?

from koishi.

ilharp avatar ilharp commented on June 20, 2024

是为了兼容多账号吧

多账号是插件重用实现的其中一类功能;还有很多其他不同的功能。

例如,我需要管理两个不同艺人的粉丝群,每个群都需要有如下功能:

  • 入群欢迎,两个群需要有不同的欢迎语;
  • 社交平台推送,每个群需要实时推送各自艺人的社交动态;

此时,我可以开发「入群欢迎」和「社交平台推送」两个插件,之后对每个群创建、配置并启动一个插件的实例,最后将两组插件按群移入两个不同的分组内。我可以对每个分组调整其所属的上下文(对哪个群生效),或是临时停用/启用某一个群分组下的所有插件。换句话说, 插件重用使用户可以按照自己需要的切面来组织插件。


要是可以的话 能不能在增加一个按钮【添加插件并配置】, 热重载后再自动读取SessionStorage里的待更新插件列表到插件配置菜单页面 可能会好一点

SessionStorage 确实是一个不错的方法;但就目前的情况来讲,插件安装后控制台刷新这件事本身可以被解决。解决此问题以后可以再看后续行为。


按理说是会显示的,你是什么操作流程?

目前有部分插件安装后会导致 Koishi 重启或是控制台刷新,之后可以看看原因。

from koishi.

TszcWhut avatar TszcWhut commented on June 20, 2024

Koishi 的插件市场有两种安装模式:普通安装和批量安装。

普通安装后,会立即创建插件配置并跳转;批量安装时可以批量选择,且安装后也不会创建配置。

按理说是会显示的,你是什么操作流程?

安装的分别是 adapter-onebot 和 image-search 这两个插件,就正常的在插件市场搜索插件并点击添加按钮进行安装,点击安装后就都会自动重启刷新页面;可能和我提到的另一个bug有关系,因为只使用过Docker版不知道其他版本的情况,刚刚看到image更新了,也尝试过更新了容器image:latest,重新部署过,依然会出现这个问题
可能相关的bug:
WARN: app Error: EMFILE: too many open files, watch '/koishi'

from koishi.

shigma avatar shigma commented on June 20, 2024

哦自动重启问题暂时无法解决,可能需要等到 v5。

如果不自动重启的话就应该是按我说的行为来的,因此你遇到的问题本质上是自动重启导致的。而自动重启是另一个 bug 的 workaround:koishijs/webui#273

from koishi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.