AltervistaUserBot/_config.php

32 lines
575 B
PHP
Raw Normal View History

2018-03-27 17:08:11 +02:00
<?php
if (!file_exists('bot.lock')) {
touch('bot.lock');
}
$lock = fopen('bot.lock', 'r+');
2018-03-27 20:23:15 +02:00
$try = 1;
$locked = false;
while (!$locked) {
2018-03-27 20:23:34 +02:00
$locked = flock($lock, LOCK_EX | LOCK_NB);
2018-03-27 20:23:15 +02:00
if (!$locked) {
2018-03-27 21:53:10 +02:00
closeConnection();
2018-03-27 20:23:15 +02:00
if ($try++ >= 30) {
exit;
}
sleep(1);
}
}
require __DIR__.'/madeline.php';
2018-03-27 17:08:11 +02:00
require __DIR__.'/functions.php';
2018-03-27 20:23:15 +02:00
$leggi_messaggi_in_uscita = false;
$lista_admin = [
40955937, //id di Bruno :D
101374607, //id del creatore di MadelineProto :D
12344567, //un id probabilmente inesistente
];