Giter Club home page Giter Club logo

help-wanted-bot's People

Contributors

djm158 avatar spottedmahn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

help-wanted-bot's Issues

Add caching

We should cache either the search results or the last tweet made so we do not send the same exact tweet twice in a row (#1)

Add list of issue's labels to tweet

It may be helpful to include a list of the issue's labels to the tweet -- for example, as a newer programmer, it may be nice to see good-first-issue or documentation to help find things to work on.

In the context of Ln 52 of index.js, const buildStatus = async (issue) => {, It looks like a request to issue.labels_url returns the following as the body (I've generalized some fields with <>):

[
  {
    "id": <id>,
    "node_id": "<node_id>",
    "url": "https://api.github.com/repos/<owner-name>/<repo-name>/labels/<label-name>",
    "name": "<LABEL-NAME>",
    "color": "DB9D72",
    "default": false,
    "description": ""
  },
... {<further labels>} ...
]

Reference

This of course would bloat the character count of the tweets, however it looks like most of the tweets being sent currently have plenty of wiggle-room to include labels. (Though I also see a // TODO: check character count that may address this case in the future).

Twitter thinks this bot is shady

Twitter flagged us the other day. Need to do more research but it is possibly occurring because we are trying to spam the same tweet when the search results do not change in a ten minute window.

Make serverless

Heroku provides 550 free dyno hours per month, which prevents running the bot continuously. Easiest solution is probably to run it on serverless infrastructure (AWS Lambda has a generous free tier that will likely suit the needs of this app).

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.