mirror of
https://github.com/ultrasn0w/huso.git
synced 2025-12-14 05:39:52 +01:00
Registration
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/gookit/color"
|
||||
@@ -43,6 +44,9 @@ func GetUserBytesCached(username string) ([]byte, error) {
|
||||
if err != nil {
|
||||
return data, err
|
||||
}
|
||||
if strings.Contains(string(data), "BadResponseException") {
|
||||
return data, fmt.Errorf("user not found: %s", username)
|
||||
}
|
||||
cache.Set(key, data)
|
||||
return data, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user