Git Product home page Git Product logo

streamablebot's Introduction

GifvBot

GifvBot is a Reddit bot that automatically posts the .gifv link in response to submissions containing a link to animated images/videos on imgur. It is currently active and running under the username u/gifv-bot.

For general information not related to the code see the FAQ.

How to run

Since this is a C# console application, you'll need a current version of Visual Studio.

  1. Create a Reddit account.
  2. Authorize the account so it can access the Reddit OAuth API. You'll need to create a Reddit application and then perform the authorization flow manually. Make sure to use duration=permanent so you can get a refresh token. See Reddit's documentation for detailed instructions.
  3. Set up environment variables.
    • GIFVBOT_REDDIT_USERNAME: the username of the Reddit account
    • GIFVBOT_REDDIT_CLIENT_ID: the ID of the Reddit application
    • GIFVBOT_REDDIT_SECRET: the secret of the Reddit application
    • GIFVBOT_REDDIT_REFRESH_TOKEN: the refresh token you acquired after performing the authorization flow with duration=permanent
  4. Start the application. It will keep running on its own.

Note: By default, comment posting is disabled to prevent duplicate comments since there is already an instance of this bot running. To enable comment posting regardless, set the GIFVBOT_IS_COMMENTING_ENABLED environment variable to true (you probably shouldn't do this!).

streamablebot's People

Contributors

livven avatar

Watchers

Forrest Goyer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.