i18n support added

This commit is contained in:
mercury
2023-04-09 19:40:18 +04:00
parent 06ca54756c
commit d52bb6dab3
4 changed files with 211 additions and 65 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ require __DIR__ . '/config.php';
if ('POST' == $_SERVER['REQUEST_METHOD'] && $_GET['k'] == $c['key']) {
// require __DIR__ . '/debug.php';
require __DIR__ . '/bot.php';
$bot = new Bot($c['key']);
require __DIR__ . '/i18n.php';
$bot = new Bot($c['key'], $i);
$bot->input();
exit;
}