vensder / slack-bot

Python Slack Bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Slack Bot

This Slack bot has two plugins. One of them helps to check the SSL certificate expiring for any accessible domain. Just send the message in the channel where the bot is invited like that:

@botname !ssl date google.com

Another plugin helps you to use IP calculator to check the IP addresses range, and so on. Just send the message to the bot like this:

@botname !ipcalc 10.0.0.0/24

Build image locally

docker build -t slackbot .

Pass slack token via Environment varialbe, using env file for docker container:

cat env.list
SLACK_TOKEN=xoxb-100000000001-1111111111111-INSERTTOKENHERE

docker run -d --env-file ./env.list slackbot

Use prebuilt docker hub image

docker run -d --env-file ./env.list --add-host example.com:10.0.0.1 vensder/slack-bot 

About

Python Slack Bot


Languages

Language:Python 98.0%Language:Dockerfile 2.0%