Sign inSign up

nmur/reddit-video-rotation-bot

By nmur

•Updated over 5 years ago

Reddit video rotation bot.

Image
0

1.2K

nmur/reddit-video-rotation-bot repository overview

CircleCI Coverage Status Docker Pulls

⁠reddit-video-rotation-bot

A summonable Reddit bot that rotates videos.

⁠Usage

In a Reddit video post, create a reply with a user mention of the bot (currently /u/video-rotator⁠), followed by the requested rotation.

For example, to request a video to be rotated 90° clockwise:

/u/video-rotator cw

Other usage instructions, as well as a full list of rotational parameters can be found here⁠.

Currently, videos from NSFW posts are not supported, mostly because Gfycat does not allow NSFW content anymore.

⁠Running your own instance of the bot

  1. Create a Reddit account that the bot will use to respond to posts (or use your personal account).
  2. Navigate to your account's application preference page⁠ and create a new app.
  3. Create a refresh token⁠ for your account's app.
  4. Create a GfyCat account⁠ and register it for GfyCat API access⁠.
  5. Open dockervars.list and fill in the missing fields with the values obtained in the previous steps.
  6. Finally, run the latest Docker image (or build and run your own, instructions below):
    docker run --env-file ./dockervars.list nmur/reddit-video-rotation-bot
    

More detailed instructions are available here⁠.

⁠Building

  1. Download, install, and run Docker⁠.
  2. Clone the repo:
    git clone https://github.com/nmur/reddit-video-rotation-bot.git
    
  3. Build the Docker image:
    docker build -t reddit-video-rotation-bot .
    

⁠Unit tests

Unit tests are run during the Docker build process. You can alternatively run and debug the entire suite using a test runner such as the one provided by Visual Studio 2019.

Tag summary

Content type

Image

Digest

Size

77.2 MB

Last updated

over 5 years ago

docker pull nmur/reddit-video-rotation-bot