summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/NeonXP/BotScript.php66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/NeonXP/BotScript.php b/src/NeonXP/BotScript.php
index 8720f07..9309b5a 100644
--- a/src/NeonXP/BotScript.php
+++ b/src/NeonXP/BotScript.php
@@ -67,39 +67,39 @@ class BotScript
$getDb = function (Message $message, Telegram $telegram) {
$text = trim(substr($message->getText(), 1));
$db = [
- '1' => ['А', 'Я', 'A', 'Z', '000001', '. -'],
- '2' => ['Б', 'Ю', 'B', 'Y', '000010', '- . . .'],
- '3' => ['В', 'Э', 'C', 'X', '000011', '. - -'],
- '4' => ['Г', 'Ь', 'D', 'W', '000100', '- - .'],
- '5' => ['Д', 'Ы', 'E', 'V', '000101', '- . .'],
- '6' => ['Е', 'Ъ', 'F', 'U', '000110', '.'],
- '7' => ['Ё', 'Щ', 'G', 'T', '000111', '.'],
- '8' => ['Ж', 'Ш', 'H', 'S', '001000', '. . . -'],
- '9' => ['З', 'Ч', 'I', 'R', '001001', '- - . .'],
- '10' => ['И', 'Ц', 'J', 'Q', '001010', '. .'],
- '11' => ['Й', 'Х', 'K', 'P', '001011', '. - - -'],
- '12' => ['К', 'Ф', 'L', 'O', '001100', '- . -'],
- '13' => ['Л', 'У', 'M', 'N', '001101', '. - . .'],
- '14' => ['М', 'Т', 'N', 'M', '001110', '- -'],
- '15' => ['Н', 'С', 'O', 'L', '001111', '- .'],
- '16' => ['О', 'Р', 'P', 'K', '010000', '- - -'],
- '17' => ['П', 'П', 'Q', 'J', '010001', '. - - .'],
- '18' => ['Р', 'О', 'R', 'I', '010010', '. - .'],
- '19' => ['С', 'Н', 'S', 'H', '010011', '. . .'],
- '20' => ['Т', 'М', 'T', 'G', '010100', '-'],
- '21' => ['У', 'Л', 'U', 'F', '010101', '. . -'],
- '22' => ['Ф', 'К', 'V', 'E', '010110', '. . - .'],
- '23' => ['Х', 'Й', 'W', 'D', '010111', '. . . .'],
- '24' => ['Ц', 'И', 'X', 'C', '011000', '- . - .'],
- '25' => ['Ч', 'З', 'Y', 'B', '011001', '- - - .'],
- '26' => ['Ш', 'Ж', 'Z', 'A', '011010', '- - - -'],
- '27' => ['Щ', 'Ё', ' ', ' ', '011011', '- - . -'],
- '28' => ['Ъ', 'Е', ' ', ' ', '011100', '- - . - -'],
- '29' => ['Ы', 'Д', ' ', ' ', '011101', '- . - -'],
- '30' => ['Ь', 'Г', ' ', ' ', '011110', '- . . -'],
- '31' => ['Э', 'В', ' ', ' ', '011111', '. . - . .'],
- '32' => ['Ю', 'Б', ' ', ' ', '100000', '. . - -'],
- '33' => ['Я', 'А', ' ', ' ', '100001', '. - . -'],
+ '1' => ['А', 'Я', 'A', 'Z', '00000', '. -'],
+ '2' => ['Б', 'Ю', 'B', 'Y', '00001', '- . . .'],
+ '3' => ['В', 'Э', 'C', 'X', '00010', '. - -'],
+ '4' => ['Г', 'Ь', 'D', 'W', '00011', '- - .'],
+ '5' => ['Д', 'Ы', 'E', 'V', '00100', '- . .'],
+ '6' => ['Е', 'Ъ', 'F', 'U', '00101', '.'],
+ '7' => ['Ё', 'Щ', 'G', 'T', '00101', '.'],
+ '8' => ['Ж', 'Ш', 'H', 'S', '00110', '. . . -'],
+ '9' => ['З', 'Ч', 'I', 'R', '00111', '- - . .'],
+ '10' => ['И', 'Ц', 'J', 'Q', '01000', '. .'],
+ '11' => ['Й', 'Х', 'K', 'P', '01001', '. - - -'],
+ '12' => ['К', 'Ф', 'L', 'O', '01010', '- . -'],
+ '13' => ['Л', 'У', 'M', 'N', '01011', '. - . .'],
+ '14' => ['М', 'Т', 'N', 'M', '01100', '- -'],
+ '15' => ['Н', 'С', 'O', 'L', '01101', '- .'],
+ '16' => ['О', 'Р', 'P', 'K', '01110', '- - -'],
+ '17' => ['П', 'П', 'Q', 'J', '01111', '. - - .'],
+ '18' => ['Р', 'О', 'R', 'I', '10000', '. - .'],
+ '19' => ['С', 'Н', 'S', 'H', '10001', '. . .'],
+ '20' => ['Т', 'М', 'T', 'G', '10010', '-'],
+ '21' => ['У', 'Л', 'U', 'F', '10011', '. . -'],
+ '22' => ['Ф', 'К', 'V', 'E', '10100', '. . - .'],
+ '23' => ['Х', 'Й', 'W', 'D', '10101', '. . . .'],
+ '24' => ['Ц', 'И', 'X', 'C', '10110', '- . - .'],
+ '25' => ['Ч', 'З', 'Y', 'B', '10111', '- - - .'],
+ '26' => ['Ш', 'Ж', 'Z', 'A', '11000', '- - - -'],
+ '27' => ['Щ', 'Ё', ' ', ' ', '11001', '- - . -'],
+ '28' => ['Ъ', 'Е', ' ', ' ', '11010', '- - . - -'],
+ '29' => ['Ы', 'Д', ' ', ' ', '11011', '- . - -'],
+ '30' => ['Ь', 'Г', ' ', ' ', '11100', '- . . -'],
+ '31' => ['Э', 'В', ' ', ' ', '11101', '. . - . .'],
+ '32' => ['Ю', 'Б', ' ', ' ', '11110', '. . - -'],
+ '33' => ['Я', 'А', ' ', ' ', '11111', '. - . -'],
];
$result = 'Непонятно :(';
$header = ' № | А | Я | A | Z | Двоичн | Морзе ' . PHP_EOL . '____________________________________';