lua-mirai icon indicating copy to clipboard operation
lua-mirai copied to clipboard

Mirai机器人的lua扩展支持

Results 14 lua-mirai issues
Sort by recently updated
recently updated
newest added

**Is your feature request related to a problem? Please describe.** [续上个Issues](https://github.com/only52607/LuaMiraiForAndroid/issues/10) 因方法未支持而无法调用(更改权限) ```lua function xxx(event) event.group:get(任意QQ号).isAdministrator=布尔值--使用简写,更改权限,不是输出权限 --执行报错:attempt to index ? (a nil value) end ``` ~~print权限倒是可以用其他方法(引用了回复)~~ ```lua print(event.group:get(QQ).permission) ``` **Describe...

比如我写了一个判断是不是等于菜单,然后机器人就会发出消息,一个群发没事,但多个群发机器人就没反应了,必须重启机器人。老版本没这个问题,可以后台稳定挂几个星期,更新了最新的就出现了这种问题。但老版本没有合并转发就很难受。希望作者可以修修

more-info-needed

post无论怎么写都提示缺少body

more-info-needed

``` org.luaj.vm2.LuaError: Event.subscribe("FriendMessageEvent", function(event) local reply = tostring(event.message):gsub("吗",""):gsub("?","!"):gsub("?","!") event.friend:sendMessage(Quote(msg) .. reply) end) -- 在mirai-console环境下可忽略下列代码 local bot = Bot(xx,"xx",{ fileBasedDeviceInfo = "device.json" }) bot:login():3 bad argument: userdata expected, got nil at...

documentation

如题,我首先创建了一个文件名为bv_to_av.lua的文件,源码为以脚本中心中的bv转av为模板的小改版本(如图), ![image](https://user-images.githubusercontent.com/53561490/129567034-774c577c-928a-4360-a662-3ecf55fb59b3.png) 然后load,一切正常,如图 ![image](https://user-images.githubusercontent.com/53561490/129567284-84241f43-978f-43a3-bbb5-8f219e5e0c9c.png) 然后删除此脚本,load另一个源码一模一样的脚本(barbarian.lua),不正常工作,如图 ![image](https://user-images.githubusercontent.com/53561490/129567474-0aa65277-9ba3-435f-94c6-e5563143c95a.png) 对这个现象感到疑惑,想问一下这个是bug吗

problem
more-info-needed

**Describe the bug** 好像不能用指令 **To Reproduce** Steps to reproduce the behavior: 1.把jar安装到了服务器的plugins文件夹 2.重启bot 3.测试/lua,返回帮助词条 4.测试/lua script list,返回报错 **Expected behavior** 无 **Screenshots** ![Screenshot_2022-03-26-10-50-04-23.jpg](https://user-images.githubusercontent.com/44714368/160222325-7ebf5459-7995-484a-a92f-94de0b951abf.jpg) **Desktop (please complete the following information):** 无 **Smartphone...

bug
console

如题,请为 Member 对象添加 更改群名片 方法,不胜感激。

不知道是mirai的问题还是luamirai

more-info-needed

那如果要获取操作者应该怎么弄啊 ![图片](http://gchat.qpic.cn/gchatpic_new/0/0-0-E611E4B6E348CEAE693BE73A9C5A5D6D/0?term=2)

documentation

之前私聊提及的并且表示以后可能会增加的 我放这里方便查看。 > 1.无法查看IntArray数组,等后续支持转table > 2.异步线程的支持 (线程放sleep会无限循环且无法停止) 下面是个人建议,不过需求不大。可不做考虑。 >期待增加[MiraiCode.deserializeFromMiraiCode](https://github.com/mamoe/mirai/blob/dev/docs/Messages.md#%E6%B6%88%E6%81%AF%E9%93%BE%E7%9A%84-mirai-%E7%A0%81)