Adding excuse to `Hangover.cs` from ChatGpt

This commit is contained in:
Raphael Moreira 2023-10-23 16:52:07 -03:00 committed by GitHub
parent 2570ad5f40
commit 43a0fe9e6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,12 +16,7 @@ const string numberOfBoss = "+xxx";
TwilioClient.Init(twilioAccountSid, authToken);
string[] excuses = {
"Locked out",
"Pipes broke",
"Food poisoning",
"Not feeling well"
};
var excuses = await new ChatGpt().GetExcusesToMyBoss();
var rand = new Random().Next(excuses.Length);
var message = $"Gonna work from home. {excuses[rand]}";