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');
|
await _importPosts('/data/posts.txt');
|
||||||
|
|
||||||
// Post a random post
|
// Post a random post
|
||||||
// await _postRandomPost();
|
await _postRandomPost();
|
||||||
|
|
||||||
// Post a random post at random time
|
// Post a random post at random time
|
||||||
// Random time is between 1 and 8 hours
|
// Random time is between 1 and 8 hours
|
||||||
// Random time is choosen after every post
|
// Random time is choosen after every post
|
||||||
// while (true) {
|
while (true) {
|
||||||
// await Future.delayed(Duration(hours: Random().nextInt(8) + 1));
|
await Future.delayed(Duration(hours: Random().nextInt(8) + 1));
|
||||||
// await _postRandomPost();
|
await _importPosts('/data/posts.txt');
|
||||||
// }
|
await _postRandomPost();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue