Remove uneeded couts

This commit is contained in:
Eccentric 2024-02-10 02:10:41 +00:00
parent 0a63dd8fe4
commit 88cb349ff4
5 changed files with 1 additions and 18 deletions

View File

@ -166,8 +166,6 @@ func addBanHandler(s *discordgo.Session, i *discordgo.InteractionCreate, looker
}
}
aid.Print(expiry)
player.AddBan(reason, looker.ID, expiry)
s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
Type: discordgo.InteractionResponseChannelMessageWithSource,

View File

@ -675,14 +675,6 @@ func clientRefundMtxPurchaseAction(c *fiber.Ctx, person *p.Person, profile *p.Pr
return fmt.Errorf("invalid Body")
}
aid.Print(person.AthenaProfile.Purchases.Count())
aid.Print(person.CommonCoreProfile.Purchases.Count())
person.AthenaProfile.Purchases.RangePurchases(func(key string, value *p.Purchase) bool {
aid.Print(key, value.ID)
return true
})
purchase := person.AthenaProfile.Purchases.GetPurchase(body.PurchaseID)
if purchase == nil {
return fmt.Errorf("purchase not found")

View File

@ -1,7 +1,6 @@
package handlers
import (
"fmt"
"time"
"github.com/ectrc/snow/aid"
@ -30,7 +29,6 @@ func GetFriendList(c *fiber.Ctx) error {
func PostCreateFriend(c *fiber.Ctx) error {
relationship, err := c.Locals("person").(*p.Person).CreateRelationship(c.Params("wanted"))
if err != nil {
aid.Print(fmt.Sprintf("Error creating relationship: %s", err.Error()))
return c.Status(400).JSON(aid.ErrorBadRequest(err.Error()))
}

View File

@ -109,7 +109,6 @@ func GetUserStorageFile(c *fiber.Ctx) error {
file, err := storage.Repo.Amazon.GetUserFile(person.ID)
if err != nil {
aid.Print("(amazon)", err.Error())
return c.Status(500).JSON(aid.ErrorBadRequest("Failed to retrieve user file"))
}
@ -126,7 +125,6 @@ func PutUserStorageFile(c *fiber.Ctx) error {
err := storage.Repo.Amazon.CreateUserFile(person.ID, body)
if err != nil {
aid.Print("(amazon)", err.Error())
return c.Status(500).JSON(aid.ErrorBadRequest("Failed to create user file"))
}

View File

@ -273,9 +273,6 @@ func (p *Person) AddBan(reason string, issuedBy string, expiry ...string) {
parsed, err := aid.ParseDuration(expiry[0])
if err == nil {
t = time.Now().Add(parsed)
aid.Print("Parsed duration for ban expiry:", t.Format("2006-01-02T15:04:05.999Z"))
} else {
aid.Print("Failed to parse duration for ban expiry:", err)
}
}