Last edit: @pjha in <!error getting other user for D7SC58AD8> 2 years ago - Slack Archive

{lua}for k,v in pairs(slack) do
    print(k);
    print(v);
end

History

Revision: 4870 (deleted) by @bryce.tucker.0598 in <!error getting other user for DBHM9SVE0> 8 months agoSlack Archive

{lua}
f = factoid[args]
for line in f.raw:lines() do print(line) print ("\n\n") end

Revision: 4869 (deleted) by @bryce.tucker.0598 in <!error getting other user for DBHM9SVE0> 8 months agoSlack Archive

{lua}
f = factoid[args]
for line in f.raw:lines do print(line) print ("\n\n") end

Revision: 4868 (deleted) by @bryce.tucker.0598 in <!error getting other user for DBHM9SVE0> 8 months agoSlack Archive

{lua}
f = factoid[args]
function func() return f.raw end
func

Revision: 4867 (deleted) by @bryce.tucker.0598 in <!error getting other user for DBHM9SVE0> 8 months agoSlack Archive

{lua}
f = factoid[args]
function func() f.raw end
func

Revision: 4866 (deleted) by @bryce.tucker.0598 in <!error getting other user for DBHM9SVE0> 8 months agoSlack Archive

{lua}
f = factoid[args]
function func() = f.raw end
func

Revision: 4865 (deleted) by @bryce.tucker.0598 in <!error getting other user for DBHM9SVE0> 8 months agoSlack Archive

{lua}local f = factoid[args]
local function func = f.raw return nil end
func

Revision: 4864 (deleted) by @bryce.tucker.0598 in <!error getting other user for DBHM9SVE0> 8 months agoSlack Archive

{lua}local f = factoid[args]
local function func = f.raw end
func

Revision: 4863 (deleted) by @bryce.tucker.0598 in <!error getting other user for DBHM9SVE0> 8 months agoSlack Archive

{lua}local f = factoid[args]
local function func = f.raw
func

Revision: 4862 (deleted) by @bryce.tucker.0598 in <!error getting other user for DBHM9SVE0> 8 months agoSlack Archive

{lua}local f = factoid[args] f.raw

Revision: 4861 (deleted) by @bryce.tucker.0598 in <!error getting other user for DBHM9SVE0> 8 months agoSlack Archive

{lua}local f = factoid[args] dofile(f.raw)

Revision: 4860 (deleted) by @bryce.tucker.0598 in <!error getting other user for DBHM9SVE0> 8 months agoSlack Archive

{lua}local f = factoid[args] dofile(f.raw) end

Revision: 4859 (deleted) by @bryce.tucker.0598 in <!error getting other user for DBHM9SVE0> 8 months agoSlack Archive

{lua}local f = factoid[args] if not f.exists then print("<no such factoid>") else print("{raw}") print("```") print(f) print("```") end

Revision: 4858 (deleted) by @bryce.tucker.0598 in <!error getting other user for DBHM9SVE0> 8 months agoSlack Archive

{lua}local f = factoid[args] if not f.exists then print("<no such factoid>") else print("{raw}") print("```") print(f.raw) print("```") end

Revision: 4856 (deleted) by @bryce.tucker.0598 in <!error getting other user for DBHM9SVE0> 8 months agoSlack Archive

{lua} local f = factoid[cantina]
print(f.raw)

Revision: 4855 (deleted) by @bryce.tucker.0598 in <!error getting other user for DBHM9SVE0> 8 months agoSlack Archive

{lua} factoid[cantina]

Revision: 4854 (deleted) by @bryce.tucker.0598 in <!error getting other user for DBHM9SVE0> 8 months agoSlack Archive

"{lua} factoid[cantina]"

Revision: 3183 (deleted) by @asyed in <!error getting other user for D51094LKA> 1 year agoSlack Archive

{lua}
local users = "";
for i, u in ipairs(slack.channel[channel.id].users) do
    if ((not u.is_admin) and (tostring(u) == asyed)) then
        users = users .. tostring(
    end
end
return users

Revision: 3182 (deleted) by @asyed in <!error getting other user for D51094LKA> 1 year agoSlack Archive

{lua}
local users = "";
for i, u in ipairs(slack.channel[channel.id].users) do
    if (not u.is_admin and tostring(u) == asyed) then
        users = users .. tostring(
    end
end
return users

Revision: 3181 (deleted) by @asyed in <!error getting other user for D51094LKA> 1 year agoSlack Archive

{lua}
local users = "";
for i, u in ipairs(slack.channel[channel.id].users) do
    if (not u.is_admin) then
        users = users .. tostring(u)
    end
end
return users

Revision: 2886 (deleted) by @nmei in <!error getting other user for D86VD3938> 2 years agoSlack Archive

{\displaystyle w_{i}(t+1)=w_{i}(t)+(d_{j}-y_{j}(t))x_{j,i}}

Revision: 2470 (deleted) by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}return args

Revision: 2469 (deleted) by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}return args[0]

Revision: 2468 (deleted) by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}function sastantua (size)
	local i = size

	if size <= 0 then
		return
	end
	while i > 0 do
		print(i)
		print(" ")
		i = i - 1
	end
