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")
{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")
{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")
{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")
{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")
{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")
{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")
{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")
{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")
{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")
{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")
{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")
{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")
{lua} 
local title = argv[1]
print(title)
{lua} 
local title = %args%
print(title)
 
{lua} 
local title = %args%
print(title)
 {lua} local title = %args%
print(title)
 {lua} local title = args
print(title)
 {lua} local title = args
print title
 {lua} local title = arg[1]
print title
 {lua} local title = argv[2]
print title
 {lua} local title = argv[1]
print title

Revision: 1162 (deleted) by @crenfrow in <!error getting other user for D30QARJLE> 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 <!error getting other user for D30QARJLE> 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 <!error getting other user for D30QARJLE> 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 <!error getting other user for D30QARJLE> 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 <!error getting other user for D30QARJLE> 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 <!error getting other user for D30QARJLE> 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 <!error getting other user for D30QARJLE> 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))