lua-mirai
lua-mirai copied to clipboard
关于扩展方法
Is your feature request related to a problem? Please describe. 续上个Issues 因方法未支持而无法调用(更改权限)
function xxx(event)
event.group:get(任意QQ号).isAdministrator=布尔值--使用简写,更改权限,不是输出权限
--执行报错:attempt to index ? (a nil value)
end
~~print权限倒是可以用其他方法(引用了回复)~~
print(event.group:get(QQ).permission)
Describe the solution you'd like 支持这些扩展方法,以及尝试添加更多方法,实现更全面的操作 如果支持扩展方法或增加方法需要很长时间,我建议让bot和group对象有skey和pskey这些成员,来更方便操作
local body,data=Http.get("域名/api/xxx.php?skey="..event.bot..skey.."&pskey="..event.group.pskey)
--继续执行...
辛苦你了