Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.13 KB

readme.md

File metadata and controls

35 lines (28 loc) · 1.13 KB

Another Room Bot

Setup

Another room bot is built for Python 3.7 and uses pipenv to manage python dependencies. To install these dependencies, run pipenv install. In addition to the python dependencies, there are a few os-level dependencies:

  • sox – Audio processing utility
    • Mac: brew install sox --with-lame
    • Ubuntu: sudo apt-get install sox libsox-fmt-all
  • ffmpeg – Video utility
    • Mac: brew install ffmpeg
    • Ubuntu: sudo apt-get install ffmpeg
  • jq - Command line JSON processor
    • Mac: brew install jq

The bot requires twitter credentials and a youtube api key. It expects them to be available via the following environment variables:

TWITTER_CONSUMER_KEY=
TWITTER_CONSUMER_SECRET=
TWITTER_ACCESS_TOKEN=
TWITTER_ACCESS_TOKEN_SECRET=
YOUTUBE_API_KEY=

Usage

To post a tweet, run python3 bot.py.

Song Corpus