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

21 lines
515 B
Lua
Raw Normal View History

local about = {}
2015-07-11 03:50:06 +02:00
2016-06-07 06:31:34 +02:00
local bot = require('otouto.bot')
about.command = 'about'
about.doc = '`Sendet Informationen über den Bot.`'
2016-08-14 04:26:44 +02:00
function about:init(config)
2016-08-14 16:30:06 +02:00
about.text = config.about_text..'\n[Brawlbot](https://github.com/Brawl345/Brawlbot-v2) v'..bot.version..', basierend auf [Otouto](http://github.com/topkecleon/otouto) von topkecleon.'
about.triggers = {
'/about',
'/start'
2016-08-14 16:30:06 +02:00
}
2016-08-14 04:26:44 +02:00
end
2015-07-11 03:50:06 +02:00
2016-05-27 02:26:30 +02:00
function about:action(msg, config)
utilities.send_message(msg.chat.id, about.text, true, nil, true)
2015-07-11 03:50:06 +02:00
end
return about