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 @@ @@ -20,7 +20,8 @@
"target":"user1",
"queue":
{
"limit":5
"limit":5,
"delay":5
},
"keywords":
[
@ -33,7 +34,8 @@ @@ -33,7 +34,8 @@
"target":"user2",
"queue":
{
"limit":5
"limit":5,
"delay":5
},
"keywords":
[

5
src/cli/bot.php

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

Loading…
Cancel
Save