Coder Social home page Coder Social logo

dyaskur / google-chat-shuffler Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 957 KB

RandomBot - shuffle the member of google chat space and also anything

Home Page: https://randombot.yaskur.com/

License: MIT License

JavaScript 100.00%
google-chat google-cloud-functions shuffle cloud-tasks google-chat-bot google-cloud-tasks google-tasks

google-chat-shuffler's Introduction

Google Chat RandomBot

Chat app that can be used to random google chat space member or anything else

StyleCI Github Action Scrutinizer Quality Score Coverage Status Quality Gate Status Reliability Rating Maintainability Rating Security Rating Duplicated Lines (%) Vulnerabilities Technical Debt Lines of Code

Features:

  • Quick shuffle the chat space members
  • Unit Test (ready to TDD)
  • No database needed
  • Using google cloud task (AWS SQS equivalent)
  • Shuffle from input
  • Choose how many item will be showed (winner count)
  • Random GPT, random anything using GPT prompt (e.g random number, quotes, places etc)

Roadmap:

  • Make the app configurable (need a DB)
  • Scheduler (example use case: send daily quote or motivation to google chat space)

Screenshot:

  • Random based on input in mentioned message:
    • screenshot.gif
  • Random member of current google chat space
    • screenshot2.png
  • You can also get random quotes, motivation, number, places or anything else using this app
    • screenshot1.png

Prerequisites:

  • Minimum NodeJS 16
  • yarn (optional)
  • Google Cloud project that enabled Cloud Function, Cloud Task, Google Chat API, etc or click here
  • Google Workspace account
  • Google Cloud CLI (how to install)

How to install/deploy:

  • run yarn install to install dependencies
  • run yarn test to make sure no failing of functionality
  • run cp .env.yaml.examle .env.yaml to copy .env.yaml.example to .env.yaml
  • fill the value on .env.yaml file to correct config/environment
  • run gcloud config set functions/region <your-region> with the same region in .env.yaml
  • run yarn deploy to deploy

How to setup google chat app:

  • In Google Cloud Console, search for "Google Chat API" and click Google Chat API.
  • Click Manage button.
  • Click Configuration and set up the Google Chat app:
    • In App name, enter the app name (e.g RandomBot Custom).
    • In Avatar URL, enter the logo(e.g https://developers.google.com/chat/images/quickstart-app-avatar.png) .
    • In Description, enter the app description.
    • Under Functionality, select Receive 1:1 messages, Join spaces and group conversations, and Log errors to Cloud Logging.
    • Under Connection settings, select App URL and paste the URL for the Cloud Function trigger into the box.
    • Under Permissions, select Specific people and groups in your domain and enter your email address.
  • Click Save button. And done. You can use your app in google chat. Just search your app in "Find apps" menu

google-chat-shuffler's People

Contributors

dyaskur avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dr94406

google-chat-shuffler's Issues

Shuffle from input

At the moment, the app is limited to the command ID 2 (/shuffle_members). However, we have plans to expand its functionality to support the following features:

Mention Support: Users can mention and create shuffle based on the chat message. e.g @appName "Option 1" "Option 2" "Option 3"

App Dialog Form: When users use the command ID 1, a dialog form will appear, allowing them to input options. By default, the input field will be pre-filled with the names of all members in the chat space."

We are actively working on implementing these features to enhance the app's capabilities. Stay tuned for updates!

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.