This repository has been archived on 2021-04-24. You can view files and clone it, but cannot push or open issues or pull requests.
Mikubot/plugins/get_txt.lua
2016-01-11 19:39:19 +01:00

13 lines
234 B
Lua

local function run(msg, matches)
local res,code = http.request(matches[1]..'.txt')
if code ~= 200 then return nil end
return res
end
return {
description = "",
usage = "",
patterns = {"^https?://(.*).txt$"},
run = run
}