Code Monkey home page Code Monkey logo

movie_telegram_bot's Introduction

Telegram Movie Bot

MovieBot is a Telegram bot that recommends movies based on data from my personal movie database on Notion. I use it to discover new movies to watch every week.

Table of contents

Getting Started

To install MovieBot, you'll need to follow these steps:

  • Clone the repository to your local machine.
  • Install the required dependencies using pip install -r requirements.txt.
  • Create a Telegram bot using the BotFather and obtain your bot token.
  • Create a Notion API key by following the instructions provided in the official Notion API documentation.
  • Set the environment variables TELEGRAM_TOKEN and NOTION_API_KEY to your Telegram bot token and Notion API key, respectively.
  • Configure the DATABASE_URL variable in config.py to point to the Notion database that contains your movie data.

Usage

Once you've set up the bot, you can start it by running python main.py.

The bot will send you a message once a week with a movie recommendation that you haven't seen yet. You can interact with the bot by sending it messages or commands.

The following commands are currently supported:

  • /start: Start the bot and receive the first message.
  • /recommend: Receive a new movie recommendation.
  • /list: Get a list of 10 random movies in your Notion database.
  • /help: Get a list of available commands.

Contributions

As this is a personal pet project, I'm not currently accepting contributions. However, if you have any feedback or suggestions, feel free to open an issue in the repository.

movie_telegram_bot's People

Contributors

edwardmailian avatar edwardmailyan avatar

Watchers

Kostas Georgiou avatar  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.