=== 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.0.0
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 and OpenAI.

== 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 and OpenAI.

= Key Features =
* **Smart Spam Interception:** Catches link-heavy or suspicious comments without affecting visitor experience.
* **Google Gemini & OpenAI Integration:** Supports latest Gemini 3.8 / 3.7 / 3.6 Flash models and GPT-4o-mini with multi-tier automatic quota fallback.
* **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.
* **Background WP-Cron & Webhook:** Automated scheduled execution with direct cPanel cron webhook support.
* **Live Monitor Terminal:** Real-time terminal with live logs and instant stop control.
* **Privacy & Email Masking:** Complies with privacy standards by masking comment author emails and domain segments (u****@***.***).

== 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

== 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.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.
