-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
55 lines (48 loc) · 1.36 KB
/
main.go
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package main
import (
"fmt"
"time"
"github.com/orsenkucher/schedulebot/bot"
"github.com/orsenkucher/schedulebot/cloudfunc"
"github.com/orsenkucher/schedulebot/creds"
"github.com/orsenkucher/schedulebot/fbclient"
"github.com/orsenkucher/schedulebot/route"
"github.com/orsenkucher/schedulebot/sch"
)
// *** ASAP ***
// [+] Migalky (spin[up/down])
// [+] Append sch.json with schs for Thu and Fri
//
// *** Current ***
// [.] Generate schedule path from direcory it lies in
// [+] Generate buttons by path like below
// Ukraine?.Mehmat.firstyear.math.group1.subgroup2
// [.] Finish schmanager cmd
//
// *** Proposals ***
// [.] Use hash to determine whether sch update is needed
// [.] Custom schedules
//
// *** v2.0 ***
// [.] /start message
// [.] day/week events with "remove" button
// [.] on sub edit start msg
// [.] on sub unsub from previous sub
// [.] cmds: [sub unsub week day]
// [.] возможность для правки страростами /edit cmd
func main() {
fmt.Println(cloudfunc.GetMinsOfWeek(time.Now().UTC()))
fbclient.GenerateTestSchedule()
// fbclient.CreateSchFromJSON(root.SchFile)
// /*
fbclient.CreateSchFromOS()
t := route.BuildOSTree()
t.Print()
tr := route.NewTreeRoot(t)
b := bot.NewBot(creds.Cr459, tr)
updsmap, table := sch.SpawnSchedulers(b.Jobs)
b.Table = table
b.Listen(updsmap)
// */
fbclient.CreateSchedule()
}