Miao-Plugin for Yunzai-Bot

Overview

#Miao-Plugin说明

Miao-Plugin是一个Yunzai-Bot的升级插件,提供包括角色查询等升级功能。

一些实验性的新功能因功能可能不稳定,或者Yunzai-Bot存在类似功能,会在Miao-Plugin以插件形式提供,可按需选用。

部分非重复功能会在逐步稳定之后会合并入Yunzai-Bot。

具体功能可在安装插件后 通过 #喵喵帮助 进行查看。如需进行设置可通过 #喵喵设置 命令进行管理。

使用说明

Miao-Plugin需要最新版本的Yunzai-Bot,请确认Yunzai-Bot已升级至最新版

安装与更新

直接将miao-plugin放置在Yunzai-Bot的plugins目录下,重启Yunzai-Bot后即可使用。

推荐使用git进行安装,以方便后续升级。在BOT根目录夹打开终端,运行

git clone https://gitee.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/

进行安装。如需更新,在BOT文件夹打开终端,运行

git -C ./plugins/miao-plugin/ pull

免责声明

  1. 功能仅限内部交流与小范围使用,严禁将Yunzai-Bot及Miao-Plugin用于任何商业用途或盈利
  2. 图片与其他素材均来自于网络,仅供交流学习使用,如有侵权请联系,会立即删除

#其他

