Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use reactions to weight props #5

Open
lorey opened this issue Nov 3, 2016 · 1 comment
Open

Use reactions to weight props #5

lorey opened this issue Nov 3, 2016 · 1 comment

Comments

@lorey
Copy link
Member

lorey commented Nov 3, 2016

Props with more reactions should count more than props with few reactions.

Endpoint:

https://slack.com/api/reactions.get?token=[TOKEN]&channel=[CHANNEL]&timestamp=1478087331.000002&pretty=1

yields:

{
    "ok": true,
    "type": "message",
    "channel": "[...]",
    "message": {
        "type": "message",
        "user": "[...]",
        "text": "wahlloser text nach dem ich suchen kann: blabla",
        "ts": "1478087331.000002",
        "permalink": "https:\/\/[...]",
        "reactions": [
            {
                "name": "eyes",
                "users": [
                    "U27LVTNM8"
                ],
                "count": 1
            },
            {
                "name": "+1",
                "users": [
                    "U27LVTNM8"
                ],
                "count": 1
            }
        ]
    }
}

read more here: https://api.slack.com/methods/reactions.get

@lorey
Copy link
Member Author

lorey commented Nov 13, 2016

Frederic had the great idea to use this for weighting: https://github.com/wooorm/emoji-emotion/blob/master/index.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant