From 7a45b929a5dcdedacca16eaed44c2b0a63f00e76 Mon Sep 17 00:00:00 2001 From: sirrow Date: Wed, 28 May 2025 02:13:42 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B9=E3=83=86=E3=83=BC=E3=82=B8=E6=83=85?= =?UTF-8?q?=E5=A0=B1=E3=82=92=E9=9D=9E=E8=A1=A8=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/main.go b/main.go index 9b57dd8..da3abde 100644 --- a/main.go +++ b/main.go @@ -7,7 +7,6 @@ import ( "net/http" "os" "time" - "unicode/utf8" "github.com/bwmarrin/discordgo" ) @@ -187,19 +186,21 @@ func main() { 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) + /* + 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"