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/otouto/plugins/about.lua
2016-08-13 22:46:18 -04:00

20 lines
578 B
Lua

local bot = require('otouto.bot')
local utilities = require('otouto.utilities')
local about = {}
about.command = 'about'
about.doc = 'Returns information about the bot.'
function about:init(config)
about.text = config.about_text .. '\nBased on [otouto](http://github.com/topkecleon/otouto) v'..bot.version..' by topkecleon.'
about.triggers = utilities.triggers(self.info.username, config.cmd_pat)
:t('about'):t('start').table
end
function about:action(msg, config)
utilities.send_message(self, msg.chat.id, about.text, true, nil, true)
end
return about