Coder Social home page Coder Social logo

rtvidfeed's Introduction

#rtVidFeed Rooster Teeth videos to Discord Webhooks via python

Made for the Rooster Teeth/Let's Play family of Discord Servers, but feel free to use and modify it for anything.
I barely know python, so this is probably hacked together just barely enough to function...

Come join us on Discord:
Rooster Teeth Community
FunHaus Community
Achievement Hunter Community
Cow Chop Community
Kinda Funny
The Creatures Community
Game Attack/ScrewAttack G1
RTX 2017
Community Bite
/r/RWBY
Red vs. Blue

Huge shoutout to Nick Molloy for making the API interface. It's hard to believe that a company as large as Rooster Teeth doesn't have a documented API or public feeds available for their content, and his python script does the job perfectly.


####Setup:

  • First you'll need to make sure you have rt_api by Nick Molloy installed. In Terminal run:
    pip install rt_api
  • Next, open up vidfeed.settings
    • Replace <Website> on line 2 with the name of the site you want to pull videos from. Available options:
      • RoosterTeeth
      • AchievementHunter
      • FunHaus
      • ScrewAttack
      • GameAttack
      • TheKnow
      • CowChop
      • Blank - This will feed you videos from ALL the above sites
    • Replace <Username> and <Password> on lines 4 and 6 with the username/password of an account on RoosterTeeth.com that has a FIRST Subscription (This is necessary to retrieve links to FIRST-exclusive content. If you filter out FIRST content, you don't need to provide these.)
    • Replace <Main Feed Channel Webhook URL> on line 8 with the Webhook URL that Discord gives you in the channel you want all non-FIRST videos to be linked in
    • Replace <FIRST Feed Channel Webhook URL> on line 10 with the Webhook URL that Discord gives you in the channel you want all FIRST-exclusive videos to be linked in
    • Replace <Webhook Avatar URL> on line 12 with the URL of the image you want to be the avatar of the bot when it posts in your Discord channels
    • If you want to filter out non-FIRST content, change line 15 to be aI00
    • If you want to filter out FIRST Exclusive content, change line 16 to be aI00
    • After all this, your vidfeed.settings should look something like this:
      S'RoosterTeeth'
      p1
      aS'firstSubscriber'
      p2
      aS'ispasswordastrongpassword'
      p3
      aS'https://discordapp.com/api/webhooks/lots of random numbers and letters'
      p4
      aS'https://discordapp.com/api/webhooks/lots of random numbers and letters'
      p5
      aS'http://placekitten.com.s3.amazonaws.com/homepage-samples/200/286.jpg'
      p6
      aI0
      aI01
      aI01
      a.```
      
      
  • After that, you just have to set up a cron job (or other persistent timer) to keep running the script

rtvidfeed's People

Contributors

mcumbers avatar

Stargazers

 avatar

Watchers

 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.