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/miku/plugins/about.lua

21 lines
536 B
Lua
Raw Normal View History

local about = {}
2016-06-07 06:31:34 +02:00
local bot = require('otouto.bot')
about.command = 'about'
about.doc = '`Sendet Informationen über den Bot.`'
function about:init(config)
about.text = config.about_text .. '\n[Mikudayobot](https://github.com/Akamaru/Mikubot-V2) v'..bot.version..' von @Akamaru, basierend auf [otouto](https://github.com/topkecleon/otouto) von topkecleon.'
about.triggers = {
2016-08-25 14:35:11 +02:00
'^/about$',
'^/start$'
2016-08-14 16:30:06 +02:00
}
end
function about:action(msg, config)
2016-08-24 17:18:17 +02:00
utilities.send_message(msg.chat.id, about.text, true, nil, true)
end
return about