public static void SayBattle(TasClient tas, Spring spring, string text, bool ingame) { tas.Say(SayPlace.Battle, "", text, true); if (spring.IsRunning && ingame) spring.SayGame(text); }
public static void Respond(TasClient tas, Spring spring, TasSayEventArgs e, string text) { var p = SayPlace.User; bool emote = false; if (e.Place == SayPlace.Battle) { p = SayPlace.BattlePrivate; emote = true; } if (e.Place == SayPlace.Game && spring.IsRunning) spring.SayGame(text); else tas.Say(p, e.UserName, text, emote); }