generated from mirzaev/pot
delete some commands
This commit is contained in:
@@ -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'
|
||||
]
|
||||
]
|
||||
],
|
||||
|
||||
@@ -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']); */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user