mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 13:25:13 +08:00
🌴 Sync 2026-03-05 23:51:42
This commit is contained in:
1 parent
97c049ed0a
commit
0acff03804
14253 files changed
+3893239
No files matched your search
@@ -0,0 +1,11 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
LUCI_TITLE:=TelegramBot simple webUI
|
||||
LUCI_DEPENDS:=+telegrambot
|
||||
PKG_LICENSE:=GPLv3
|
||||
PKG_VERSION:=0.1.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
||||
@@ -0,0 +1 @@
|
||||
# luci-app-telegrambot
|
||||
@@ -0,0 +1,38 @@
|
||||
'use strict';
|
||||
'require form';
|
||||
'require fs';
|
||||
'require view';
|
||||
'require uci';
|
||||
'require ui';
|
||||
'require tools.widgets as widgets'
|
||||
|
||||
|
||||
return view.extend({
|
||||
render: function(data) {
|
||||
var m, s, o
|
||||
|
||||
m = new form.Map('telegrambot', _('TelegramBot'), _('Telegram bot for router with firmware Lede/Openwrt.'));
|
||||
s = m.section(form.TypedSection, 'telegram_bot', null);
|
||||
s.anonymous = true;
|
||||
|
||||
o = s.option(form.Flag, 'enabled', _('Enable'), _('Enable Bot'));
|
||||
o.rmempty = true;
|
||||
|
||||
o = s.option(form.Value, 'bot_token', _('Bot Token'), _('Token ID your Telegram Bot'));
|
||||
o.password = true;
|
||||
|
||||
o = s.option(form.Value, 'chat_id', _('Chat ID'), _('Chat ID your Telegram'));
|
||||
|
||||
o = s.option(form.Value, 'timeout', _('Delay'), _('Time Out respone Bot in sec.'));
|
||||
|
||||
o = s.option(form.Value, 'polling_time', _('Polling Time'), _('Polling Time in sec.'));
|
||||
|
||||
o = s.option(form.Value, 'plugins', _('Plugins'), _('Path to plugins directory.'));
|
||||
o.default = ('/usr/lib/telegrambot/plugins');
|
||||
|
||||
o = s.option(form.Value, 'log_file', _('Log File'), _('Log File'));
|
||||
o.default = ('/tmp/telegrambot.log');
|
||||
|
||||
return m.render();
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,51 @@
|
||||
"Language: ru\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Last-Translator: Konstantine Shevlyakov <shevlakov@132lan.ru>\n"
|
||||
|
||||
msgid "TelegramBot"
|
||||
msgstr "ТелеграмБот"
|
||||
|
||||
msgid "Telegram bot for router with firmware Lede/Openwrt."
|
||||
msgstr "Телеграм бот для ротеров на прошивке Lede/Openwrt."
|
||||
|
||||
msgid "Enable"
|
||||
msgstr "Включить"
|
||||
|
||||
msgid "Enable Bot"
|
||||
msgstr "Включить бота"
|
||||
|
||||
msgid "Bot Token"
|
||||
msgstr "Токен бота"
|
||||
|
||||
msgid "Token ID your Telegram Bot"
|
||||
msgstr "Токен ID Вашего бота в Telegram"
|
||||
|
||||
msgid "Chat ID"
|
||||
msgstr "ID чата"
|
||||
|
||||
msgid "Chat ID your Telegram"
|
||||
msgstr "ID чата Вашего Telegram"
|
||||
|
||||
msgid "Delay"
|
||||
msgstr "Задержка"
|
||||
|
||||
msgid "Time Out respone Bot in sec."
|
||||
msgstr "Задержка ответа бота в сек."
|
||||
|
||||
msgid "Polling Time"
|
||||
msgstr "Время опроса"
|
||||
|
||||
msgid "Polling Time in sec."
|
||||
msgstr "Врема опроса в сек."
|
||||
|
||||
msgid "Plugins"
|
||||
msgstr "Плагины"
|
||||
|
||||
msgid "Path to plugins directory."
|
||||
msgstr "Путь к директории с плагинами."
|
||||
|
||||
msgid "Log File"
|
||||
msgstr "Файл лога"
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"admin/services/telegrambot": {
|
||||
"title": "TelegramBot",
|
||||
"order": 63,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "telegrambot"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-telegrambot" ],
|
||||
"uci": { "telegrambot": true }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"luci-app-telegrambot": {
|
||||
"description": "Grant UCI access for luci-app-telegrambot",
|
||||
"read": {
|
||||
"uci": [ "telegrambot" ]
|
||||
},
|
||||
"write": {
|
||||
"uci": [ "telegrambot" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user