Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
Added switch case on user.Username in renderVoiceStateText to replace discord's unique usernames with custom Hampel gamertags
  • Loading branch information
ipecxx authored Aug 23, 2023
1 parent 25cf90f commit 37b9b4d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,18 @@ func renderVoiceStateText(user *discordgo.User, leaving bool, voiceState *discor
return nil, errors.New("please specifiy a valid user and voice state")
}

// Switch discord's unique username to custom Hampel gamertags
switch user.Username {
case ".ipec":
user.Username = "Ipec"
case "matze8205":
user.Username = "Bifteki"
case "didi1701:
user.Username = "Didi"
case "oxisto":
user.Username = "Oxisto"
}

var s = fmt.Sprintf("**%s** ", user.Username)

if leaving {
Expand Down

0 comments on commit 37b9b4d

Please sign in to comment.