Giter VIP home page Giter VIP logo

vtube_meta_bot's Introduction

RClone Mirror Manager

Libdrive Manager Bot

Deploy on Heroku

Use The Deploy to Heroku Button given at the TOP !!

Enter the Relevant Configurations and Deploy !!

Run Locally

Installing Requirements..

pip install -r requirements.txt

Then Edit config.py with variables listed below !

And then run the bot by

python3 bot.py

Deploy with Docker

Two Methods

Method 1

Edit config.py with variables listed below !

Build Docker Image..

docker build . -t libdrivebot

Run Docker Container..

docker run --name libdrivebot libdrivebot

Method 2

Build Docker Image ..

docker build . -t libdrivebot

Run The Docker Container and Define the Variables in One Command

docker run --name libdrivebot -e BOT_TOKEN="<your_bot_token>" -e LD_DOMAIN="<your_libdrive_domain>" -e SECRET="<your_libdrive_secret>" -e ADMIN_IDS="<chat_ids>" -e PIC="<picture_url>" -d libdrivebot

Variables

  • BOT_TOKEN

    • Values :- Valid BOT TOKEN Obtained from Botfather.
    • Default Value :- "XXXXXXXXX:ABCDEFGHIJKLMNOPQRST"
    • Use :- To connect to Telegram as BOT.
  • LD_DOMAIN

    • Values :- Domain of LibDrive Server.
    • Default Value :- <appname>.herokuapp.com
      • Enter The Domain without the Protocols https:// or http://
      • Don't enter a / in the end of The Domain.
    • Use :- To connect to Libdrive.
  • SECRET

    • Values :- Secret of LibDrive Server Settings - The Secret Key set in LibDrive Config.
    • Default Value :- ""
    • Use :- To connect to Libdrive.
  • PIC

    • Values :- The Picture You want to appear when start command is used.
    • Default Value :- ""
    • Use :- Send Photo with /start command.
  • ADMIN_IDS

    • Values :- It is a list of IDs of all the allowed groups and useres who can use this bot in private.
      • To supply multiple IDs in config.py seperate by comma ','.
      • To supply multiple IDs from Environemnt variable (Heroku & Docker) seperate by spaces.
    • Default Value :- []
    • Use :- Users and groups with ids here can use the bot.
  • HEROKU_APP_NAME

    • Values :- The Name of Your Heroku App.
    • Default Value :- ""
    • Use :- To Use /hrestart and /hdyno command.
  • HEROKU_API_KEY

    • Values :- The API KEY of Your Heroku Account.
    • Default Value :- ""
    • Use :- To Use /hrestart and /hdyno command.
  • HEROKU_EMAIL

    • Values :- The Email ID of Your Heroku Account.
    • Default Value :- ""
    • Use :- To Use /hrestart and /hdyno command.

Bot Commands

/start - Welcome Message !!

/help - Get Instructions on How to Use to bot !!

BotFather SetCommands

start - To Start The Bot.
help - To Get Help about Using the Bot.
rebuild - To Rebuild the Metadata of your Libdrive.
fixconfig - To Fix LibDrive Config.
assignid - To assign bot_id.
unassignid - To remove bot_id.
accounts - To View Registered Accounts of your Libdrive.
addaccount - To Add an Account to Libdrive.
rmaccount - To Remove an Account from Libdrive.
rmaccid - To Remove an Account using bot_id
categories - To View the Categories of your Libdrive.
addcategory - To Add a Category to Libdrive.
rmcategory - To Remove a Category from Libdrive.
setanilist - To Set/Change Anilist of Category.
config - To View The Configs of your Libdrive.
settings - To View the Settings of your Libdrive.
set - To change The Settings of your Libdrive.
ui - To View the UI Configuration of your Libdrive.
setui - To change The UI Settings of your Libdrive.
hrestart - Restart Heroku Dynos.(Heroku Only)
hdyno - Get Heroku Dyno Stats.(Heroku Only)
speedtest - To Perform a Speedtest on the Server. (Completely Irrelevant ๐Ÿ˜‚)

Credits

vtube_meta_bot's People

Contributors

shrey2199 avatar bt-villain 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.