local jk = {}
function jk:init(config)
jk.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('jk', true).table
jk.doc = '\n*/jk*'
end
jk.command = 'jk'
function jk:action(msg, config)
local JK_URL = 'https://anditest.perseus.uberspace.de/plugins/jk'
local jk_pics = {
"/justkitten1.jpg",
"/justkitten2.jpg",
"/justkitten3.jpg",
"/justkitten4.jpg",
"/justkitten5.jpg",
"/justkitten6.jpg"
}
local random_pic = math.random(#jk_pics)
utilities.send_typing(msg.chat.id, 'upload_photo')
local file = JK_URL..jk_pics[random_pic]
utilities.send_photo(msg.chat.id, file, nil, msg.message_id)
return jk