forked from mirzaev/pot-php
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8225969e37 |
@@ -9,6 +9,7 @@ return [
|
|||||||
|
|
||||||
// Main menu
|
// Main menu
|
||||||
'menu_title' => 'Main menu',
|
'menu_title' => 'Main menu',
|
||||||
|
'menu_update' => 'Last update',
|
||||||
|
|
||||||
// Account
|
// Account
|
||||||
'account_title' => 'Account',
|
'account_title' => 'Account',
|
||||||
|
|||||||
@@ -9,7 +9,8 @@ return [
|
|||||||
|
|
||||||
// Главное меню
|
// Главное меню
|
||||||
'menu_title' => 'Главное меню',
|
'menu_title' => 'Главное меню',
|
||||||
|
'menu_update' => 'Последнее обновление',
|
||||||
|
|
||||||
// Аккаунт
|
// Аккаунт
|
||||||
'account_title' => 'Аккаунт',
|
'account_title' => 'Аккаунт',
|
||||||
'account_authorized_system' => 'Доступ к системе',
|
'account_authorized_system' => 'Доступ к системе',
|
||||||
|
|||||||
@@ -74,13 +74,17 @@ final class commands extends core
|
|||||||
if ($$localization) {
|
if ($$localization) {
|
||||||
// Initialized localization
|
// Initialized localization
|
||||||
|
|
||||||
// Initializing the title
|
// Initializing the message title
|
||||||
$$title = '📋 *' . $$localization['menu_title'] . '*';
|
$$title = '📋 *' . $$localization['menu_title'] . '*';
|
||||||
|
|
||||||
|
// Initializing the message last update text
|
||||||
|
exec(command: 'git log --oneline $$(git describe --tags --abbrev=0 @^ --always)..@ -1 --format="%at" | xargs -I{} date -d @{} "+%Y.%m.%d %H:%M"', output: $$git);
|
||||||
|
$$update = empty($$git[0]) ? '' : "\n\n🔏 *" . $$localization['menu_update'] . ':* ' . unmarkdown($$git[0]);
|
||||||
|
|
||||||
// Sending the message
|
// Sending the message
|
||||||
$$context->sendMessage(
|
$$context->sendMessage(
|
||||||
<<<TXT
|
<<<TXT
|
||||||
$$title
|
$$title$$update
|
||||||
TXT,
|
TXT,
|
||||||
[
|
[
|
||||||
'reply_markup' => [
|
'reply_markup' => [
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ require ROOT . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
|
|||||||
define('PROJECT_NAME', '');
|
define('PROJECT_NAME', '');
|
||||||
define('PROJECT_DOMAIN', '');
|
define('PROJECT_DOMAIN', '');
|
||||||
|
|
||||||
defing('LANGUAGE_DEFAULT', language::en);
|
define('LANGUAGE_DEFAULT', language::en);
|
||||||
|
|
||||||
// Initializing default theme for the views templater
|
// Initializing default theme for the views templater
|
||||||
define('THEME', 'default');
|
define('THEME', 'default');
|
||||||
|
|||||||
Reference in New Issue
Block a user