Git Product home page Git Product logo

aria2-telegram-bot's Introduction

aria2-telegram-bot

Description

This will be a Telegram bot who controls an aria2 daemon using diana. Using the bot one can add new downloads, start, stop, or remove them, check their status and manage downloads by sending commands to the bot. I created this bot to control my downloads on a Raspberry Pi from any where.

Run

To install and run the bot make sure Python, virtualenv and aria2 are installed and the git sub-module is initialized and updated. Create a Telegram bot (using @BotFather in Telegram). Put your bot’s token in the run.sh file and run it. This will create a virtual env, activate it and start the aria2, diana and the bot.

./run.sh

Usage

Commands starting with /diana are sent to aria2. You can send /diana help to see all available commands. Also see Diana docs for all available commands.

Details

This bot uses diana to interact with aria2. Diana will launch the aria2 daemon itself, so there is no need to start aria2 and configure it. Make sure the default port for aria2 RPC is open.

Systemd Service

If you want the bot to start on boot you use the service file. The service file is diana.service. Edit the file and correct the path accordingly and copy it to /etc/systemd/system. Enable the service by the command below.

systemctl enable diana.service

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.