Comments
  • 载入插件错误:miao-plugin顺带反馈一个bug

    载入插件错误:miao-plugin顺带反馈一个bug

    载入插件错误:miao-plugin [YzBot][02:57:54.239][ERRO] Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'request' imported from /root/Yunzai-Bot/plugins/miao-plugin/components/Data.js at new NodeError (node:internal/errors:387:5) at packageResolve (node:internal/modules/esm/resolve:909:9) at moduleResolve (node:internal/modules/esm/resolve:958:20) at defaultResolve (node:internal/modules/esm/resolve:1173:11) at nextResolve (node:internal/modules/esm/loader:173:28) at ESMLoader.resolve (node:internal/modules/esm/loader:852:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:439:18) at ModuleWrap. (node:internal/modules/esm/module_job:76:40) at link (node:internal/modules/esm/module_job:75:36)

    —————————— bot更新了common,原路径“root/Yunzai-Bot/lib/common.js'”失效,现在应该是“root/Yunzai-Bot/lib/common/common.js”,报错的文件为“/root/Yunzai-Bot/plugins/miao-plugin/index.js”。

    opened by drpasserby 12
  • Yunzai V3老婆设置荧之后无法返回老婆照片

    Yunzai V3老婆设置荧之后无法返回老婆照片

    账号选的妹妹,绑定Cookie,老婆设置其他正常,设置荧之后老婆照片不能返回 有公共查询Cookie Windows和Linux下都失败 Yunzai commit 0384ac2c861a547c41a08b1ad811850547c2f719 Miao-plugin commit 909fea78cdf1381c7da68c1f755218c1a95f3321

    [YzBot][17:50:11.604][INFO] recv from: [Private: xxx(friend)] 老婆设置荧
    [YzBot][17:50:11.708][TRAC] send:MessageSvc.PbDeleteMsg seq:370
    [YzBot][17:50:11.724][MARK] [米游社查询][uid:xxx][使用已绑定ck:xxx]
    [YzBot][17:50:11.731][TRAC] send:MessageSvc.PbSendMsg seq:371
    [YzBot][17:50:11.732][MARK] [miao-plugin][dispatch] 老婆设置荧 处理完成 21ms
    [YzBot][17:50:11.743][TRAC] recv:MessageSvc.PbDeleteMsg seq:370
    [YzBot][17:50:11.955][TRAC] recv:MessageSvc.PbSendMsg seq:371
    [YzBot][17:50:11.956][INFO] succeed to send: [Private(xxx)] 老婆已经设置:荧
    [YzBot][17:50:19.136][TRAC] recv:MessageSvc.PushNotify seq:-250717964
    [YzBot][17:50:19.137][TRAC] send:MessageSvc.PbGetMsg seq:372
    [YzBot][17:50:19.248][TRAC] recv:MessageSvc.PbGetMsg seq:372
    [YzBot][17:50:19.249][INFO] recv from: [Private: xxx(friend)] 老婆照片
    [YzBot][17:50:19.321][TRAC] send:MessageSvc.PbDeleteMsg seq:373
    [YzBot][17:50:19.359][TRAC] recv:MessageSvc.PbDeleteMsg seq:373
    [YzBot][17:50:19.846][MARK] [米游社接口][character][xxx] 515ms
    
    [YzBot][17:40:20.373][MARK] [米游社查询][uid:xxx][使用已绑定ck:xxx]
    [YzBot][17:40:20.377][MARK] [miao-plugin][dispatch] 老婆设置荧 处理完成 5ms
    [YzBot][17:40:20.607][INFO] succeed to send: [Private(xxx)] 老婆已经设置:荧
    [YzBot][17:40:28.484][INFO] recv from: [Private: xxx(friend)] 老婆照片
    [YzBot][17:40:33.273][MARK] [米游社接口][character][xxx] 4720ms
    [YzBot][17:40:36.851][INFO] recv from: [Private: xxx(friend)] #老婆照片
    [YzBot][17:40:37.292][MARK] [米游社接口][character][xxx] 359ms
    

    设置其他正常

    [YzBot][17:53:14.290][INFO] recv from: [Private: xxx(friend)] 老婆设置神里
    [YzBot][17:53:14.354][TRAC] send:MessageSvc.PbDeleteMsg seq:387
    [YzBot][17:53:14.356][MARK] [米游社查询][uid:xxx][使用已绑定ck:xxx]
    [YzBot][17:53:14.359][TRAC] send:MessageSvc.PbSendMsg seq:388
    [YzBot][17:53:14.360][MARK] [miao-plugin][dispatch] 老婆设置神里 处理完成 5ms
    [YzBot][17:53:14.390][TRAC] recv:MessageSvc.PbDeleteMsg seq:387
    [YzBot][17:53:14.572][TRAC] recv:MessageSvc.PbSendMsg seq:388
    [YzBot][17:53:14.573][INFO] succeed to send: [Private(xxx)] 老婆已经设置:神里绫华
    [YzBot][17:53:21.034][TRAC] recv:MessageSvc.PushNotify seq:-241386409
    [YzBot][17:53:21.036][TRAC] send:MessageSvc.PbGetMsg seq:389
    [YzBot][17:53:21.157][TRAC] recv:MessageSvc.PbGetMsg seq:389
    [YzBot][17:53:21.160][INFO] recv from: [Private: xxx(friend)] 老婆照片
    [YzBot][17:53:21.235][TRAC] send:MessageSvc.PbDeleteMsg seq:390
    
    
    opened by persudo 8
  • 在设置好公共CK的情况下,极个别成员查看角色信息会报错

    在设置好公共CK的情况下,极个别成员查看角色信息会报错

    重做了服务器系统以后,设置公共CK,在所有人都没有绑定私人CK的情况下,绝大部分人能正常使用角色卡牌功能,极少数群员无法使用查询信息功能:如老婆,角色卡牌等,报错信息如下所示。

    [2022-05-22T22:50:35.831] [MARK] command - [xxx] #角色卡片:character [2022-05-22T22:50:35.834] [MARK] command - [xxx] #角色卡片:roleCard [2022-05-22T22:50:35.836] [ERROR] error - mysInfo.roleCard [2022-05-22T22:50:35.837] [ERROR] error - TypeError: cookieUser.getCookie is not a function at Object.Msg.getMysApi (file:///C:/GenshinBot/Yunzai-Bot/lib/components/Msg.js:170:25) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) at async GroupMessage.e.getMysApi (file:///C:/GenshinBot/Yunzai-Bot/lib/dealMsg.js:144:12) at async getMysApi (file:///C:/GenshinBot/Yunzai-Bot/lib/app/mysInfo.js:122:10) at async Module.roleCard (file:///C:/GenshinBot/Yunzai-Bot/lib/app/mysInfo.js:515:16) at async Object.dealMsg (file:///C:/GenshinBot/Yunzai-Bot/lib/dealMsg.js:191:19)

    opened by davidelectricfree 6
  • 请求面板时好时坏

    请求面板时好时坏

    请求面板时好时坏,坏的时候手动访问网址是没有问题的,但是依旧无法读取,而且坏的频率很高,发现其他群友也普遍有这样的问题。 具体报错如下: FetchError: request to https://enka.shinshin.moe/u/101408379/__data.json failed, reason: connect ETIMEDOUT 172.67.220.52:443 at ClientRequest. (file:///J:/bots/%E5%8E%9F%E7%A5%9E/Yunzai-Bot/node_modules/[email protected]@node-fetch/src/index.js:108:11) at ClientRequest.emit (node:events:520:28) at TLSSocket.socketErrorListener (node:_http_client:442:9) at TLSSocket.emit (node:events:520:28) at emitErrorNT (node:internal/streams/destroy:157:8) at emitErrorCloseNT (node:internal/streams/destroy:122:3) at processTicksAndRejections (node:internal/process/task_queues:83:21) { type: 'system', errno: 'ETIMEDOUT', code: 'ETIMEDOUT', erroredSysCall: 'connect' }

    opened by ISafive 5
  • 计算阵容伤害时,可能未考虑元素共鸣。(以甘鹤万班蓄力融化为例)

    计算阵容伤害时,可能未考虑元素共鸣。(以甘鹤万班蓄力融化为例)

    甘雨1精若水伤害(甘鹤万班词条伤害有问题)

    我带这套圣遗物,暴率已经到78%了。甘雨天赋再加20%,就是98%。

    在甘鹤万班队伍里,双冰共鸣加15%暴率,这时候暴率为113%,已经溢出了。

    也就是说,此时,暴击词条减少1条,增加任意1条其它有效词条,期望伤害都应该是上升的。但词条变换表格里显示的不对。

    我估计是没有考虑双冰共鸣,不知道具体是啥原因,反馈一下。

    opened by WeidongWan 1
