Giter Site home page Giter Site logo

altruist's People

Contributors

4quet avatar dduvacher avatar gabrielstuff avatar hugohil avatar mina-from-the-jungle avatar philippschwemberger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

altruist's Issues

update Installation instructions

the instructions of #profit have to be updated, as -- -settings is not needed.
The second parameter is already the path to the settings.json file $ altruist path/to/settings/settings.json

Altruist crashes when it should catch an error and continue running

OS: Ubuntu 16.04 LTS

The error is caused by a failed mkdir

Error: EACCES: permission denied, mkdir '/storage'
    at Error (native)
    at Object.fs.mkdirSync (fs.js:922:18)
    at LocalStorage._init (/opt/player/sources/altruist/node_modules/node-localstorage/LocalStorage.js:151:12)
    at new LocalStorage (/opt/player/sources/altruist/node_modules/node-localstorage/LocalStorage.js:121:12)
    at Object.<anonymous> (/opt/player/sources/altruist/src/lib/localstorage.js:3:22)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/opt/player/sources/altruist/actions/facebook.js:7:22)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)

Error when logging in fb via http://localhost:6060/login/facebook

Error at Strategy.parseErrorResponse (/usr/local/share/.config/yarn/global/node_modules/passport-facebook/lib/strategy.js:196:12) at Strategy.OAuth2Strategy._createOAuthError (/usr/local/share/.config/yarn/global/node_modules/passport-oauth2/lib/strategy.js:376:16) at /usr/local/share/.config/yarn/global/node_modules/passport-oauth2/lib/strategy.js:166:45 at /usr/local/share/.config/yarn/global/node_modules/oauth/lib/oauth2.js:191:18 at passBackControl (/usr/local/share/.config/yarn/global/node_modules/oauth/lib/oauth2.js:132:9) at IncomingMessage.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/oauth/lib/oauth2.js:157:7) at emitNone (events.js:110:20) at IncomingMessage.emit (events.js:207:7) at endReadableNT (_stream_readable.js:1047:12) at _combinedTickCallback (internal/process/next_tick.js:102:11) at process._tickCallback (internal/process/next_tick.js:161:9)

Video upload on facebook action doesn't work

When I send a video stored on my computer to the facebook action

curl -X POST -H "Content-Type: multipart/form-data" -F "message=test" -F "[email protected]" "http://localhost:6060/api/v1/actions/facebook"

The video seems to upload to facebook, but when I check on my wall, only the message is displayed.

Error when starting altruist in youtube.js

altruist/actions/youtube.js:70
  app.get(profileURL, (req, res) => {
          ^

ReferenceError: profileURL is not defined
    at Object.addRoutes (/Users/mina/sources/altruist/actions/youtube.js:70:11)
    at fs.access (/Users/mina/sources/altruist/src/index.js:59:58)
    at FSReqWrap.oncomplete (fs.js:114:15)
error Command failed with exit code 1.

There is only one reference to profileURL variable in youtube.js, it is never declared.

correct facebook docs

Posting a message:

curl -X POST -H "Content-Type: application/json" -d '{
  "message": "Hello Facebook again!"
}' "http://localhost:7070/api/v1/actions/facebook"

port 7070 doesn't work for me. I have to change it to 6060

PS:
in USAGE
Before being able to post, you will need to log in facebook by going to the url matching loginURL

it would be nice to know that i have to specify the prefix: prefix of localhost:6060/ before the matching loginURL, in htis case: login/facebook

make the docs foolproof

Things that would be great to know in the docs:

  • more explanation on how it works: You have to launch altruist (like spacebro)
  • what is meant with #profit. It would be good to know that that is the command to launch altruist and the post or any other action has to be in another terminal or other program
  • the hint at the end of Actions was not clear to me. what url ?, do i have to change smthg in the settings.json file ?

Create a config loader function which allow for overriding settings

Support multiple template for one action

Let says you want to use an action with different template :

  • template A
  • template B
    ...
  • template C

currently you can only start altruist with a pre-defined template. You won't be able to change it on the fly. This could be awesome !

Dead link in README.md

"This git branching model" links to a 404 page.

This issue is currently present both in the master and the development branch.

Support multipart/form-data form FILE for action

Currently the action mandrill only support same machine file sharing or URL.

This means that you either:

  • share the same folder + authorization
  • create a static server to share the file you want to share

What would be is, is to be able to :

  • push binary content directly
  • send FILE in the POST

thanks !

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.