Fehlermeldung wenn TXT nicht erreichbar
This commit is contained in:
parent
7e5c5ec06c
commit
d9ef487bcb
@ -4,7 +4,7 @@ local function run(msg, matches)
|
|||||||
else
|
else
|
||||||
res,code = http.request('http://'..matches[1]..'.txt')
|
res,code = http.request('http://'..matches[1]..'.txt')
|
||||||
end
|
end
|
||||||
if code ~= 200 then return nil end
|
if code ~= 200 then return 'Fehler beim Laden der TXT' end
|
||||||
return res
|
return res
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user