Skip to content

James-Firth/Snakebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snakebot

A Slack bot that uploads webcam photos to imgur

Requirements

Program/Libraries

  • imgurpython - official imgur library
  • slackbot - community slackbot library
  • fswebcam - A small and simple webcam for *nix. Used in the take_photo script

API Keys

  • 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 and refresh_token in the config.ini file.

About

An Slack bot created to upload webcam pics to imgur.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published