diff --git a/config.example.json b/config.example.json index 1ca13b6..da275f9 100644 --- a/config.example.json +++ b/config.example.json @@ -20,7 +20,8 @@ "target":"user1", "queue": { - "limit":5 + "limit":5, + "delay":5 }, "keywords": [ @@ -33,7 +34,8 @@ "target":"user2", "queue": { - "limit":5 + "limit":5, + "delay":5 }, "keywords": [ diff --git a/src/cli/bot.php b/src/cli/bot.php index 820d407..f422dff 100644 --- a/src/cli/bot.php +++ b/src/cli/bot.php @@ -219,5 +219,10 @@ foreach ($config->feed as $feed) $queue->id ) ); + + // Apply delay + delay( + $feed->queue->delay + ); } }