mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
clear up the ()uid reply.
previously '()uid forsen' would reply with only the twitch user id: '22484632'. now it replies with 'forsen=22484632'
This commit is contained in:
parent
865e8eb94e
commit
d521ace38e
|
@ -23,5 +23,6 @@ func IDByUsername(username string) string {
|
|||
responseList := make([]ivrIDByUsernameResponse, 0)
|
||||
_ = json.NewDecoder(resp.Body).Decode(&responseList)
|
||||
|
||||
return responseList[0].ID
|
||||
reply := fmt.Sprintf("%s=%s", username, responseList[0].ID)
|
||||
return reply
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue