fix
This commit is contained in:
parent
9415ce4c37
commit
9a1a99985c
|
@ -15,7 +15,7 @@ const (
|
|||
Ping = Command("/ping")
|
||||
TodayLessons = Command("/today_lessons")
|
||||
TomorrowLessons = Command("/tomorrow_lessons")
|
||||
AllLessons = Command("/all_lessons")
|
||||
AllLessons = Command("/all_lessons")
|
||||
Weather = Command("/weather")
|
||||
NewYear = Command("/new_year")
|
||||
)
|
||||
|
|
2
main.go
2
main.go
|
@ -190,7 +190,7 @@ func run() {
|
|||
sendTomorrowLessonsToChat(bot, chatID, "Завтра, "+update.Message.From.FirstName+", эти пары:")
|
||||
|
||||
case commands.AllLessons:
|
||||
sendAllLessonsToChat(bot, chatID, "Пока знаю про эти пары:")
|
||||
sendAllLessonsToChat(bot, chatID, "Пока знаю про эти пары:")
|
||||
|
||||
case commands.Weather:
|
||||
w, err := weather.GetWeatherWithCache(opts.Key, 53.346853, 83.777012, time.Hour)
|
||||
|
|
|
@ -8,6 +8,6 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
lessons := parser.ParseByDay(date.Today(-48*time.Hour))
|
||||
lessons := parser.ParseByDay(date.Today(-48 * time.Hour))
|
||||
fmt.Println(lessons)
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ func parse() []Lesson {
|
|||
l := Lesson{
|
||||
Number: "",
|
||||
TimeStart: event.Start,
|
||||
TimeMsg: event.Start.Format("15:04") + " - " + event.End.Format("15:04"),
|
||||
TimeMsg: event.Start.Format("15:04") + " - " + event.End.Format("15:04"),
|
||||
Name: event.Summary,
|
||||
User: event.Description,
|
||||
Place: event.Location,
|
||||
|
|
Loading…
Reference in New Issue