Last edit: @mgrimes in #random 2 years ago - Slack Archive

{lua} 
if #argv ~= 3 then
print("Wrong number of arguments, expected 3 but got " .. #argv .. "\nTry using `-` for blank lines"); return end
print("https://memegen.link/" .. bot.uriencode(argv[1]) .. "/" .. bot.uriencode(argv[2]) .. "/" .. bot.uriencode(argv[3]) .. ".jpg?font=impact")

History

Revision: 1198 by @mgrimes in #random 2 years agoSlack Archive

{lua} 
if #argv ~= 3 then
print("Wrong number of arguments, expected 3 but got " .. #argv .. "\nTry using `-` for blank lines"); return end
print("https://memegen.link/" .. bot.uriencode(argv[1]) .. "/" .. bot.uriencode(argv[2]) .. "/" .. bot.uriencode(argv[3]) .. ".jpg?font=impact")

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

{lua} 
if #argv ~= 3 then
print("Wrong number of arguments, expected 3 but got " .. #argv .. "\nTry using `-` for blank lines"); return end
print("https://memegen.link/" .. bot.uriencode(argv[1]) .. "/" .. bot.uriencode(argv[2]) .. "/" .. bot.uriencode(argv[3]) .. ".jpg")

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

{lua} 
if #argv ~= 3 then
print("Wrong number of arguments, expected 3 but got " .. #argv .. "\nTry using `-` if you want to use one line or the other"); return end
local title = argv[1]
local top = argv[2]
local bottom = argv[3]
print("https://memegen.link/" .. bot.uriencode(title) .. "/" .. bot.uriencode(top) .. "/" .. bot.uriencode(bottom) .. ".jpg")

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

{lua} 
if #argv ~= 3 then
print("Wrong number of arguments, expected 3 but got " .. #argv); return end
local title = argv[1]
local top = argv[2]
local bottom = argv[3]
print("https://memegen.link/" .. bot.uriencode(title) .. "/" .. bot.uriencode(top) .. "/" .. bot.uriencode(bottom) .. ".jpg")

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

{lua} 
if #argv ~= 3 then
print("Wrong number of arguments, expected 3 but got " .. #argv); exit
local title = argv[1]
local top = argv[2]
local bottom = argv[3]
print("https://memegen.link/" .. bot.uriencode(title) .. "/" .. bot.uriencode(top) .. "/" .. bot.uriencode(bottom) .. ".jpg")

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

{lua} 
if #argv ~= 3 then
print("Wrong number of arguments, expected 3 but got " .. #argv); end
local title = argv[1]
local top = argv[2]
local bottom = argv[3]
print("https://memegen.link/" .. bot.uriencode(title) .. "/" .. bot.uriencode(top) .. "/" .. bot.uriencode(bottom) .. ".jpg")

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

{lua} 
if #argv == 4 then
print("Wrong number of arguments, expected 3 but got " .. #argv); end
local title = argv[1]
local top = argv[2]
local bottom = argv[3]
print("https://memegen.link/" .. bot.uriencode(title) .. "/" .. bot.uriencode(top) .. "/" .. bot.uriencode(bottom) .. ".jpg")

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

{lua} 
if #argv ~= 4 then
print("Wrong number of arguments, expected 3 but got " .. #argv); end
local title = argv[1]
local top = argv[2]
local bottom = argv[3]
print("https://memegen.link/" .. bot.uriencode(title) .. "/" .. bot.uriencode(top) .. "/" .. bot.uriencode(bottom) .. ".jpg")

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

{lua} 
if #argv < 4 then
print("Wrong number of arguments, expected 3 but got " .. #argv); end
local title = argv[1]
local top = argv[2]
local bottom = argv[3]
print("https://memegen.link/" .. bot.uriencode(title) .. "/" .. bot.uriencode(top) .. "/" .. bot.uriencode(bottom) .. ".jpg")

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

{lua} 
if #argv < 3 then
print("Wrong number of arguments, expected 3 but got " .. #argv); end
local title = argv[1]
local top = argv[2]
local bottom = argv[3]
print("https://memegen.link/" .. bot.uriencode(title) .. "/" .. bot.uriencode(top) .. "/" .. bot.uriencode(bottom) .. ".jpg")

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

{lua} 
if argc < 3 then
print("Wrong number of arguments, expected 3 but got " .. argc); end
local title = argv[1]
local top = argv[2]
local bottom = argv[3]
print("https://memegen.link/" .. bot.uriencode(title) .. "/" .. bot.uriencode(top) .. "/" .. bot.uriencode(bottom) .. ".jpg")

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

{lua} 
if argc < 3:
print("Wrong number of arguments, expected 3 but got " .. argc)
local title = argv[1]
local top = argv[2]
local bottom = argv[3]
print("https://memegen.link/" .. bot.uriencode(title) .. "/" .. bot.uriencode(top) .. "/" .. bot.uriencode(bottom) .. ".jpg")

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

{lua} 
local title = argv[1]
local top = argv[2]
local bottom = argv[3]
print("https://memegen.link/" .. bot.uriencode(title) .. "/" .. bot.uriencode(top) .. "/" .. bot.uriencode(bottom) .. ".jpg")

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

{lua} 
local title = argv[1]
print(title)

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

{lua} 
local title = %args%
print(title)

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

 
{lua} 
local title = %args%
print(title)

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

 {lua} local title = %args%
print(title)

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

 {lua} local title = args
print(title)

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

 {lua} local title = args
print title

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

 {lua} local title = arg[1]
print title

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

 {lua} local title = argv[2]
print title

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

 {lua} local title = argv[1]
print title

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

{lua}
local title = "both"
local top = "Why not"
local bott = "both?"
print('https://memegen.link/' .. bot.uriencode(title) .. '/' .. bot.uriencode(top) .. '/' .. bot.uriencode(bottom))

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

{lua}
local title = "both"
local top = "Why not"
local bott = "both?"
print('https://memegen.link/' .. bot.uriencode(title) .. '/' .. bot.uriencode(top) .. '/' .. bot.uriencode(bottom))

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

{lua}
local title = "both"
local top = "Why not"
local bott = "both?"
print('https://memegen.link/' .. bot.uriencode(title) .. '/' .. bot.uriencode(top) .. '/' .. bot.uriencode(bottom))

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

{lua}
local title = "both"
local top = "Why not"
local bott = "both?"
print('https://memegen.link/' .. bot.uriencode() .. '/' .. bot.uriencode(top) .. '/' .. bot.uriencode(bottom))

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

{lua}
local title = "both"
local top = "Why not"
local bott = "both?"
print('https://memegen.link/' .. bot.uriencode() .. '/' .. bot.uriencode(top) .. '/' .. bot.uriencode(bottom))

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

{lua}
local title = argv[0]
local upper = argv[1]
local lower = argv[2]
print('https://memegen.link/' .. bot.uriencode(title) .. '/' .. bot.uriencode(top) .. '/' .. bot.uriencode(bottom))

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

{lua}
local title = argv[1]
local upper = argv[2]
local lower = argv[3]
print('https://memegen.link/' .. bot.uriencode(title) .. '/' .. bot.uriencode(top) .. '/' .. bot.uriencode(bottom))