Browse Source

add queue delay config

main
ghost 11 months ago
parent
commit
d4fe4e4ae3
  1. 6
      config.example.json
  2. 5
      src/cli/bot.php

6
config.example.json

@ -20,7 +20,8 @@
"target":"user1", "target":"user1",
"queue": "queue":
{ {
"limit":5 "limit":5,
"delay":5
}, },
"keywords": "keywords":
[ [
@ -33,7 +34,8 @@
"target":"user2", "target":"user2",
"queue": "queue":
{ {
"limit":5 "limit":5,
"delay":5
}, },
"keywords": "keywords":
[ [

5
src/cli/bot.php

@ -219,5 +219,10 @@ foreach ($config->feed as $feed)
$queue->id $queue->id
) )
); );
// Apply delay
delay(
$feed->queue->delay
);
} }
} }

Loading…
Cancel
Save