fix
This commit is contained in:
parent
532b4eb6f1
commit
6d5669c009
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue