pilky / twitchmata

A set of files to help simplify integrating Twitch with an Animata VIPO stream built in Unity
MIT License
11 stars 3 forks source link

"!debug-bits" command does not pass in username or user id #70

Open pilky opened 2 months ago

pilky commented 2 months ago

Update to something similar to this

var bitAmount = 100;
if (arguments.Count >= 1) {
    bitAmount = Int32.Parse(arguments[0]);
}

string username = "jwp";
if (arguments.Count >= 2) {
    username = arguments[1];
}

this.UserManager.FetchUserWithUserName(username, user => {
    this.Debug_SendBits(bitAmount, username, user.id);
});