2 Commits

Author SHA1 Message Date
351bec9ffc delete some commands 2025-10-26 16:06:13 +03:00
822008f140 mushroom 2025-10-26 16:00:25 +03:00
4 changed files with 19 additions and 126 deletions

View File

@@ -0,0 +1,16 @@
[Unit]
Description=Telegram game chat-robot: @brainrot_game_robot
Wants=network.target
After=syslog.target network-online.target
[Service]
ExecStart=sudo -u www-data /usr/bin/php /var/www/brainrot.kodorvan.tech/kodorvan/brainrot/system/public/telegram.php
PIDFile=/var/run/php/brainrot.pid
RemainAfterExit=no
RuntimeMaxSec=3600s
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target

View File

@@ -160,27 +160,12 @@ final class commands extends core
// Trimming the last line break character
$authorizations = trim($authorizations, "\n");
// Initializing the data export for the message
$export = '📤 ' . $localization['account_export'];
// Initializing the data security for the message
$data = $localization['account_data'];
// Initializing the data security repository for the message
$security = '📁 [' . $localization['account_security_repository'] . '](https://git.svoboda.works/mirzaev/security) \([' . $localization['account_security_repository_mirror_github'] . '](https://github.com/mature-woman/security)\)';
// Sending the message
$context->sendMessage(
<<<TXT
$title
$authorizations
$export
$data
$security
TXT,
[
'reply_markup' => [
@@ -325,123 +310,17 @@ final class commands extends core
[
[
'text' => '🏛️ ' . $localization['repository_button_code'],
'url' => 'https://git.mirzaev.sexy/kodorvan/brainrot'
'url' => 'https://git.svoboda.works/kodorvan/brainrot'
]
],
[
[
'text' => '⚠️ ' . $localization['repository_button_issues'],
'url' => 'https://git.mirzaev.sexy/kodorvan/brainrot/issues'
'url' => 'https://git.svoboda.works/kodorvan/brainrot/issues'
],
[
'text' => '🌱 ' . $localization['repository_button_suggestions'],
'url' => 'https://git.mirzaev.sexy/kodorvan/brainrot/issues'
]
]
],
'remove_keyboard' => true,
'disable_notification' => true
],
'link_preview_options' => [
'is_disabled' => true
]
]);
} else {
// Not initialized localization
// Sending the message
$context->sendMessage('⚠️ *Failed to initialize localization*')
->then(function (message $message) use ($context) {
// Ending the conversation process
$context->endConversation();
});
}
} else {
// Not initialized the account
// Sending the message
$context->sendMessage('⚠️ *Failed to initialize your Telegram account*')
->then(function (message $message) use ($context) {
// Ending the conversation process
$context->endConversation();
});
}
}
/**
* Author
*
* Responce for the command: "/author"
*
* Sends
*
* @param context $context Request data from Telegram
*
* @return void
*/
public static function author(context $context): void
{
// Initializing the account
$account = $context->get('account');
if ($account instanceof record) {
// Initialized the account
// Initializing localization
$localization = $context->get('localization');
if ($localization) {
// Initialized localization
// Initializing title of the message
$title = '👽 ' . $localization['author_title'];
// Sending the message
$context->sendMessage($title . "\n\n" . $localization['author_text'], [
'reply_markup' => [
'inline_keyboard' => [
[
[
'text' => '📚 ' . $localization['author_button_neurojournal'],
'url' => 'https://mirzaev.sexy'
],
[
'text' => '🤟 ' . $localization['author_button_projects'],
'url' => 'https://git.svoboda.works/mirzaev?tab=activity'
]
],
[
[
'text' => '📣 ' . $localization['author_button_telegram'],
'url' => 'https://t.me/blog_mirzaev_sexy'
],
[
'text' => '✖️ ' . $localization['author_button_twitter'],
'url' => 'https://x.com/mirzaev_sexy'
],
[
'text' => '🦋 ' . $localization['author_button_bluesky'],
'url' => 'https://bsky.app/profile/mirzaev.bsky.social'
],
[
'text' => '⛓️ ' . $localization['author_button_bastyon'],
'url' => 'https://bsky.app/profile/mirzaev.bsky.social'
]
],
[
[
'text' => '🇺🇸 ' . $localization['author_button_youtube_english'],
'url' => 'https://www.youtube.com/@MIRZAEV'
],
[
'text' => '🇷🇺 ' . $localization['author_button_youtube_russian'],
'url' => 'https://www.youtube.com/@MIRZAEV'
]
],
[
[
'text' => '✉️ ' . $localization['author_button_message'],
'url' => 'https://t.me/mirzaev_sexy'
'url' => 'https://git.svoboda.works/kodorvan/brainrot/issues'
]
]
],

View File

@@ -85,8 +85,6 @@ $robot->onCommand('menu', [commands::class, 'menu']);
$robot->onCommand('account', [commands::class, 'account']);
$robot->onCommand('language', [commands::class, 'language'])->middleware([middlewares::class, 'settings']);
$robot->onCommand('repository', [commands::class, 'repository']);
/* $robot->onCommand('projects', [commands::class, 'projects']); */
$robot->onCommand('author', [commands::class, 'author']);
$robot->onCommand('society', [commands::class, 'society']);
/* $robot->onCommand('system_settings', [commands::class, 'system_settings'])->middleware([middlewares::class, 'system_settings']); */

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB