React Bot

An open-source Node.js and Discord.js moderation and utility bot built for the Gamer React community, featuring automated video quality validation, Perspective API toxicity filtering, and Google Sheets synchronization.

NodeJsDiscord.jsOpen SourceJavascript

license

Overview

React Bot is an open-source moderation, media-verification, and community management bot engineered for the Gamer React Discord server. Built with Node.js and Discord.js, the bot automates media submission checks, chat moderation, ticket transcript generation, and external spreadsheet logging.

Tools & Technologies: Node.js, JavaScript, Discord.js, Google Sheets API, Perspective API, HTML Transcripts


Technical Contributions & Systems Breakdown

1. Automated Video Quality Validation

  • Submission Inspection Pipeline: Programmed an automated channel listener that inspects user-submitted video links and attachments in designated submission channels, verifying resolution and quality parameters before approving content for community review.

2. Machine-Learning Chat Moderation & Archival

  • Perspective API Integration: Integrated Google's Perspective API to evaluate incoming message toxicity scores in real time and flag or filter rule-breaking content automatically.
  • HTML Ticket Transcripts: Utilized discord-html-transcripts to compile and archive formatted HTML logs of moderation and support channels upon closure.

3. Cloud Spreadsheet Synchronization

  • Google Sheets Telemetry: Connected the bot to the google-spreadsheet API to log validated user submissions and moderation records directly into shared staff spreadsheets.

Deployment & Configuration

While tailored specifically for the Gamer React Discord architecture, the source code is publicly available for reference:

  1. Configure target submission and moderation channel IDs in the configuration file.
  2. Supply Discord bot credentials, Google service account keys, and Perspective API tokens.
  3. Start the runtime service via node index.js.

Core Dependencies


Direct Impact

  • Automated Content Curation: Video quality validation removed manual moderator checks on low-resolution submissions, ensuring a consistent standard for community reaction events.
  • Proactive Moderation: Combining Perspective API scoring with automated HTML transcript archival reduced moderator response times and preserved clear audit trails.