public void SendNotification(CrossBot routine, string msg) { if (msg.StartsWith("Visitor arriving")) { return; } msg = SanitizeForTwitch(msg); SendMessage($"@{Trader} - {msg}", Settings.NotifyDestination); }
public SignalrCrossBot(WebConfig settings, CrossBot bot) { Bot = bot; URI = settings.URIEndpoint; AuthID = settings.AuthID; AuthString = settings.AuthTokenOrString; WebNotifierInstance = new SignalRNotify(AuthID, AuthString, URI); bot.DodoNotifiers.Add(WebNotifierInstance); }
public void OrderReady(CrossBot routine, string msg, string dodo) { msg = SanitizeForTwitch(msg); if (Settings.OrderWaitDestination == TwitchMessageDestination.Channel) { SendMessage($"I'm waiting for you @{Trader}! {msg}. Enter the number you whispered to me on https://berichan.github.io/GetDodoCode/?hash={SimpleEncrypt.SimpleEncryptToBase64(dodo, Password).MakeWebSafe()} to get your dodo code. Click this link, not an old one or someone else's.", Settings.OrderWaitDestination); } else if (Settings.OrderWaitDestination == TwitchMessageDestination.Whisper) { SendMessage($"I'm waiting for you @{Trader}! {msg}. Your Dodo code is {dodo}", Settings.OrderWaitDestination); } }
public void OrderFinished(CrossBot routine, string msg) { OnFinish?.Invoke(routine); SendMessage($"@{Trader} - Your order is complete, Thanks for your order! {msg}", Settings.OrderFinishDestination); }
public void OrderInitializing(CrossBot routine, string msg) { msg = SanitizeForTwitch(msg); SendMessage($"@{Trader} - Your order is starting, please ensure your inventory is empty, then go talk to Orville and stay on the Dodo code entry screen. I will send you the Dodo link shortly. {msg}", Settings.OrderStartDestination); }
public void OrderCancelled(CrossBot routine, string msg, bool faulted) { OnFinish?.Invoke(routine); SendMessage($"@{Trader} - {msg}", Settings.OrderCanceledDestination); }