试了一下RainChain大佬提供的lua脚本思路来实现禁言功能,代码如下:
`msg_order = {}
function drawtab(tab)
return tab[ranint(1, #tab)]
end
msg_order[“禁言”]=“shut”
function shut(msg)
local banq = msg.fromMsg
local time = {1, 2, 3, 4, 5}
eventMsg(“.group ban ” .. banq .. drawtab(time), msg.fromGroup, msg.fromQQ)
end`