Skip to content

Commit

Permalink
fix(discord): removing trim prefix for claim command
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy committed Jan 31, 2024
1 parent 67b7a5c commit 413e518
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions discord/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package discord

import (
"fmt"
"strings"

"github.com/bwmarrin/discordgo"
"github.com/kehiy/RoboPac/log"
Expand Down Expand Up @@ -38,9 +37,6 @@ func claimCommandHandler(db *DiscordBot, s *discordgo.Session, i *discordgo.Inte

log.Info("new claim request", "discordID", i.Member.User.ID, "mainNetAddr", mainnetAddr, "testNetAddr", testnetAddr)

testnetAddr = strings.TrimPrefix(testnetAddr, "testnet-addr:")
mainnetAddr = strings.TrimPrefix(mainnetAddr, "mainnet-addr:")

command := fmt.Sprintf("claim %s %s %s", i.Member.User.ID, testnetAddr, mainnetAddr)

result, err := db.BotEngine.Run(command)
Expand Down

0 comments on commit 413e518

Please sign in to comment.