This commit is contained in:
Inex Code 2022-05-05 19:53:14 +00:00
parent 532b4eb6f1
commit 6d5669c009
1 changed files with 6 additions and 5 deletions

View File

@ -99,14 +99,15 @@ void main(List<String> args) async {
await _importPosts('/data/posts.txt');
// Post a random post
// await _postRandomPost();
await _postRandomPost();
// Post a random post at random time
// Random time is between 1 and 8 hours
// Random time is choosen after every post
// while (true) {
// await Future.delayed(Duration(hours: Random().nextInt(8) + 1));
// await _postRandomPost();
// }
while (true) {
await Future.delayed(Duration(hours: Random().nextInt(8) + 1));
await _importPosts('/data/posts.txt');
await _postRandomPost();
}
}