import 'timing/wait_time.dart';
Future<String> chatFunc() async {
try{
await talkFunc();
}catch(e){
print('error $e');
}finally{
print('Chat finalizado');
}
return 'Fofoquinha';
}
Future<void> talkFunc() async {
print('João: Bom dia, grupo!');
await botClock().clock(1);
print('Mariana: Bom dia! Tudo bem?');
await botClock().clock(1);
print('João: Suave, e vc?');
await botClock().clock(1);
print('Mariana: Certinho.');
await botClock().clock(1);
}
main(){
chatFunc().then((value) => value);
}