=== BrainyPress ===
Contributors: mrnaveedshah
Tags: AI auto blogger, gemini 2.0, twitter auto post, content automation, real-time search
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 2.7
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

The First WordPress Plugin with Gemini 2.0 Live Grounding & Twitter (X) Auto-Posting. Automate. Dominate. Monetize.

== Description ==

🚀 **AUTOMATE. DOMINATE. MONETIZE.**

**BrainyPress** is the world's first WordPress AI Auto-Blogger powered by **Google Gemini 2.0 Flash** with **Real-Time Grounding** (Google Search) and **Native Twitter (X) Auto-Posting**.

Stop using AI tools that write outdated content. BrainyPress forces the AI to browse the internet in real-time, fetch today's data (e.g., Live Bitcoin Price, Breaking News), and write comprehensive, SEO-optimized articles.

Once the article is published, BrainyPress automatically tweets it to your **Twitter (X)** account instantly. No Zapier, no monthly fees—just your own API keys.

### 🧠 WHY BRAINYPRESS IS DIFFERENT?

Most AI plugins hallucinate or write about 2023.
**BrainyPress lives in the NOW.**

1.  **🌍 Live Grounding:** Uses Google Search to fetch real-time facts, prices, and news from the last 24 hours.
2.  **🐦 X (Twitter) Auto-Post:** Automatically tweets your new article title + link + hashtags immediately after publishing.
3.  **🛡️ No-Fail Mode:** Advanced logic prevents "Empty Responses" or "Short Content" by forcing the AI to expand on topics.

### 🔥 KILLER FEATURES (v2.7):

* **⚡ Real-Time News (Gemini 2.0):** Generates content based on *current* events, not old training data. Perfect for Crypto, Tech, and Finance.
* **🐦 Native Twitter Integration:** Connect your Twitter Developer Keys (Consumer & Access Tokens) and automate your social media distribution.
* **🎲 Smart Topic Injection:** Running the same prompt 100 times? Our PHP logic injects a unique "Angle" (e.g., Analysis, History, Future Prediction) into every run so you never get duplicate content.
* **🎨 Neubrutalism Dashboard:** A premium, high-contrast UI that looks and feels like a modern SaaS app.
* **📝 Universal Brain:** Whether you ask for "Chicken Recipes" or "Solana Price," the AI adapts its persona (Chef vs. Analyst) automatically.
* **🚀 One-Click Run:** Generate a 1500+ word article in under 60 seconds with a live progress bar.

### 🤖 HOW IT WORKS:

1.  **Connect:** Enter your free Google Gemini API Key.
2.  **Social (Optional):** Enter your Twitter API Keys for auto-posting.
3.  **Prompt:** Enter a topic (e.g., "Latest Crypto News").
4.  **Automate:** Set it to run Hourly or Daily.
5.  **Result:** BrainyPress searches Google, writes the article, publishes it to WordPress, and tweets it to X—all while you sleep.

**Who is this for?**
* **Crypto News Sites:** Report on price pumps *as they happen*.
* **Affiliate Marketers:** Auto-generate product reviews with current specs.
* **News Aggregators:** Fill your site with breaking news 24/7.

---
**Developed with ❤️ by [Naveed Ali Shah](https://mrnaveedshah.com).**
*Build your empire. Let the AI do the work.*

== Installation ==

1.  Upload the `brainypress` folder to the `/wp-content/plugins/` directory.
2.  Activate the plugin through the 'Plugins' menu in WordPress.
3.  Go to **BrainyPress** in your dashboard.
4.  **Step 1:** Paste your Google Gemini API Key.
5.  **Step 2 (Optional):** Paste your Twitter (X) API Keys (Consumer Key, Secret, Access Token, Secret) for auto-posting.
6.  **Step 3:** Create a new automation order (e.g., "Write about Solana News").
7.  Click **Run Now** or set a schedule!

== Frequently Asked Questions ==

= Does this use real-time data? =
Yes! We utilize Gemini's `Google Search` tool (Grounding) to force the AI to look up information from the web before writing.

= How does Twitter posting work? =
BrainyPress connects directly to the Twitter API (v2) using OAuth 1.0a. You need a Twitter Developer account (Free/Basic tier works) to get your 4 keys. Once saved, every auto-generated post is tweeted automatically.

= Is it free? =
The plugin is free. You use your own API keys. Google Gemini currently offers a free tier, and Twitter offers a free developer tier for posting.

= Why are the articles so long? =
In v2.7, we added a "Force Length" logic. If the user requests 1500 words, the AI is instructed to expand on history, future outlook, and pros/cons to ensure deep content.

== Screenshots ==

1. **The Dashboard:** Neubrutalism UI with Real-Time Progress Bar.
2. **Twitter Settings:** Easy input fields for your 4 Twitter API Keys.
3. **Live Output:** A generated article with up-to-date 2026 data.

== Changelog ==

= 2.7 =
* **NEW:** Added Native Twitter (X) Auto-Posting (OAuth 1.0a).
* **NEW:** Integrated Gemini 2.0 Flash Exp for faster, smarter results.
* **NEW:** "Smart Topic Injection" to prevent duplicate content on repeated runs.
* **UPDATE:** Removed Safety Filters (`BLOCK_NONE`) to prevent empty responses on Crypto topics.
* **UPDATE:** Enhanced "Force Length" logic to ensure 1000+ word articles.
* **UI:** Updated Dashboard to Premium Neubrutalism V2.

= 2.0 =
* Rebranded to BrainyPress.
* Added Neubrutalism Design System.
* Added "Run Now" instant post button.

= 1.0 =
* Initial release.