Last edit: @kyork in #marvin-dev 2 years ago - Slack Archive

{lua} local resp = requests.get("http://ishtar.xn--rpa.cc/bot/argue")
local t = resp:text()
local start = t:find("<h1>argue</h1>") + #"<h1>argue</h1>" + 1
local finish = t:find("</div>", start) - 1
return string.gsub(t:sub(start, finish), "%s*$", "")

History

Revision: 1151 by @kyork in #marvin-dev 2 years agoSlack Archive

{lua} local resp = requests.get("http://ishtar.xn--rpa.cc/bot/argue")
local t = resp:text()
local start = t:find("<h1>argue</h1>") + #"<h1>argue</h1>" + 1
local finish = t:find("</div>", start) - 1
return string.gsub(t:sub(start, finish), "%s*$", "")

Revision: 1150 by @kyork in #marvin-dev 2 years agoSlack Archive

{lua} local resp = requests.get("http://ishtar.xn--rpa.cc/bot/argue")
local t = resp:text()
local start = t:find("<h1>argue</h1>") + #"<h1>argue</h1>"
local finish = t:find("</div>", start) - 1
return string.gsub(t:sub(start, finish), "%s*$", "")

Revision: 1149 by @kyork in #marvin-dev 2 years agoSlack Archive

{lua} local resp = requests.get(http://ishtar.xn--rpa.cc/bot/argue) local t = resp:text() local start = t:find(h1argue/h1) + #h1argue/h1 local finish = t:find(/div, start) - 1 return string.gsub(t:sub(start, finish), %s*$, )