This repository has been archived on 2021-04-24. You can view files and clone it, but cannot push or open issues or pull requests.
Mikubot/plugins/dicks.lua

38 lines
624 B
Lua
Raw Normal View History

do
local dicks = {
"http://i.imgur.com/A5IdNU7.jpg",
"http://i.imgur.com/0pEACyI.jpg",
"http://i.imgur.com/x2NNn9P.jpg",
"http://i.imgur.com/9FA7NJr.jpg",
"http://t.co/7LOy7LNSzV",
}
function getRandomDicks()
return dicks[ math.random( #dicks ) ]
end
function run(msg, matches)
local url = nil
url = getRandomDicks()
if url ~= nil then
local receiver = get_receiver(msg)
send_photo_from_url(receiver, url)
else
2015-04-28 17:49:11 +02:00
return 'Huch, da lief was falsch.'
end
end
return {
2015-04-28 17:49:11 +02:00
description = "Das dümmste Plugin ever [NSFW]",
usage = {"/dicks"},
patterns = {"^/dicks$"},
run = run
}
2015-04-28 17:49:11 +02:00
end