A Slack bot that uploads webcam photos to imgur
- imgurpython - official imgur library
- slackbot - community slackbot library
- fswebcam - A small and simple webcam for *nix. Used in the
take_photo
script
- Slack Bot API Token
- Imgur API Keys
- Register your application here (when logged in).
- I used "OAuth 2 authorization without a callback URL"
- Now that you ahvea client ID and Client secret you will need to modify this url: https://api.imgur.com/oauth2/authorize?client_id=YOUR_CLIENT_ID&response_type=token&state=woo_bot_works
- Replace
YOUR_CLIENT_ID
with your new Client ID - Visit the new link
- Copy the URL after the redirect
It should look something like
https://imgur.com/?state=woo_bot_works#access_token=XXX&expires_in=2419200&token_type=bearer&refresh_token=YYY&account_username=JamesFirth&account_id=0000
- Use the
access_token
andrefresh_token
in the config.ini file.