Fix
This commit is contained in:
@ -22,6 +22,15 @@ func BalanceCommand(s *discordgo.Session, i *discordgo.InteractionCreate) (strin
|
||||
return fmt.Sprintf("💸 You have %d himbucks! 💸", balance), nil
|
||||
}
|
||||
|
||||
func BalanceSyncCommand(s *discordgo.Session, i *discordgo.InteractionCreate) (string, error) {
|
||||
syncError := lib.SyncBalance()
|
||||
if syncError != nil {
|
||||
return "", syncError
|
||||
}
|
||||
|
||||
return fmt.Sprintf("💸 Force-Synchronized Himbucks! 💸"), nil
|
||||
}
|
||||
|
||||
func LeaderboardCommand(s *discordgo.Session, i *discordgo.InteractionCreate) (string, error) {
|
||||
entries, err := lib.GetLeaderboard(i.GuildID, 10)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user