乐某人
msg_order = {}
function cs(msg)
if(tonumber(msg.fromQQ) ~= 2083497680 and tonumber(msg.fromQQ) ~= 3388126692)then
return “{nick}没有权限”
end
num = getUserConf(12345678900,“a”,0)
num = num + 1
name = “luaDraw”..num
file = getDiceDir()..“//plugin//luaDraw.lua”
file = io.open(file,“a”)
rest = string.match(msg.fromMsg,“^[%s](.+)[%s]$”,#“.add牌堆”+1)
if(rest == "" or rest == nil)then
return “请{nick}输入牌堆名称”
end
file:write([[
function ]]..name..[[(msg)
return eventMsg(“.draw]]..rest..[[”,msg.fromGroup,msg.fromQQ)
end
msg_order[“]]..rest..[[”] = “]]..name..[[”]])
file:close()
setUserConf(12345678900,“a”,num)
eventMsg(“.system load”, msg.fromGroup, msg.fromQQ)
return “已添加快捷抽取”..rest
end
msg_order[“.add牌堆”] = “cs”