Giter Site home page Giter Site logo

grabbot's Introduction

grabbot

This is a simple slackbot that creates an interface to run youtube-dl in Slack like it was a command line program. My co-workers don't have admin access to install and use youtube-dl on their computers, so I created this as a work-around.

To get this up-and-running you need to do the following things.

  1. Clone the repository to your local computer.
  2. Using the Heroku CLI tools, create a new app in the directory of the repository and note the url of where it's hosted.
  3. Use your Slack account to create a new outgoing webhook using the URL from before (adding "/request" to the end). The default trigger phrase is 'grabbot download' but you can set this to whatever you want.
  4. Also create a new bot user and note the API token for that user.
  5. Update line 12 of grabbot.py with the key from your new webhook.
  6. Update line 6 of utils.py with the bot user token.
  7. Commit those changes and push the resulting files to Heroku.
  8. Activate the redis-to-go add-on for the Heroku app you created.
  9. That's it more-or-less

Afterwards, anyone should be able to say grabbot download <url> in a public channel and the bot will download any URL supported by Youtube-DL and upload it to the Slack channel where the request was made.

Keep in mind that as youtube-dl is updated, so too will this bot need to be. If you're using Heroku like me, all that means is changing the version number in requirements.txt

Additionally, using a Heroku buildpack that supports for ffmpeg will make your life easier, but it is not required.

grabbot's People

Contributors

srol 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.