private void sendMessage(String message) { if (batchMode) { buffer.Append(message); } else { String webhookUrl = ACTTabControl.GetWebhookUrl(); DiscordService.SendMessageAsync(webhookUrl, message); } }
public void InitPlugin(TabPage pluginScreenSpace, Label pluginStatusText) { Settings = new PluginSettings(this); DiscordService = new DiscordService(); ACTTabControl = new ACTTabControl(this); pluginScreenSpace.Text = "Kikisen Talk"; pluginScreenSpace.Controls.Add(ACTTabControl); Settings.Load(); ClearParamMessages(); ClearBatchMessage(); ActGlobals.oFormActMain.OnLogLineRead += OnLogLineRead; }