hackquest logo

TruthSync

TruthSync is a 24/7 Discord bot that fights misinformation using Google's Gemini Grounded Search to verify news and statements in real time.

Videos

Description

๐Ÿง  TruthSync โ€“ Your Real-Time Fact-Checking Bot for Discord

TruthSync is an AI-powered Discord bot built to combat misinformation and promote truth in digital conversations. Available 24/7, it leverages the cutting-edge capabilities of Googleโ€™s Gemini 2.0 Flash model and the Grounded Search Tool to verify the authenticity of any statement shared within a Discord server โ€” all with a simple !check command.

๐Ÿ“Œ What is TruthSync?

In a world overflowing with information โ€” much of it misleading โ€” TruthSync steps in as a real-time verification agent. It integrates seamlessly into any Discord server and empowers communities to fact-check claims, news, and rumors directly through chat. With natural language processing, source-backed analysis, and instant feedback, it brings the power of AI fact-checking into everyday conversations.


๐Ÿš€ Key Features

  • โœ… 24/7 Intelligent Bot: Always online and ready to process fact-checking requests from users across any Discord server.

  • ๐Ÿ” Gemini-Powered Verification: Utilizes Google's Gemini 2.0 Flash model along with the Grounded Search Tool to evaluate the truthfulness of statements using real-time, reliable sources.

  • ๐Ÿ’ฌ Simple Command Syntax: Users can simply type !check <message> and receive instant, AI-analyzed results.

  • ๐Ÿ“ก Real-Time Feedback: Responses include whether the statement is true, false, misleading, or inconclusive โ€” with a short explanation for context.

  • ๐Ÿ› ๏ธ Robust Error Handling: Detects invalid tokens, malformed queries, and misuse with clear, user-friendly feedback.

  • ๐ŸŒ Scalable & Cross-Platform: Built with future support for WhatsApp, Slack, and multilingual capabilities on the roadmap.

    ๐Ÿ’ก How It Works

    1. A user types !check <statement> in a Discord channel.

    2. The bot sends the input to the backend.

    3. The backend processes the message through Gemini 2.0 Flash and Google's Grounded Search Tool.

    4. AI cross-references reliable, real-time sources to evaluate the claim.

    5. The bot responds with a verdict (True, False, Misleading, or Inconclusive) and a brief, human-readable explanation.


    ๐Ÿงช Roadmap / Upcoming Features

    • ๐Ÿ”— Source Linking โ€“ Let users access the original sources behind fact-checks.

    • ๐ŸŒ Multilingual Support โ€“ Support for multiple languages to broaden accessibility.

    • ๐Ÿ“Š Fact-Check Analytics Dashboard โ€“ Visualize trends and frequent topics being fact-checked.

    • ๐Ÿ›ก๏ธ Misinformation Alerts โ€“ Push alerts on trending fake news in real time.

    • ๐Ÿค– Cross-Platform Integration โ€“ WhatsApp and Slack bot support coming soon.

    • ๐Ÿ“ฐ Live Knowledge Base โ€“ Tap into a constantly updating news feed for global events.

    Project Links

Progress During Hackathon

๐Ÿ“† Hackathon Progress โ€“ TruthSync (2-Day Timeline) Day 1: Planning, Backend, and Bot Development โฑ Morning โ€“ Ideation & Setup Brainstormed on the theme: Real-time fact-checking in chat platforms. Finalized the name: TruthSync. Decided to use Discord as the first integration point. Chose the tech stack: Frontend: Next.js Backend: Python + Gemini API Development: Firebase Studio Deployment: Vercel (frontend), AWS EC2 (backend) โš™๏ธ Afternoon โ€“ Backend API & Gemini Integration Set up Python environment and basic API structure. Integrated Google Gemini + Grounded Search for accurate fact-checking. Designed the logic to analyze user-provided messages and generate verdicts: True, False, or Needs More Context. Created response templates with simplified explanations. ๐Ÿค– Evening โ€“ Discord Bot Setup Built the Discord bot using discord.py. Connected bot command !check <message> to trigger Gemini-powered validation. Handled edge cases like missing input, API failures, and ambiguous data. Successfully tested a few messages and received accurate truth assessments. Day 2: Frontend, Deployment, Testing, and Finalization ๐Ÿ–ฅ๏ธ Morning โ€“ Frontend Development Built the frontend UI using Next.js. Created a minimal interface to showcase project overview, bot functionality, and usage instructions. ๐Ÿš€ Afternoon โ€“ Deployment & Integration Deployed the frontend on Vercel with a custom domain. Hosted backend on AWS EC2 with open endpoints and CORS setup. Validated full cycle from Discord input โ†’ Backend processing โ†’ Gemini evaluation โ†’ Bot response. โœ… Evening โ€“ Testing & Polish Performed extensive tests with true, false, and misleading news samples. Fine-tuned Gemini prompts for better consistency. Updated the README with instructions, usage examples, roadmap, and contribution guide. Final bot invite link generated and shared for Discord integration. Final project link: https://h4b-frontend-nexuscode.vercel.app/

Tech Stack

Next
Python
Firebase Studio
Vercel
AWS
Gemini