Ejemplo n.º 1
0
 private void sendMessage(String message)
 {
     if (batchMode)
     {
         buffer.Append(message);
     }
     else
     {
         String webhookUrl = ACTTabControl.GetWebhookUrl();
         DiscordService.SendMessageAsync(webhookUrl, message);
     }
 }
Ejemplo n.º 2
0
        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;
        }