akkupy / movie_bot

A Telegram Bot for Searching movies and tvseries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SARA-BOT

A Powerful, Smart And Simple Telegram Bot By Akku

Warning
It Just Forwards the Movie or the file that is saved via /save command.Use it at your own risk .I'm not responsible for sharing copyrighted content with this program.

KeyFeatures

  • Movie Information Searching.
  • Trailer Support.
  • IMDB Links.
  • Information On TV Series.

Prerequisite

Self-hosting (For Devs)

Simply clone the repository and run the main file:

# Install Git First // (Else You Can Download And Upload to Your Local Server)
$ git clone https://github.com/akkupy/movie_bot
# Open Git Cloned File
$ cd movie_bot
# Config Virtual Env (Skip is already Done.)
$ virtualenv -p /usr/bin/python3 venv
$ . ./venv/bin/activate
# Install All Requirements.
$ pip(3) install -r requirements.txt
# Configure the .env file.
# Start Bot 
$ python(3) main.py

Environment Variables

[+] If You Running Sara On A Deploy Services With Config Env Support Like Heroku, Zeet.co, Please Set "ENV" To True , Else For Self Host Services Like Digital Ocean Just Make A Credentials File And Put Vars Given Below.
    [-] BOT_API:   Telegram Bot Token 
    [-] OMDB_API :   OMDB Api Token
    [-] BOT_USERNAME : Telegram Bot Username
    [-] TMDB_API : TMDB Api Token
    [-] MYSQL_HOST = MySQL Server Host
    [-] MYSQL_USER = MySQL User
    [-] MYSQL_PASSWORD = MySQL Password
    [-] MYSQL_DATABASE = MySQL Database Name
    [-] CREATE_TABLE = True/False (Set to True if tables doesn't exist.)
 
[+] The Sara will not work without setting the environment variables.

An Example Of ".env" File


BOT_API = "sd78g6add897s8d7f875adad768d"
BOT_USERNAME = "akkubot"
OMDB_API = "d3w35frsd34scv"
TMDB_API = "dwa3r43rfsd344r4"
MYSQL_HOST = '10.1.1.50'
MYSQL_USER = 'root'
MYSQL_PASSWORD = 'root'
MYSQL_DATABASE = 'telegram'
CREATE_TABLE = False

Contact Me

telegram

License

GNU GPLv3 Image

SaraBot is Free Software: You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

About

A Telegram Bot for Searching movies and tvseries

License:GNU General Public License v3.0


Languages

Language:Python 97.1%Language:Dockerfile 2.9%