Giter Club home page Giter Club logo

gptsurveysummarizer's Introduction

gptSurveySummarizer

A discord bot for natural language surveys, inspired by and in the style of talk to the city.

Join the discord server for discussing and developing this tool here.

Usage

  1. Create a .env file with the following variables:

    DISCORD_TOKEN=
    OPENAI_API_KEY=
    REDIS_URL=
    CLIENT_ID=
    GUILD_ID=
    SUMMARIZE_FREQUENCY_SECONDS=3600
  2. Run npm install

  3. Start redis with redis-server

  4. Start the main bot script with npm run bot

  5. Start the gpt summarization script with npm run summarizer

Docker image

Build it

docker build -t <your-image-name>:<your-image-tag> .

Run it

The image has two operational modes: bot by default and summarizer

To run the bot use the bot argument and to run the summarizer use summarizer.

docker run -it -d --env-file ./.env <your-image-name>:<your-image-tag> bot

The --env-file flag takes a filename as an argument and expects each line to be in the VAR=VAL format, mimicking the argument passed to --env. Comment lines need only be prefixed with #

Test it

docker-compose up --build

Example Survey

TODO

Contributions

To make a contribution do the following steps:

  1. Make an issue that includes a user story for what the user should be able to do (eg user should be able to view the survey summary in their local language).
  2. Get that issue approved by the product owners (for now just me / Evan / es92).
  3. Write a PR and get that approved by the code owners (for now also just me / Evan / es92). Each PR must correspond to an approved issue. By default PRs should be merged by the PR submitter, though in some cases if changes are needed they can be merged by code owners.

gptsurveysummarizer's People

Contributors

es92 avatar smorci avatar miors avatar remigiusz-antczak avatar johnmarcou avatar berkingurcan 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.