local hdf = {}
function hdf:init(config)
hdf.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('hdf', true).table
hdf.doc = '\n*/hdf*: Einfach mal die Fresse halten!'
end
hdf.command = 'hdf'
function hdf:action(msg, config)
local HDF_URL = 'https://anditest.perseus.uberspace.de/plugins/hdf'
local hdf_pics = {
"/hdf1.jpg",
"/hdf2.jpg",
"/hdf3.jpg",
"/hdf4.jpg",
"/hdf5.jpg"
}
local random_pic = math.random(#hdf_pics)
utilities.send_typing(msg.chat.id, 'upload_photo')
local file = download_to_file(HDF_URL..hdf_pics[random_pic])
utilities.send_photo(msg.chat.id, file)
return hdf