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
topkecleon 43a6b53c90 otouto 3.13
good lord
2016-08-13 22:26:44 -04:00

20 lines
563 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