end
sastantua(5)

Revision: 2467 (deleted) by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}function sastantua (size)
	local i = size

	if size <= 0 then
		return
	end
	while i > 0 do
		print(i)
		print(" ")
		i = i - 1
	end
end

Revision: 2466 (deleted) by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}local i = 1
while i < 100 do
    print("Hello!")
    i = i + 1
end

Revision: 2465 (deleted) by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}local i = 1
while i < 100
    print("Hello!");
    i = i + 1
end

Revision: 2464 (deleted) by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}local i = 1
while i < 100
    print("Hello!")
    i = i + 1
end

Revision: 2463 (deleted) by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

`
{lua}local i = 1
while i < 100
    print("Hello!")
    i = i + 1
end
`

Revision: 2462 (deleted) by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}print("!test");

Revision: 2461 (deleted) by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}bot.send("hello");

Revision: 2460 (deleted) by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}user = "jkrause";
slack.rawsend("hello");

Revision: 2459 (deleted) by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}slack.rawsend("hello");

Revision: 2458 (deleted) by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}slack.rawsendfunction("hello");

Revision: 2457 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}for k,v in pairs(slack) do
    print(k);
    print(v);
end

Revision: 2456 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}for k,v in pairs(slack)
    print(k);
    print(v);
end

Revision: 2455 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}for k,v in pairs(slack) do
    print("k " .. k .. " v " .. v .. "    ");
end

Revision: 2454 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}function dump(o)
    if type(o) == 'table' then
        local s = '{ '
        for k,v in pairs(o) do
            if type(k) ~= 'number' then k = ':'..k..':' end
            s = s .. '['..k..'] = ' .. dump(v) .. ','
        end
        return s .. '} '
    else
        return tostring(o)
    end
end
dump(slack);

Revision: 2453 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

function dump(o)
    if type(o) == 'table' then
        local s = '{ '
        for k,v in pairs(o) do
            if type(k) ~= 'number' then k = ':'..k..':' end
            s = s .. '['..k..'] = ' .. dump(v) .. ','
        end
        return s .. '} '
    else
        return tostring(o)
    end
end
dump(slack);

Revision: 2452 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua} for k,v in pairs(slack) do
    print("KEY " .. k .. " VALU " .. v .. "    \n    ");
end

Revision: 2451 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}for k,v in pairs(slack) do
    print("KEY " .. k .. " VAL " .. v .. "    \n   "
end

Revision: 2450 by @pjha in #testing123123 2 years agoSlack Archive

{lua}return "!test";

Revision: 2449 by @pjha in #testing123123 2 years agoSlack Archive

{lua}return "/call"

Revision: 2448 by @pjha in #testing123123 2 years agoSlack Archive

{lua}channel = "#random";
return "Hello, world";

Revision: 2447 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}return channel

Revision: 2446 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}local http = require('socket.http')

Revision: 2445 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}assert(false);

Revision: 2444 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

assert(false);

Revision: 2443 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}for k,v in pairs(_G) do
    print("KEY", k, " VALUE", v, "    ")
end

Revision: 2442 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}for key,value in pairs(bot) do
    print("found member " .. key);
end

Revision: 2441 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}bot.call("pjha")

Revision: 2440 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

bot.call("pjha")

Revision: 2439 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}return bot.shortlink("https://www.google.com")

Revision: 2438 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}return bot.shortlink("https://www.google.com")
end

Revision: 2437 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

bot.shortlink("https://www.google.com")

Revision: 2436 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}return bot.shortlink(http://google.com) end

Revision: 2435 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}if args ==  then return https://www.google.com/ else return bot.shortlink(https://lmgtfy.com/?q= .. bot.uriencode(args)) end

Revision: 2434 by @pjha in <!error getting other user for D7SC58AD8> 2 years agoSlack Archive

