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.
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
Content type
Image
Digest
Size
31.1 MB
Last updated
about 8 years ago
docker pull yamitzky/slack-url-resolver