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
A user types
!check <statement>
in a Discord channel.The bot sends the input to the backend.
The backend processes the message through Gemini 2.0 Flash and Google's Grounded Search Tool.
AI cross-references reliable, real-time sources to evaluate the claim.
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
π Live Demo (MVP): https://h4b-frontend-nexuscode.vercel.app/
π» Frontend GitHub: https://github.com/DevDesignWin/H4B-Frontend
βοΈ Backend GitHub: https://github.com/shauryapandit/H4B-Backend/tree/main
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/