added about
This commit is contained in:
parent
566db41184
commit
d06b1e3ae2
@ -7,6 +7,7 @@
|
|||||||
0
|
0
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
"about.lua",
|
||||||
"8ball.lua",
|
"8ball.lua",
|
||||||
"admin.lua",
|
"admin.lua",
|
||||||
"bandersnatch.lua",
|
"bandersnatch.lua",
|
||||||
|
28
plugins/about.lua
Normal file
28
plugins/about.lua
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
local PLUGIN = {}
|
||||||
|
|
||||||
|
PLUGIN.doc = [[
|
||||||
|
/about
|
||||||
|
Information about the bot.
|
||||||
|
]]
|
||||||
|
|
||||||
|
PLUGIN.triggers = {
|
||||||
|
'^/about',
|
||||||
|
'^/info'
|
||||||
|
}
|
||||||
|
|
||||||
|
function PLUGIN.action(msg)
|
||||||
|
|
||||||
|
local message = [[
|
||||||
|
This is ]] .. bot.first_name .. [[: a plugin-wielding, multi-purpose Telegram bot.
|
||||||
|
Use /help for a list of commands.
|
||||||
|
|
||||||
|
Based on otouto v]] .. VERSION .. [[ by @topkecleon.
|
||||||
|
otouto is licensed under the GPLv2.
|
||||||
|
topkecleon.github.io/otouto
|
||||||
|
]] -- Please do not remove this message.
|
||||||
|
|
||||||
|
send_msg(msg, message)
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
return PLUGIN
|
@ -29,9 +29,6 @@ function PLUGIN.action(msg)
|
|||||||
|
|
||||||
local message = 'Available commands:\n' .. help_message .. [[
|
local message = 'Available commands:\n' .. help_message .. [[
|
||||||
*Arguments: <required> [optional]
|
*Arguments: <required> [optional]
|
||||||
Use "!help <command>" for specific information.
|
|
||||||
otouto v]] .. VERSION .. [[ by @topkecleon.
|
|
||||||
Fork me on github! github.com/topkecleon/otouto
|
|
||||||
]]
|
]]
|
||||||
|
|
||||||
if msg.from.id ~= msg.chat.id then
|
if msg.from.id ~= msg.chat.id then
|
||||||
|
Reference in New Issue
Block a user