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

13 lines
225 B
Lua
Raw Normal View History

2015-11-12 17:42:03 +01:00
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 = {"^(.*).txt$"},
run = run
}