バンカラチャレンジの情報を追加

This commit is contained in:
2025-06-08 10:11:55 +09:00
parent 618b101093
commit bdd02bada0

25
main.go
View File

@@ -217,6 +217,31 @@ func battleSchedule() string {
output += fmt.Sprintln()
}
output += "```\n"
output += "バンカラチャレンジ スケジュール\n"
output += "```\n"
for _, v := range data.Result.BankaraChallenge {
output += fmt.Sprintf("%d/%d %2d:%02d- ", v.StartTime.Month(), v.StartTime.Day(), v.StartTime.Hour(), v.StartTime.Minute())
output += v.Rule.Name
/*
length := utf8.RuneCountInString(v.Rule.Name)
fill := (13 - length)
for range fill {
output += " "
}
for _, stage := range v.Stages {
output += fmt.Sprintf("%s ", stage.Name)
length := utf8.RuneCountInString(stage.Name)
fill := (11 - length)
for range fill {
output += " "
}
}
*/
output += fmt.Sprintln()
}
output += "```\n"
return output
}