Code Monkey home page Code Monkey logo

delsolbot's Introduction

DELSOLBOT

imagen version node imagen version npm GitHub

[ES] Cómo no perderse de la radio usando el reproductor de medios integrado en Telegram.

[EN] How not to miss your radio shows using Telegram's integrated media player.

Que es esto? / What is this?

[ES] Este script corre un cron job, que en cada ejecución, busca en las fuentes RSS detalladas en la base de datos, busca episodios nuevos y los publica en un canal de Telegram por cada fuente RSS, luego de agregar la metadata correspondiente a cada episodio. Una vez terminado, publica un Tweet con los detalles de lo publicado y un link al audio en Telegram.

[EN] This script runs a cronjob that looks for new episodes in the RSS sources detailed in a database, and then publishes them in a Telegram Channel per RSS source, but only after it edits each audio file's metadata. After it's done, publishes a Tweet with details of the episode and a link to the audio in Telegram.

Disclaimer

Todo el code is en espanglish. Es costumbre. Prometo cambiarlo.

All the code is in a spanish/english mix. Sorry about that.

Getting started

[ES] Instrucciones para clonar y ejecutar este proyecto en tu equipo local. [EN] Instructions to clone and run this project in a local environment.

Requisitos / Requirements

  • Node 10+
  • Npm 6.4+
  • MySql

Instalar / Installing

[ES]

  • Clona este repositorio $ git clone https://github.com/MMachado-uy/delsolbot.git
  • Dentro de la carpeta del proyecto ejecuta $ npm install
  • Ejecutar los scripts contenidos en ./database/
  • Crear un archivo .env con los siguientes parametros:
    • DB
    • DB_USER
    • DB_PASS
    • DB_PORT
    • DB_HOST
    • TWITTER_CONSUMER_KEY
    • TWITTER_CONSUMER_SECRET
    • TWITTER_ACCESS_TOKEN_KEY
    • TWITTER_ACCESS_TOKEN_SECRET
    • BOT_TOKEN
    • TEST_CHANNEL
    • ENV
    • CRON
  • En la raíz del proyecto ejecutar $ node app.js

[EN]

  • Clone this repo $ git clone https://github.com/MMachado-uy/delsolbot.git
  • In the project's folder, run $ npm install
  • Run the sql scripts in ./database/
  • Create a .env file with the following entries:
    • DB
    • DB_USER
    • DB_PASS
    • DB_PORT
    • DB_HOST
    • TWITTER_CONSUMER_KEY
    • TWITTER_CONSUMER_SECRET
    • TWITTER_ACCESS_TOKEN_KEY
    • TWITTER_ACCESS_TOKEN_SECRET
    • BOT_TOKEN
    • TEST_CHANNEL
    • ENV
    • CRON
  • To run the script itself, run $ node app.js

Importante: para ejecuciones en ambiente local, redirigir los posteos a un canal de Testing

Important: For local runs, always try to hardcode the target channel to a Testing one

Contribuciones / Contributions

[ES] Pull Requests son bienvenidos. Refactors, bugfixes, todo suma. Pero veámoslo en un Issue primero :)

[EN] Pull Requests are welcome. Refactors and bugfixes only help us. But let's discuss them in an open Issue first :)

Autores / Authors

[ES] Va tambien la lista de colaboradores que participaron en el proyecto.

[EN] You can find all the collaborators here.

Licencia / License

[ES] Este proyecto está bajo la licencia de código abierto del MIT, ve a LICENSE.md por más detalles (en inglés).

[EN] This project is under the Open Source MIT License, take a look at LICENSE.md for more details.

delsolbot's People

Contributors

mmachado-uy avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar German Fleitas avatar

Forkers

morkx

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.