Skip to content

Commit

Permalink
Reenable all give commands
Browse files Browse the repository at this point in the history
  • Loading branch information
5jiji committed Mar 17, 2024
1 parent d4893ce commit 415d54e
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Assets/Scripts/Networking/TwitchClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,7 @@ private IEnumerator ProcessAdminGiveBits(string messageId, PlayerHandler ph, str
}
private IEnumerator ProcessGivePointsCommand(string messageId, PlayerHandler ph, string msg)
{
ReplyToPlayer(messageId, ph.pp.TwitchUsername, "This command has been disabled to combat alt account abuse.");
yield break;

/* if (!MyUtil.GetUsernameFromString(msg, out string targetUsername))
if (!MyUtil.GetUsernameFromString(msg, out string targetUsername))
{
ReplyToPlayer(messageId, ph.pp.TwitchUsername, "Failed to find target username. Correct format is: !givepoints [amount] @username");
yield break;
Expand Down Expand Up @@ -506,13 +503,9 @@ private IEnumerator ProcessGivePointsCommand(string messageId, PlayerHandler ph,
ph.SubtractPoints(desiredPointsToGive, canKill: false, createTextPopup: true);

TextPopupMaster.Inst.CreateTravelingIndicator(MyUtil.AbbreviateNum4Char(desiredPointsToGive), desiredPointsToGive, ph, targetPlayer, 0.1f, Color.green, ph.PfpTexture, TI_Type.GivePoints);
*/
}
private IEnumerator ProcessGiveGoldCommand(string messageId, PlayerHandler ph, string msg)
{
ReplyToPlayer(messageId, ph.pp.TwitchUsername, "This command has been disabled (temporarily?) to combat alt account abuse.");
yield break;
/*
if (!MyUtil.GetUsernameFromString(msg, out string targetUsername))
{
ReplyToPlayer(messageId, ph.pp.TwitchUsername, "Failed to find target username. Correct format is: !givegold [amount] @username");
Expand Down Expand Up @@ -564,7 +557,6 @@ private IEnumerator ProcessGiveGoldCommand(string messageId, PlayerHandler ph, s
ph.SubtractGold((int)desiredGoldToGive, createTextPopup: true);

TextPopupMaster.Inst.CreateTravelingIndicator(MyUtil.AbbreviateNum4Char(desiredGoldToGive), desiredGoldToGive, ph, targetPlayer, 0.1f, MyColors.Gold, ph.PfpTexture, TI_Type.GiveGold);
*/
}
private IEnumerator ProcessThrowTomato(string messageId, PlayerHandler ph, string msg)
{
Expand Down Expand Up @@ -687,4 +679,4 @@ private string RemoveTwitchEmotes(string rawMsg, List<Emote> emotes)

return noEmotesSb.ToString();
}
}
}

0 comments on commit 415d54e

Please sign in to comment.