C#
81
Вклад в тег
<br>
tag - вставка тега новой строки через шифт+enter{
"remotefs.remote": {"site": {
"scheme": "ftp",
"host": "1************01",
"username": "ad**********ain",
"password": "Lv************xF",
"rootPath": "/"
},
"site2": {
"scheme": "ftp",
"host": "17**********1",
"username": "a*****************m",
"password": "************O",
"rootPath": "/"
},
"moy-yandex": {
"scheme": "ftp",
"host": "a***********u",
"username": "a***************mone",
"password": "1***************W",
"rootPath": "/"
}
}
Если я пишу код на основе других, это плохо?
каждая жаба хвалит своё болото...ИМХО (от себя): использую Kali для тестирования своих сайтов/программ
<?php
require_once 'vendor/autoload.php';
use BotMan\BotMan\BotMan;
use BotMan\BotMan\BotManFactory;
use BotMan\BotMan\Drivers\DriverManager;
use BotMan\BotMan\Cache\CodeIgniterCache;
$config = [
'facebook' => [
'token' => 'EAAZAT6dcgYDQBAC6x7X******85SLSPF0BRCVeRPPgutgtfvZCkZC9lxnP5pYcRXtF0m7sOAliTEztGPR45cOxx3rZAMZBc9Mb9UhB62gBSG2kXTo7ldyk2fTquadMJQVY8nqKxiOakLXLUZBCSavncCljoe5IAZDZD',
'app_secret' => 'b52517e****71b6afa76dca657',
'verification'=>'my_example_veryfy_token',
],
"vkontakte" => [
"token" => "9af81c610faf0ea319*****d17b0b2b53b164ff3b18cc1b9d4e422fd15db046594139078"
],
'telegram' => [
'token' => '60176***:****fVCz43IblR72siiyfbebv7wgqCn8tc'
]
];
DriverManager::loadDriver(\BotMan\Drivers\Vkontakte\VkontakteDriver::class);
DriverManager::loadDriver(\BotMan\Drivers\Facebook\FacebookDriver::class);
DriverManager::loadDriver(\BotMan\Drivers\Telegram\TelegramDriver::class);
$this->load->driver('cache');
$botman = BotManFactory::create($config, new CodeIgniterCache($this->cache->file));
$botman->hears('привет', function (BotMan $bot) {
$bot->reply('Хай.');
});
$botman->fallback(function($bot) {
$bot->reply('Чё ??? ...');
});
$botman->listen();
iconv('utf-8', 'windows-1251', тут_ваш_ответ_сервера);