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