Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
31022e24af | |||
ac7db327bd |
@@ -52,7 +52,7 @@ $bot->onMessage(function (Context $ctx) {
|
|||||||
|
|
||||||
global $timer;
|
global $timer;
|
||||||
|
|
||||||
$timer = React\Promise\Timer\sleep(30);
|
$timer = React\Promise\Timer\sleep(180);
|
||||||
|
|
||||||
$timer->then(
|
$timer->then(
|
||||||
function ($value) use ($ctx, $id) {
|
function ($value) use ($ctx, $id) {
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
17
telegram-robot-entry.service
Executable file
17
telegram-robot-entry.service
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Telegram-robot-entry
|
||||||
|
|
||||||
|
Wants=network.target
|
||||||
|
After=syslog.target network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=sudo -u www-data /usr/bin/php /var/www/spetsresurs-telegram-robot-entry/mirzaev/spetsresurs/telegram/robot/entry/system/public/robot.php
|
||||||
|
PIDFile=/var/run/php/telegram-robot-entry.pid
|
||||||
|
RemainAfterExit=no
|
||||||
|
RuntimeMaxSec=3600s
|
||||||
|
Restart=always
|
||||||
|
RestartSec=5s
|
||||||
|
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Reference in New Issue
Block a user