LuaMiraiForAndroid icon indicating copy to clipboard operation
LuaMiraiForAndroid copied to clipboard

LuaMirai安卓客户端

Results 8 LuaMiraiForAndroid issues
Sort by recently updated
recently updated
newest added

**Describe the bug** 未知原因,在**thread使用Bot相关代码**会导致整个软件层的闪退 包括但不限于 ①直接使用Bot(QQ号) ②变量赋值Bot对象并调用 **To Reproduce** ①编写对应代码(**thread**代码套**Bot代码**) ```lua thread(function()--线程 --原本有while,后来用了sleep也不好使 --因此删除了while true do,但不影响闪退 g=Bot(qq):getGroup(群号) end) ``` ②导入脚本并(在有Bot在线时)执行 ③恭喜,闪退了 **Expected behavior** 没有症状,直接闪退,且没有错误日志 **Screenshots** 由于前面是**线程执行**loadstring/loadfile内**包含Bot指令**(脚本前面给mybot赋值了自动获取的Bot对象,因此此截图仍然适用) ![Screenshot_20220823_121510](http://user-images.githubusercontent.com/92676720/186068594-ae3c8ea7-31aa-46d0-8019-c332fb338ddd.jpg)(注:前面有调用过变量执行**Bot命令**,读取文件执行会闪退,而图片问题虽不与更改后的Issues内容相关,但也可能是在**线程**中使用loadstring出现的部分代码无法执行的问题) ![Screenshot_20220823_121344](http://user-images.githubusercontent.com/92676720/186068639-4b7b2b4e-6710-4403-9e26-7f7c3cdcc0ee.jpg) ![Screenshot_20220823_121641](http://user-images.githubusercontent.com/92676720/186068660-d1d3c1d8-b467-48ee-a1f6-14d899098c70.jpg) (注:没有执行os.exit)...

bug

**Describe the bug** 以下均为java.lang.reflect.InvocationTargetException异常 执行已存在的方法出错 ```lua event.group:setName("测试")--修改群名称? ``` 在执行下面的代码时出现异常 ```lua local mb=event.group:get(tonumber(任意在群里的QQ号))--转换成Member以执行 event.group:sendMessage("尝试执行中...") local time=60*60*60*24*29--简易计算 mb:mute(time)--禁言(异常处) ``` **To Reproduce** Steps to reproduce the behavior: 对任意Member调用方法mute即可,而且不局限于禁言,部分方法都会出现此异常(比如代码中出现但未在文档中出现的Group:setName(String)也无法调用) **Expected behavior** 出现java.lang.reflect.InvocationTargetException错误,无法执行 **Screenshots** ![image](https://user-images.githubusercontent.com/92676720/175809305-1bd6395e-3a03-4067-8a61-20f8df827cb3.png)...

**Is your feature request related to a problem? Please describe.** 我在做脚本的时候经常需要reload,但是需要回去手动开关,而且脚本位置在内置数据目录("/data/data/com.ooooonly.lma/flies/scripts"),需要root权限才能编辑,而且以数字命名,不易分辨 **Describe the solution you'd like** ①重载脚本 实时检测(不太现实) ②脚本位置以及编辑 可以尝试转移外置存储(如"/sdcard/LuaMirai/scripts/"),并不使用随机数字命名(建议在添加脚本时让用户自行为文件取名) **Describe alternatives you've considered** ①为脚本提供新代码:reload()--重新载入脚本 ②内置脚本代码编辑器 **Additional context**

**Describe the bug** 无法调用已定义的(中文名)函数? **To Reproduce** Steps to reproduce the behavior: ①在脚本任意位置编写(function xxx() end , xxx={["xx"]=function() end}(这个有时候不行) 或 xxx=function() end 形式) ②调用 ③在绝大多数情况下都会出错:attempt to index ? (a nil value) ***我已将错误信息在必应搜索,但未能找到原因***...

放function里无报错 还以为是我写错了 拿出来才有报错 文档有3个参数 url body config 全写上还提示 method POST must have a request body. 换了多个api测试一下午 应该能确定不是我的问题 发起issue ` Http.post("http://api.tianapi.com/hotreview/index","key=key") ` 改了好几次 github没办法换行 凑合看吧 已测试mirai最新版pc安卓都此情况

![日志中emoji显示异常](https://user-images.githubusercontent.com/92676720/169311450-5565ea24-71bb-4336-9497-8cb36d5c25c5.png) 图中原本显示的"💮悲凉💮"已经显示出错,可能是被转义或是其他原因 连同"悲"一起异常

bug

使用的是最新版LuaMirai的apk包 问题一:io库的读写无法使用 导入脚本时,已授予一个储存权限,但脚本内无法使用io库的写入文件功能。需要自己去AndroidManifest.xml中添加``权限,添加完成后手动授权可使用io库。 该问题出现时无报错日志。 问题二:require、loadfile和dofile等函数加载外部文件 1.脚本内容 共两个脚本,分别为“测试.lua”和“mod.lua”,存放在/sdcard/RotoGame/scripts/目录下,“测试.lua”作为主文件导入软件内加载。 “测试.lua”内容如下: ``` -- LuaMiraiScript -- -- name: 测试 -- author: DM -- version: 1.0 -- description: 测试 -- /LuaMiraiScript -- print(package.path) --[[local a...

enhancement

比如自己修改devices.json,自行更换较新的mirai-core,支持扫码登录&向手机qq发送登录请求以快捷登录?