Skip to content

Commit

Permalink
Update i2i.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
HsiangNianian committed Dec 20, 2022
1 parent 6b0cecd commit 83fbd28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/i2i.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local raw = msg.fromMsg
local images = raw:sub(#'/i2i' + 1)

if not images:match("%[CQ:image") then return "笨蛋{nick},你的图呢?" end
-- 以图绘图核心
-- 以图绘图核心 :s
if images:match('%[CQ:image(.*)http') then
url = "https://" .. raw:match('https?://(.*)%]')
else
Expand Down

0 comments on commit 83fbd28

Please sign in to comment.