summaryrefslogtreecommitdiffstats
path: root/lib/Crawl/Bot.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Crawl/Bot.pm')
-rw-r--r--lib/Crawl/Bot.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Crawl/Bot.pm b/lib/Crawl/Bot.pm
index c5f6dcc..740a0bf 100644
--- a/lib/Crawl/Bot.pm
+++ b/lib/Crawl/Bot.pm
@@ -28,6 +28,12 @@ has cache_file => (
default => 'cache',
);
+has update_time => (
+ is => 'ro',
+ isa => 'Int',
+ default => 300,
+);
+
has issues => (
traits => ['Hash'],
isa => 'HashRef',
@@ -106,7 +112,7 @@ sub tick {
});
$self->save_cache;
- return 60;
+ return $self->update_time;
}
1;