Sign inSign up

yamitzky/slack-url-resolver

By yamitzky

Updated about 8 years ago

Slack URL resolver bot

Image
0

10K+

yamitzky/slack-url-resolver repository overview

URL Resolver Slack bot

This Slack bot checks messages containing URLs, and then it crawls, resolves, and posts.

The main purpose of the bot is for websites in private networks, because Slack's official URL crawling system does not support private urls.

https://gyazo.com/13be246ddbfd93930c68040ac0e43a18

Setup

Set environment variables. You can enable/disable resolvers by setting RESOLVERS, so some env vars are optional. For env vars setup, direnv is useful.

export RESOLVERS=resolvers.twitter,resolvers.qiita,resolvers.gitlab
export SLACK_BOT_TOKEN=
export TWITTER_CONSUMER_KEY=
export TWITTER_CONSUMER_SECRET=
export GITLAB_TOKEN=
export GITLAB_DOMAIN=
export QIITA_TOKEN=
export QIITA_DOMAIN=

Resolvers are imported dynamically, so you can add your own resolvers.

After setting up environment variables, you can run by python main.py or docker-compose up

Tag summary

Content type

Image

Digest

Size

31.1 MB

Last updated

about 8 years ago

docker pull yamitzky/slack-url-resolver