The movie club bot acts as a sort of raffle or roulette system for picking movie titles out of a user-made database for ease of random selections within movie clubs.
/suggest_movie <title>
: Suggest a film using TMDB API./draw_movie
: Randomly select a film from the suggestions.- Prevents duplicate movie suggestions.
- Logs who suggested which film.
This bot will help you pick a random movie out of a 'hat' in Discord and allows users to add their own suggestions to the database.
- Open the Discord Developer Portal
- Create a new application
- Click on the "Bot" tab on the left.
- Copy your bot's token and save it for later.
- Make sure you enable
Message Content Intent
- In the "OAuth2" tab on the left, go to the URL Generator, add the "bot" and "applications.commands" scopes, and invite the bot to your server.
- Create a TMDB account and get your API key
- Clone the repo
git clone https://github.com/zevinal/movie-club-bot.git
cd movie-club-bot
- Install dependancies
pip install -r requirements.txt
- Create a
.env
file from the example
cp .env.example .env
- Fill in your
.env
file with your Discord bot token and TMDB API key. - Run the bot
python bot.py
- Uses SQLite for simple storage.
- You can expand this bot to include tracking past movie draws.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.