A bot for Slack written in Go (golang) that politely reports when a link has been used before in the channel.
-
Build the code with
go build -
Start the bot with
./slack-oldboton an internet-accessible server. (Check the output of./slack-oldbot -hfor configuration options) -
Configure an Outgoing Webhook in your Slack and point it to the place where your bot is running. For example:
http://example.com:8000/ -
The bot will listen to incoming requests, extract urls, add them to the list, and if they've been used before, it will respond in the channel.
- Export your team's data from https://my.slack.com/services/export, and use that to seed the bot. See the
-importDirand-importChanoptions. - Keep your bot scoped to one channel.