-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
45 lines (39 loc) · 1.07 KB
/
Program.cs
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
36
37
38
39
40
41
global using MigrationBot;
global using Npgsql;
global using MigrationBot.Models;
global using MigrationBot.Types;
global using Google.Apis.Auth.OAuth2;
global using Google.Apis.Services;
global using Google.Apis.Sheets.v4;
global using Google.Apis.Sheets.v4.Data;
global using System;
global using System.Collections.Generic;
global using System.Data;
global using System.Linq;
global using System.Threading.Tasks;
global using Microsoft.EntityFrameworkCore;
global using Telegram.Bot;
global using Telegram.Bot.Types.ReplyMarkups;
global using static MigrationBot.Types.Enums;
global using Telegram.Bot.Types;
global using Telegram.Bot.Types.Enums;
global using Telegram.Bot.Polling;
var date = new DateTime(2024, 1, 1);
Functions.DropDateTables(d: date);
Console.WriteLine("Dropped");
//Functions.CreateDateTables(d: date);
//Console.WriteLine("Tables created");
Functions.AppendSheets();
while (true)
{
try
{
//await Bot.Start();
}
catch (Exception ex)
{
Console.WriteLine(ex);
throw;
}
}