Giter Site home page Giter Site logo

omdb-discord-bot's Introduction

OMDb-Discord-Bot

Discord bot for retrieving movie/series information from the Open Movie Databse (OMDb). Search by title or IMDb ID (e.g. tt0133093).

The bot provides the following information (if available):

  • Title and link to the IMDb entry
  • Poster / Image
  • Description
  • Rating
  • Runtime
  • Genre
  • Year(s)

Prerequisites

  • A Discord account, privilege to invite the bot to a server (e.g. your Discord server).

  • Python installed.

Instructions

  1. Clone the repo.

    $ git clone https://github.com/jet76/OMDb-Discord-Bot.git
    
  2. Install the requirements.

    $ pip install -r requirements.txt
    
  3. Visit OMDb API and request an API key. After you receive your OMDb API Key, copy-paste it into .env and save the file.

  4. Proceed to the Discord Developer Portal and create a new Application.

    • In the application's settings, click 'Bot' then 'Add Bot' to create a bot user.

    • Locate the 'Build-A-Bot' section and click the 'COPY' button underneath 'TOKEN' then paste the bot token into .env and save the file.

    • In the aplication's settings, click 'OAuth2, then under 'Scopes' check the box for 'bot' and click the 'Copy' button to copy the authorization url.

    • Open your web browser, proceed to the authorization url, and authorize the bot. The bot should now show as a (offline) member of the server.

  5. Run the bot.

    $ python3 ombd_bot
    

    The console should display

    Logged in as
    YOUR BOT NAME
    YOUR BOT ID
    

    The bot should also appear as online in the Discord server.

  6. Use the !omdb command to search for movies/series by title e.g. !omdb The Matrix or IMDb ID e.g. !omdb tt0133093.

omdb-discord-bot's People

Contributors

jet76 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.