Coder Social home page Coder Social logo

vikas-843 / jonasdarkbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sajalkmr/jonasdarkbot

0.0 0.0 0.0 1.77 MB

Jonas Bot; Provides Movies, Shows & Anime in your Telegram Group. Hosted on Heroku (That's why dead for now)

Home Page: https://t.me/JonasDarkRobot

License: GNU General Public License v2.0

Shell 0.28% Python 99.53% Dockerfile 0.19%

jonasdarkbot's Introduction

Jonas Kahnwald

Jonas

Open Source Love svg2

Features

  • Auto Filter
  • Manual Filter
  • IMDB
  • Admin Commands
  • Broadcast
  • Index
  • IMDB search
  • Inline Search
  • Random pics
  • ids and User info
  • Stats, Users, Chats, Ban, Unban, Leave, Disable, Channel
  • Spelling Check Feature
  • File Store
  • Delete channel to delete files from database in bulk.

Variables

Read this before you start messing up with your edits:

Many Of You May Not Be Knowing That You Can Customize Your Bot A Lot.

The following config vars can be used to do so.

  1. IMDB_TEMPLATE - To Customize (https://t.me/TeamEvamaria/9) imdb data.

  2. SUPPORT_CHAT - Add your own chat as a support chat instead of @EvamariaSupport.

3 . P_TTI_SHOW_OFF - (Use True or False) - Users will be redirected to send /start to Bot PM if set to True else files will be sent directly to users PM.

  1. IMDB - (Use True or False) - To disable or enable imdb data.

5 . SINGLE_BUTTON - (Use True or False) - If set True, file name and files size will be shown in a single button instead of two separate button.

  1. CUSTOM_FILE_CAPTION - Same as IMDB template , you can customize the caption for files (available keys , file_name, file_size, file_caption ) Example: Join Here

FILE : {file_name} Size : {file_size} CAPTION: {file_caption}

  1. LONG_IMDB_DESCRIPTION - (Use True or False) Long IMDB story line will be used if enabled.

  2. SPELL_CHECK_REPLY - (Use True or False) - if enabled, bot will be suggesting related movies if keyword not found in database.

  3. MAX_LIST_ELM - long lists like long casts list can be shortened using this value. list will be shortened to first n elements where n is the value for this config var. For example if 4 is used list will be shortened to foist 4 elements.

  4. AUTH_CHANNEL - To enable force subscribe. Delete this var if you do not need fsub.

  5. AUTH_USERS - To restrict the use of inline queries to specified users.

  6. UPSTREAM_REPO - If you want to use a customized fork of Evamaria (https://github.com/EvamariaTG/EvaMaria), You can fill this config with github url of your fork.

  7. BATCH_FILE_CAPTION - Same as CUSTOM_FILE_CAPTION , use in case you want separate captions for batch files.

  8. MELCOW_NEW_USERS - Use False if you want the bot to not to welcome new users in groups.

  9. PROTECT_CONTENT = Use True / False . If set to true files from bot cannot be forwarded to any chat.

  10. PUBLIC_FILE_STORE = Use False if you don't want your bot to be used as a filestore bot by others.

Required Variables

  • BOT_TOKEN: Create a bot using @BotFather, and get the Telegram API token.
  • API_ID: Get this value from telegram.org
  • API_HASH: Get this value from telegram.org
  • CHANNELS: Username or ID of channel or group. Separate multiple IDs by space
  • ADMINS: Username or ID of Admin. Separate multiple Admins by space
  • DATABASE_URI: mongoDB URI. Get this value from mongoDB. For more help watch this video
  • DATABASE_NAME: Name of the database in mongoDB. For more help watch this video
  • LOG_CHANNEL : A channel to log the activities of bot. Make sure bot is an admin in the channel.

Optional Variables

  • PICS: Telegraph links of images to show in start message.( Multiple images can be used separated by space )
  • FILE_STORE_CHANNEL: Channel from were file store links of posts should be made.Separate multiple IDs by space
  • Check info.py for more

Deploy

You can deploy this bot anywhere.

Deploy To VPS

git clone https://github.com/sajalkmr/JonasDarkBot
# Install Packages
pip3 install -U -r requirements.txt
Edit info.py with variables as given below then run bot
python3 bot.py

Commands

• /logs - to get the rescent errors
• /stats - to get status of files in db.
* /filter - add manual filters
* /filters - view filters
* /connect - connect to PM.
* /disconnect - disconnect from PM
* /del - delete a filter
* /delall - delete all filters
* /deleteall - delete all index(autofilter)
* /delete - delete a specific file from index.
* /info - get user info
* /id - get tg ids.
* /imdb - fetch info from imdb.
• /users - to get list of my users and ids.
• /chats - to get list of the my chats and ids 
• /index  - to add files from a channel
• /leave  - to leave from a chat.
• /disable  -  do disable a chat.
* /enable - re-enable chat.
• /ban  - to ban a user.
• /unban  - to unban a user.
• /channel - to get list of total connected channels
• /broadcast - to broadcast a message to all Eva Maria users
• /batch - to create link for multiple posts
• /link - to create link for one post

Credits

  • EvaMaria-Devs

Thanks to

Disclaimer

GNU Affero General Public License 2.0
Licensed under GNU AGPL 2.0. Selling The Codes To Other People For Money Is Strictly Prohibited.

Inspiration

This is an attempt to create a clone of a BOAT made out of banana trees 🌳

jonasdarkbot's People

Contributors

subinps avatar mahesh0253 avatar sajalkmr avatar spechide avatar physichybridtg avatar jack-of-tg avatar adi-code22 avatar thehellruler avatar kalanakt avatar greatbotmaker avatar shamilhabeebnelli avatar mufaz-tg avatar athul1706 avatar jinspalakkattu avatar rinrinx avatar alberteinsteintg avatar cclauss avatar thehimanshurastogi avatar stillalivetg avatar sahadz avatar shahsad-kp avatar jonatan1609 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.