Git Product home page Git Product logo

discord_ai_bot's Introduction

Discord AI Analytics Bot

I. Purpose:

To demonstrate the data streaming pipelines by implementing the modern data stack.

II. Goal:

  • Streaming message data:
    bot -> kafka -> druid -> superset
  • Detect hate speech in the Discord Server

III. Tech Stack:

IV. Infastructure:

architecture

V. Set Up

Due to the scope and purpose of this project, everything will be running in docker containers via simple make commands. Thus, it is essential to have make, docker and docker-compose properly installed.

Pre-requested:

  • make
  • docker & docker-compose
  • Platform: Mac or Linux (for automatic setup to work)
  • Minimum 12GB memory allocated for Docker

Setup:

  • Step 1.
    make setup

  • Step 2.1.
    Fill in your Discord Bot Token in .env file

  • Step 2.2.

    • Add TALISMAN_ENABLED=False in the superset service as an extra environment variable in Superset's docker-compose.yml
    • Add the below networks block in Superset's docker-compose.yml
    networks:
        discord:
            name: discord_ai_bot_network
            external: true
    • Add the below for all services in Superset's docker-compose.yml
    networks:
      - discord
    • Comment out or remove the below in superset-tests-worker service in Superset's docker-compose.yml
    network_mode: host
  • Step 3.
    make kafka
    Note 1: This step will create a messages topic by default
    Note 2: Please make sure all containers are up and running before moving to the next step.

  • Step 4.
    make bot
    Note 1: This step will instantiate the bot and make the connection to kafka

  • Step 5.
    Install the Bot on your Discord Server and type some texts in the Discord channel for testing. Monitoring the Discord Bot log to see if there are any errors.

  • Step 7.
    make druid
    Note 1: kafka host: broker:29092
    Note 2: kafka topic: messages

  • Step 8.
    make superset
    Note 1: Druid connection URL: druid://<druid_router_ip>:8888/druid/v2/sql

VI. Development Tutorial:

TODO

VII. Learning Resources:

Discord:

Apache Kafka:

Apache Druid:

Apache Superset:

discord_ai_bot's People

Contributors

codyyu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.