A simple Slack bot that uploads files to a Slack channel using the Slack API. The bot uses an OAuth token and file paths to upload files to specified channels in Slack.
- Uploads files to Slack channels.
- Supports multiple channels for file upload.
- Configurable bot token and channels via
.env
file.
Before running the bot, make sure you have the following:
- A Slack workspace where you have permission to install Slack apps.
- A Slack bot created through the Slack API with the appropriate permissions.
files:write
: To upload files.channels:read
: To read public channels.groups:read
: To read private groups (if applicable).
- Go installed on your machine (version 1.18 or higher).