From 9d23d74add720bcde707ae9f74deb0b59969c0b8 Mon Sep 17 00:00:00 2001 From: Amit Kumar <46284342+a-m-i-t-kumar@users.noreply.github.com> Date: Sun, 6 Oct 2019 11:52:16 +0530 Subject: [PATCH] Update Hangover.cs --- CSharp/Hangover.cs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/CSharp/Hangover.cs b/CSharp/Hangover.cs index f77e2da..377a481 100644 --- a/CSharp/Hangover.cs +++ b/CSharp/Hangover.cs @@ -1,25 +1,21 @@ namespace Hacker_Scripts { - using System; + using System; using Twilio; using System.Linq; class Hangover { public static string TWILIO_ACCOUNT_SID = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID"); public static string AUTH_TOKEN = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN"); - public static string YOUR_NUMBER = "9879789978"; public static string BOSS_NUMBER = "3213213233"; static void Main(string[] args) { var twilio = new TwilioRestClient(TWILIO_ACCOUNT_SID, AUTH_TOKEN); - - string[] randomMessages = { - "Locked out", - "Pipes broke", - "Food poisoning", - "Not feeling well" - }; + string[] randomMessages = { "Locked out", + "Pipes broke", + "Food poisoning", + "Not feeling well" }; int randomIndex = new Random().Next(randomMessages.Count()); String messageToSend = (randomMessages[randomIndex]); var message = twilio.SendMessage(YOUR_NUMBER, BOSS_NUMBER, messageToSend); @@ -27,4 +23,3 @@ } } } -