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-2/miku/plugins/porndoge.lua
Andreas Bielawski 345e33dcb0 Portiere EINEN HAUFEN an Imageboard-Plugins, NSFW-Plugins, etc. Im Folgenden:
- boobs
- danbooru
- derpibooru(_nsfw)
- e621
- gifeye
- konachan(_nsfw)
- riko & yagyuu >> moe
- porndoge
- pornhub_gif
- pr0gramm
- random_pic(_nsfw)
- rule34
- sankakucomplex
- yandere
- z0r
2016-08-18 17:23:55 +02:00

22 lines
598 B
Lua

local porndoge = {}
function porndoge:init(config)
porndoge.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('pdoge', true).table
porndoge.doc = [[*
]]..config.cmd_pat..[[pdoge*]]
end
porndoge.command = 'pdoge'
function porndoge:action(msg, config)
utilities.send_typing(self, msg.chat.id, 'upload_photo')
local url = 'https://porndoge.herokuapp.com/'
local file = download_to_file(url, 'porndoge.png')
if not file then
utilities.send_reply(self, msg, config.errors.connection)
return
end
utilities.send_photo(self, msg.chat.id, file)
end
return porndoge