=== Etibot Yorum Botu ===
Contributors: etiyazilim
Donate link: https://www.eticaretteyim.com/
Tags: comments, spam, ai, gemini, openai
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Transforms spam and pending comments into natural, organic comments using Google Gemini, OpenAI, and Noxery AI.

== Description ==

Etibot Yorum Botu is an intelligent WordPress plugin designed to intercept spam, link-heavy, and pending comments, transforming them into high-quality, organic, and context-aware comments using Google Gemini, OpenAI, and Noxery AI.

It seamlessly integrates with [Makale Botu (makalebotu.com.tr)](https://makalebotu.com.tr) to complete your WordPress automation workflow. While Makale Botu handles automated, SEO-optimized article publishing, Etibot Yorum Botu enriches your articles with natural reader comments and WooCommerce product reviews.

= Key Features =
* **Makale Botu Ecosystem Integration:** Works in perfect synergy with [Makale Botu (makalebotu.com.tr)](https://makalebotu.com.tr) to populate automated posts with genuine user comments, discussions, and high SEO ratings.
* **Smart Spam Interception:** Catches link-heavy or suspicious comments without affecting visitor experience.
* **Auto-Discovery & Backlog Intake:** Automatically pulls from existing and incoming spam/pending moderation queue without requiring manual button clicks.
* **WooCommerce Product Reviews & Rating:** Automatically transforms spam on product pages into authentic customer reviews with 4-5 star ratings and Verified Owner badges.
* **AI Auto-Reply Engine:** Automatically replies to genuine visitor comments with intelligent, polite, and contextual answers on behalf of the site author or admin.
* **Autonomous Self-Execution Engine:** Automatically triggers background AI transformation immediately upon comment submission without requiring server cron setup.
* **Dedicated Cron Management Tab:** Full cPanel, Plesk, and Webhook copyable commands and step-by-step guides.
* **Google Gemini, OpenAI & Noxery AI Integration:** Supports latest Gemini Flash, GPT-4o-mini, and Noxery (GPT-6 Astra, GPT-4.1) models with automatic retry logic.
* **Multi-Language Support:** Generate natural comments in Turkish (TR), English (EN), or auto-detect based on the post language.
* **Keyword Shaping:** Custom meta box on post edit screens to guide comment generation with post-specific keywords.
* **Live Monitor Terminal:** Real-time terminal with live logs and instant stop control.
* **Transformed Comments Archive:** Dedicated management tab to review, compare original spam vs AI comments, and perform bulk or single deletions.
* **Smart Name Diversity Engine:** Prevents consecutive duplicate names and ensures culturally authentic, diverse author naming.
* **Privacy & Email Masking:** Complies with privacy standards by masking comment author emails and domain segments (u****@***.***).

== Makale Botu Entegrasyonu ==

Etibot Yorum Botu, resmi yapay zeka içerik üretim çözümümüz olan [Makale Botu](https://makalebotu.com.tr) ile %100 uyumlu çalışacak şekilde tasarlanmıştır.

* **Tam Otomasyon:** Makale Botu ile otomatik olarak yayınlanan makaleleriniz, Etibot Yorum Botu sayesinde otomatik organik yorumlarla, kullanıcı sorularıyla ve WooCommerce puanlarıyla zenginleştirilir.
* **Yüksek SEO Değeri:** Arama motorları içeriğin altında sürekli yeni ve doğal tartışmalar gördüğünde sayfalarınızı üst sıralara taşır.
* **Detaylı Bilgi:** https://makalebotu.com.tr

== External Services ==

This plugin relies on external third-party AI APIs to analyze post contents and generate relevant, organic comments. The following external services are supported:

1. **Google Gemini API (Google AI Studio)**
   * **Purpose:** Generates natural, context-aware comments and reviewer names based on the post title, excerpt, and optional keywords.
   * **Data Sent:** Post title, excerpt, and post keywords are sent over an encrypted HTTPS connection. No visitor IP addresses or personal identities are transmitted to the API.
   * **When it is called:** Only when processing a spam/pending comment transformation triggered by the site administrator or automated background cron.
   * **Service Website:** https://ai.google.dev/
   * **Terms of Service:** https://ai.google.dev/gemini-api/terms
   * **Privacy Policy:** https://policies.google.com/privacy

2. **OpenAI API (ChatGPT / GPT-4o-mini)**
   * **Purpose:** Alternative AI provider to generate relevant comments when OpenAI is selected by the administrator.
   * **Data Sent:** Post title, excerpt, and post keywords are sent over an encrypted HTTPS connection.
   * **When it is called:** Only when processing a comment transformation if OpenAI is configured as the active provider.
   * **Service Website:** https://openai.com/
   * **Terms of Service:** https://openai.com/policies/terms-of-use
   * **Privacy Policy:** https://openai.com/policies/privacy-policy

3. **Noxery AI API (api.noxery.net)**
   * **Purpose:** Alternative OpenAI-compatible AI provider to generate relevant comments when Noxery AI is selected.
   * **Data Sent:** Post title, excerpt, and post keywords are sent over an encrypted HTTPS connection.
   * **When it is called:** Only when processing a comment transformation if Noxery AI is configured as the active provider.
   * **Service Website:** https://noxery.net/
   * **Terms of Service:** https://noxery.net/tr/terms
   * **Privacy Policy:** https://noxery.net/tr/terms

== Installation ==

1. Upload the etibot-yorum-botu folder to the /wp-content/plugins/ directory, or install etibot-yorum-botu.zip via **Plugins > Add New > Upload Plugin**.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Navigate to **Etibot Yorum Botu** in your WordPress admin menu.
4. Enter your Google Gemini or OpenAI API Key and configure your preferred settings.

== Frequently Asked Questions ==

= Where can I get an API key? =
You can obtain a Google Gemini API key from [Google AI Studio](https://aistudio.google.com/) or an OpenAI API key from [OpenAI Platform](https://platform.openai.com/).

= Is my API Key stored securely? =
Yes. All API keys are encrypted in the WordPress database using AES-256-CTR with unique encryption keys and initialization vectors.

= Does this plugin slow down my website? =
No. By default, Etibot Yorum Botu operates in Background (WP-Cron) mode, queuing comments for processing without blocking visitors or page loading times.

= Is it compatible with latest PHP versions? =
Yes, it is fully tested and compatible with PHP 7.4 through PHP 8.3+.

== Screenshots ==

1. Genel Ayarlar ve Yapay Zeka Model Seçim Ekranı.
2. Canlı Monitör Terminali ve Dönüştürülen Yorumlar Karşılaştırması.

== Changelog ==

= 1.1.1 =
* Dedicated WooCommerce tab added and configured to be disabled by default on installation.
* Lightweight Event-Driven execution: triggers on-demand when comments are posted/transitioned without burdening public frontend visitors or running constant polling.
* Added fully automated spam and pending moderation backlog discovery engine (no manual "Kuyruğa Ekle" click required).
* Added hook transition listeners for third-party antispam plugins (Akismet, Antispam Bee, etc.).
* Added General Settings toggle for automatic spam intake.
* Enhanced batch queue processing and monitor synchronization.

= 1.1.0 =
* Added WooCommerce Product Review & Rating engine with 4-5 stars and Verified Buyer support.
* Added AI Auto-Reply engine with on/off toggle and custom tone/author support.
* Added dedicated Cron Management tab with cPanel, Plesk, and Webhook copyable commands.
* Added autonomous non-blocking self-execution background engine.
* Added Noxery AI integration with multi-model support.
* Added Transformed Comments archive with bulk actions and review options.
* Added Eti Yazılım plugin ecosystem showcase tab.
* Implemented Smart Name Diversity engine.

= 1.0.0 =
* Initial public release as Etibot Yorum Botu.
* Fully refactored codebase adhering to WordPress.org coding standards.
* Added multi-language support (Turkish, English, Auto-detect).
* Enqueued admin scripts and stylesheets via standard WordPress hooks.
* Added detailed external third-party AI services disclosure.
