Coder Social home page Coder Social logo

auto-plugin's Introduction

🌟 I'm Nwflower

📖 Learning

🌍 Environment

🎮 Playing Games

  • Genshin Impact
  • ...

🎮 My Genshin Info

Genshin

auto-plugin's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

auto-plugin's Issues

自动更新群名片

自动更新群名片模块,有些模块例如微博热搜不想要,直接删除文件后台会报错,请问应该怎么操作只保留需要的模块。

任务表命令报错

麻烦大佬看一下

0|Yunzai-Bot | [YzBot][23:53:58.224][MARK] [自动化插件_指令表][autoJobs][私聊][开朗的网友()] #任务表
0|Yunzai-Bot | [YzBot][23:53:58.225][ERRO] [自动化插件_指令表][autoJobs]
0|Yunzai-Bot | [YzBot][23:53:58.226][ERRO] TypeError: Cannot read properties of null (reading 'nextInvocation')
0|Yunzai-Bot | at file:///root/Yunzai-Bot/plugins/auto-plugin/app/autoCommandHelp.js:72:27
0|Yunzai-Bot | at Array.forEach ()
0|Yunzai-Bot | at autoCommandHelp.autoJobs (file:///root/Yunzai-Bot/plugins/auto-plugin/app/autoCommandHelp.js:71:17)
0|Yunzai-Bot | at PluginsLoader.deal (file:///root/Yunzai-Bot/lib/plugins/loader.js:273:55)
0|Yunzai-Bot | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

功能请求:希望能支持群名片分群聊更新

具体来说就是,希望能不要每次都一秒内把所有群聊的群名片都改了,可以分配到一分钟的几个时间点。
比如我有三个群,cron表达式0/7 0/4 * * * ? *对应执行时间

2023-02-27 14:36:00
2023-02-27 14:36:07
2023-02-27 14:36:14
2023-02-27 14:36:21
2023-02-27 14:36:28

就希望能第一次更新第一个群,第二次更新第二个群,第三次更新第三个群,第四次更新第一个群这样。

一秒内全部群名片都更新怕QQ犯贱。

插件发出指令时报错

SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at Response.json (file:///root/Yunzai-Bot/node_modules/.pnpm/[email protected]/node_modules/node-fetch/src/body.js:148:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async answer (file:///root/Yunzai-Bot/plugins/hs-qiqi-plugin/apps/ai.js:406:9)
自动化插件所有指令都会报这个

群后缀怎么实现Cpu使用率获取,os.cpus()使用格式是啥

我这样改的话报错了无法加载
import os from "os";
import setting from "../setting.js";
/*

  • 名片更新模块示例:内存占用百分比
    */
    export function NameCardContent() {
    let config = setting.getConfig('autoGroupName')
    let Cpu = (os.cpus()).toFixed(config.fix).toString()
    let Memory = ((1 - os.freemem() / os.totalmem()) * 100).toFixed(config.fix).toString()
    return 脑负荷:${Cpu}% 脑容量:${Memory}%
    }

更新群名片似乎触发风控?

机器人在启动后正常恢复了群名片,过了一会更新了一次群名片 然后就不更新了
autoGroupName.yaml配置如下
V49$%C1690O_K)0_@JFU{M4
插件正常载入,后台无报错
这是插件列表 我自己没看出有冲突插件 flower-plugin是新版 不包括老版的群名片更新
BG)GH4GKIP7Y1TY{FFD NHG
$WEO5EELZJ7L0OBWFI}9_LH
操作系统 winserver 2016简中
机器人登录协议为安卓手表
包含100+群,700+好友

尝试手动更新好像也没用
W{7QXNZ@{OQ5{9I_3GWL $7
R50$}8N)VV 0NA1VRB N7X5

另外建议尝试更新群名片时后台输出Mark日志 便于测试

请求自动更新全部插件能否也cron化

你好~ 目前“自动更新全部插件”功能开启就是每日必更,能否也添加“cron定时表达式”来自定义日期?

我的情况是,梯子不能一直开(卡客户端数故定时了),他每日更涉及github的更新就全报错,有点担心太多插件之间不一起更新,导致冲突报错。

插件安装后导致锅巴端口被占用

[21:48:39][mark] [Guoba] 端口号 50831 已被占用,正在进行第 1 次重试…
[21:48:42][error] [object Object]
[21:48:48][mark] [Guoba] 端口号 50831 已被占用,正在进行第 2 次重试…
[21:48:57][mark] [Guoba] 端口号 50831 已被占用,正在进行第 3 次重试…
[21:49:06][error] [Guoba] 启动失败,端口号 50831 被占用,请尝试关闭该端口或更换锅巴的端口号

安装完插件并且启动云崽时,后台先是提示锅巴的端口被占用,然后就是错误日志刷屏。删除插件后,云崽能正常使用。

icqq似乎无法更新群名片

目前不少云崽(比如喵喵云崽)已经把登录问题频出的oicq换成了icqq,我也跟着更了。

似乎是在换成icqq后无法更新群名片了。我稍微修改了下原代码来排差原因,最终确认是autoGroupName的setGroupCard函数出了问题,通过日志可以观察到BOT认为自己已经更改群名片,但是实际没有。具体查证/日志如下:

Z@_V(J1(6@O}MPEZ4G@L_PY

如图所示,为了确认问题所在做了一点更改,不会影响插件正常工作。下图是日志。

IR~CMU0 SPXX0SPBO{O)BXV

仔细观察日志的这个部分(见下图),可以发现BOT认为当前群名片是不吃头发的爱丽丝|当前系统活力43.30%,然后尝试更改为不吃头发的爱丽丝|当前系统活力42.64%

image

但是实际上QQ群里看到的群名片始终没有改变,如下图。

)WM01LFR7YZBHM`_(8K9YDI

自动群名片后缀api失效

image
如图,因为这些热搜的js载入失败,所以连带着其他的也乱了,现在没法设置后缀也没法自动更新后缀了

报错

image 这个报错怎么解决啊?

#定时指令 的权限在哪里配置?

群友使用这一功能会返回你没有权限,读过readme并在仓库内搜索过权限相关内容,没有找到配置权限的地方,请问该如何处理?

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.