- This script uploads jpg or png to Slack: Recursively from the current directory.
- Script is delete messages after upload.
- And echo Permalinks.
If you want to create a Slackbot that displays images randomly: Try this script.
curl -XPOST "https://slack.com/api/auth.test?token=<TOKEN>&pretty=1"
go run main.go -UserID=<Slack UserID> -ChannelID=<Upload target ChannelID> -token=<Bot User OAuth Token>