Lua解析中出现字符串预期错误。

我正在尝试解析 PHP 页面 http://martinz.ru/bash/index.php

function run(msg, matches)
    b = http.request("martinz.ru/bash/index.php")  -- 第8行
    local hol = string.sub (b, 1)
    return hol
end

但控制台输出写入错误:

*** lua: plugins/hol.lua:8: bad argument #1 to 'sub' (string expected, got table)

有任何想法吗?

点赞