Owner
Kokomi
Kokomi
The CCF Backstage Plugin is a tool to estimate energy use (kilowatt-hours) and carbon emissions (metric tons CO2e) from public cloud usage that is meant to be consumed as a plugin into a Backstage application

CCF Backstage Plugin Understand how your cloud usage impacts our environment and what you can do about it. This plugin brings the functionallity of th

Cloud Carbon Footprint 21 Nov 6, 2022
A plugin for the jQuery javascript library to generate small sparkline charts directly in the browser

jQuery Sparklines This jQuery plugin makes it easy to generate a number of different types of sparklines directly in the browser, using online a line

Gareth Watts 1.2k Jan 4, 2023
A Versatile and Expandable jQuery Plotting Plugin

jQPlot Pure JavaScript plotting plugin for jQuery. jqPlot home page: http://www.jqplot.com Users forum: http://groups.google.com/group/jqplot-users De

jqPlot 222 Sep 8, 2022
JQuery plugin for creating charts

JQuery Linechart JQuery plugin for building a linechart. Chart ruler completely on HTML/CSS/JS. Bar chart, calendar view visualisation. Diagram, graph

Kirill Stepkin 42 Oct 25, 2022
JQuery plugin for creating charts

JQuery Linechart JQuery plugin for building a linechart. Chart ruler completely on HTML/CSS/JS. Bar chart, calendar view visualisation. Diagram, graph

Kirill Stepkin 42 Oct 25, 2022
Zoom and pan plugin for Chart.js

chartjs-plugin-zoom A zoom and pan plugin for Chart.js >= 3.0.0 For Chart.js 2.6.0 to 2.9.x support, use version 0.7.7 of this plugin. Panning can be

Chart.js 510 Jan 2, 2023
Chart.js plugin for more styling options

chartjs-plugin-style Chart.js plugin for more styling options This plugin requires Chart.js 2.6.0 or later. Installation You can download the latest v

Akihiko Kusanagi 57 Oct 27, 2022
Chart.js plugin for live streaming data

chartjs-plugin-streaming Chart.js plugin for live streaming data chartjs-plugin-streaming 2.x requires Chart.js 3.0.0 or later. If you need Chart.js 2

Akihiko Kusanagi 401 Dec 27, 2022
This plugin for Chart.js that makes your bar chart to 100% stacked bar chart.

chartjs-plugin-stacked100 This plugin for Chart.js that makes your bar chart to 100% stacked bar chart. Requires Chart.js 3.x. Demo: https://y-takey.g

y-take 106 Jan 3, 2023
Chart.js plugin to create charts with a hand-drawn, sketchy, appearance

chartjs-plugin-rough Chart.js plugin to create charts with a hand-drawn, sketchy, appearance Version 0.2 requires Chart.js 2.7.0 or later, and Rough.j

Akihiko Kusanagi 73 Dec 1, 2022
Chart.js plugin to calculate and draw statistical linear, exponential, power, logarithmic, and polynomial regressions.

chartjs-plugin-regression Chart.js plugin to calculate and draw statistical linear, exponential, power, logarithmic, and polynomial regressions using

Wilfredo Pomier 14 Dec 18, 2022
Draggable data points plugin for Chart.js

chartjs-plugin-dragdata.js Now compatible with Chart.js v3 ?? Looking for a version compatible to Chart.js < 2.9.x? Then visit the v2 branch! A plugin

Christoph Pahmeyer 196 Dec 18, 2022
Chart.js plugin to defer initial chart updates

Chart.js plugin to defer initial chart updates until the user scrolls and the canvas appears inside the viewport, and thus trigger the initial chart a

Chart.js 97 Nov 9, 2022
Chart.js plugin for Prometheus data loading

Welcome to chartjs-plugin-datasource-prometheus ?? A Prometheus datasource for ChartJS. Dependencies: requires chart.js 2.7 or later. requires moment.

Samuel Berthe 77 Dec 6, 2022
Chart.js plugin to display labels on data elements

Overview Highly customizable Chart.js plugin that displays labels on data for any type of charts. Requires Chart.js 3.x. Documentation Introduction Ge

Chart.js 753 Dec 24, 2022
Crosshair plugin for ChartJS

Chart.js plugin to draw vertical crosshair, zoom, interpolate values and sync chart interactions. Requires Chart.js 3.4.0 or later. Documentation Inst

Abel Heinsbroek 118 Dec 12, 2022
Annotation plugin for Chart.js

chartjs-plugin-annotation.js An annotation plugin for Chart.js >= 3.0.0 This plugin needs to be registered. It does not function as inline plugin. For

Chart.js 515 Dec 30, 2022
Reveal.js plugin for marking selected lines or regions of text

Reveal.js / Mark.js plugin Based on the highlight plugin from Reveal.js, which supports animated marking (emphasizing) of specific code regions by lin

stlab 3 Aug 9, 2022
A logseq plugin that lets you find #tags

Logseq Tags Plugin A plugin that lets you find and search all of your #tags. This plugin will query and list all #tags, #[[tags]] and page-tags(tags::

Gidong Kwon 98 Dec 29, 2022