{lua}return bot.shortlink(https://google.com) end

Revision: 2212 by @abarnett in #[IM @abarnett] 2 years agoSlack Archive

hello

Revision: 2211 (deleted) by @abarnett in #[IM @abarnett] 2 years agoSlack Archive

anythjing

Revision: 2177 by @abarnett in #[IM @abarnett] 2 years agoSlack Archive

{lua}
local http = require("socket.http")

Revision: 2174 by @abarnett in #[IM @abarnett] 2 years agoSlack Archive

{lua}
local resp, err = requests.get("http://httpbin.org/robots.txt")
print(resp.txt)

Revision: 2173 by @abarnett in #[IM @abarnett] 2 years agoSlack Archive

{lua}
local resp, err = response.get("http://httpbin.org/robots.txt")
print(resp.txt)

Revision: 2172 by @abarnett in #[IM @abarnett] 2 years agoSlack Archive

{lua}
local resp, err = response.get("http://httpbin.org/robots.txt")
print(response.txt)

Revision: 2171 by @abarnett in #[IM @abarnett] 2 years agoSlack Archive

{lua}
local resp, err = requests.get("http://httpbin.org/robots.txt")
print(response.txt)

Revision: 2140 by @abarnett in #[IM @abarnett] 2 years agoSlack Archive

{lua} for i=1,3 print(slack.users[%inp%])

Revision: 2139 by @abarnett in #[IM @abarnett] 2 years agoSlack Archive

{lua} for i=1,3 print(slack.users[%inp])

Revision: 2135 by @abarnett in #[IM @abarnett] 2 years agoSlack Archive

{lua} print(slack.users.ananelli) print(" other words")

Revision: 2134 by @abarnett in #[IM @abarnett] 2 years agoSlack Archive

{lua} print(slack.users.ananelli .. " other words")

Revision: 2133 by @abarnett in #[IM @abarnett] 2 years agoSlack Archive

{lua} print(slack.users.ananelli)

Revision: 2111 (deleted) by @pmcgoran in (via web) 2 years agoSlack Archive

{lua} local resp, err = requests.get("http://api.urbandictionary.com/v0/define?term=" .. bot.uriencode(args))
local r = resp:json()
if r.result_type == "no_results" then return "No results"
elseif r.result_type == "exact" then
 local item = r.list[1]
 if args:lower() == "lou" then item = r.list[3] end -- done
 print(item.word .. ": " .. item.definition)
 print("\n(+" .. item.thumbs_up .. "/-" .. item.thumbs_down .. ") _" .. item.example .. "_")
else
 print("Unknown result type: " .. r.result_type)
end

Revision: 2004 by @abarnett in #[IM @abarnett] 2 years agoSlack Archive

%user%%inp%

Revision: 1996 by @kyork in #bullshit 2 years agoSlack Archive

%user%

Revision: 1993 by @abarnett in #bullshit 2 years agoSlack Archive

{lua}print(user.username)

Revision: 1992 by @abarnett in #bullshit 2 years agoSlack Archive

{lua}print(user.name)

Revision: 1749 by @kyork in (via web) 2 years agoSlack Archive

{lua} local test = args
if test ~= ""  then print("It's good: " .. test)
else print("Everything is vine: " .. test) return end

Revision: 1683 (deleted) by @okovko in <!error getting other user for D5SQTNGNB> 2 years agoSlack Archive

test

Revision: 845 by @crenfrow in #[IM @crenfrow] 2 years agoSlack Archive

{lua} local test = args
if test ~= ""  then print("It's good: " .. test)
else print("Everything is awful: " .. test) return end

Revision: 844 by @crenfrow in #[IM @crenfrow] 2 years agoSlack Archive

{lua} local test = args
if test ~= nil  then print("It's good: " .. test)
else print("Everything is awful: " .. test) return end

Revision: 843 by @crenfrow in #[IM @crenfrow] 2 years agoSlack Archive

{lua} local test = args
if test ~= nil print("It's good: " .. test)
else print("Everything is awful: " .. test) return end

Revision: 842 by @crenfrow in #[IM @crenfrow] 2 years agoSlack Archive

{lua} local test = args
if test ~= nil print("It's good: " .. test)
else print("Everything is awful: " .. test) end

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

multi line test

Revision: 702 by @kyork in #yoga_private 2 years agoSlack Archive

foobar

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

{lua} local query = argv[1]
local resp, err = requests.get("http://api.giphy.com/v1/gifs/search?q=" .. bot.uriencode(query) .. "&api_key=dc6zaTOxFJmzC")
if err ~= nil then print("Error: " .. err) return end
local j = resp:json()
if #j.data > 0 then print(j.data[1].url)
else print("No results") end

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

{lua} local query = argv[1]
local resp, err = requests.get("http://api.giphy.com/v1/gifs/search?q=" .. bot.uriencode(query) .. "&api_key=dc6zaTOxFJmzC")
if err ~= nil then print("Error: " .. err) return end
local j = resp:json()
if #j.data > 0 then print(j.data[1].url) end
print(json.dump(j))

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

{lua} local query = argv[1]
local resp, err = requests.get("http://api.giphy.com/v1/gifs/search?q=" .. bot.uriencode(query) .. "&api_key=dc6zaTOxFJmzC")
if err ~= nil then print("Error: " .. err) return end
local j = resp:json()
print(json.dump(j.data[1].url))

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

{lua} local query = argv[1]
local resp, err = requests.get("http://api.giphy.com/v1/gifs/search?q=" .. bot.uriencode(query) .. "&api_key=dc6zaTOxFJmzC")
if err ~= nil then print("Error: " .. err) return end
local j = resp:json()
print(json.dump(j.data[1]))

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

{lua}return "10 " .. args

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

{lua}while true do end

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

{lua}for i=1, 10 do print(i) print(" ") end

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

Hello, %ioru%!
{lua}print("Whatever")
Whatever

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

{lua}local today="%date%" if args ~= '' then today = args end local f = factoid["menu-" .. today] if not f.exists then return "No stored menu for " .. today end return f()

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

{lua}local today="%date%" return today

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

 hello
There

Revision: 32 by @jrameau in #marvin-dev 2 years agoSlack Archive

`testing that`

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

$rnd(1,2,3,4,5,6,7,8,9)
Test