-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAutoGitProcess.cs
More file actions
35 lines (34 loc) · 1013 Bytes
/
AutoGitProcess.cs
File metadata and controls
35 lines (34 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Gitalarmi
{
class AutoGitProcess
{
private static string path = @"../../key.txt";
private static string[] apiKey = File.ReadAllLines(path);
private static string [] ids = { apiKey[4] };
private static string toPhone = apiKey[5] ;
private Logger log = new Logger();
private gitAPI api = new gitAPI();
public void AutoAlarmingStart()
{
try
{
foreach (string userName in ids)
{
//커밋 오늘 안했을시 문자 발송
if (!api.CommitYN(userName))
{
string status = api.SendSMS(userName, toPhone);
Console.WriteLine(status);
}
}
}
catch (Exception) { }
}
}
}