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/dogify.lua

14 lines
425 B
Lua
Raw Normal View History

2015-05-16 20:32:21 +02:00
local function run(msg, matches)
2016-02-16 17:14:28 +01:00
local BASE_URL = "http://dogr.io/"
local path = string.gsub(matches[1], " ", "%%20")
local url = BASE_URL..path..'.png?split=false&.png'
local receiver = get_receiver(msg)
send_photo_from_url(receiver, url)
2015-05-16 20:32:21 +02:00
end
return {
description = "Erstelle ein Doge Bild mit Wörtern",
usage = {"/dogify das/was/du/willst"},
2015-11-12 17:42:03 +01:00
patterns = {"^/dogify (.+)$","^/doge (.+)$"},
2015-05-16 20:32:21 +02:00
run = run
}