From bc931a185ad9615cf33e1c1f0e3c9f3d9b7796ce Mon Sep 17 00:00:00 2001 From: lyx0 Date: Mon, 25 Oct 2021 18:01:17 +0200 Subject: [PATCH] comment out spammy commands --- pkg/commands/pyramid.go | 78 ++++++++++++++++++++--------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/pkg/commands/pyramid.go b/pkg/commands/pyramid.go index 1978146..1de7e70 100644 --- a/pkg/commands/pyramid.go +++ b/pkg/commands/pyramid.go @@ -1,52 +1,52 @@ package commands -import ( - "fmt" - "strconv" - "strings" +// import ( +// "fmt" +// "strconv" +// "strings" - "github.com/lyx0/nourybot/cmd/bot" -) +// "github.com/lyx0/nourybot/cmd/bot" +// ) -func Pyramid(channel, size, emote string, nb *bot.Bot) { - if size[0] == '.' || size[0] == '/' { - nb.Send(channel, ":tf:") - return - } +// func Pyramid(channel, size, emote string, nb *bot.Bot) { +// if size[0] == '.' || size[0] == '/' { +// nb.Send(channel, ":tf:") +// return +// } - if emote[0] == '.' || emote[0] == '/' { - nb.Send(channel, ":tf:") - return - } +// if emote[0] == '.' || emote[0] == '/' { +// nb.Send(channel, ":tf:") +// return +// } - pyramidSize, err := strconv.Atoi(size) - pyramidEmote := fmt.Sprint(emote + " ") +// pyramidSize, err := strconv.Atoi(size) +// pyramidEmote := fmt.Sprint(emote + " ") - if err != nil { - nb.Send(channel, "Something went wrong") - } +// if err != nil { +// nb.Send(channel, "Something went wrong") +// } - if pyramidSize == 1 { - nb.Send(channel, fmt.Sprint(pyramidEmote+"...")) - return - } +// if pyramidSize == 1 { +// nb.Send(channel, fmt.Sprint(pyramidEmote+"...")) +// return +// } - if pyramidSize > 3 { - nb.Send(channel, "Max pyramid size is 3") - return - } +// if pyramidSize > 3 { +// nb.Send(channel, "Max pyramid size is 3") +// return +// } - for i := 0; i <= pyramidSize; i++ { - pyramidMessageAsc := strings.Repeat(pyramidEmote, i) - // fmt.Println(pyramidMessageAsc) +// for i := 0; i <= pyramidSize; i++ { +// pyramidMessageAsc := strings.Repeat(pyramidEmote, i) +// // fmt.Println(pyramidMessageAsc) - nb.Send(channel, pyramidMessageAsc) - } +// nb.Send(channel, pyramidMessageAsc) +// } - for j := pyramidSize - 1; j >= 0; j-- { - pyramidMessageDesc := strings.Repeat(pyramidEmote, j) - // fmt.Println(pyramidMessageDesc) +// for j := pyramidSize - 1; j >= 0; j-- { +// pyramidMessageDesc := strings.Repeat(pyramidEmote, j) +// // fmt.Println(pyramidMessageDesc) - nb.Send(channel, pyramidMessageDesc) - } -} +// nb.Send(channel, pyramidMessageDesc) +// } +// }