Animebot is a Telegram bot that provides users with access to a large database of anime, movies, and TV series. It allows users to search for content, view details, and watch videos directly through the bot.
- Search for anime, movies, and TV series by title
- Browse content by ratings (IMDb, Kinopoisk, Shikimori)
- Search by external links (IMDb, Kinopoisk, Shikimori)
- View detailed information about each title
- Watch content directly through embedded video players
- Add titles to favorites
- Dark/light theme switcher for the web interface
To run Animebot using Docker, follow these steps:
-
Ensure you have Docker installed on your system.
-
Clone the repository:
git clone https://github.com/w1sq/animebot.git cd animebot
-
Create a
.env
file in the root directory with the following variables:API_KEY=your_telegram_bot_token SECRET_KEY=your_flask_secret_key CONN_STR=your_postgresql_connection_string
-
Build the Docker images:
docker build -f Dockerfile.bot -t animebot-bot . docker build -f Dockerfile.web -t animebot-web .
-
Run the containers:
docker run -d --env-file .env --name animebot-bot animebot-bot docker run -d --env-file .env -p 5000:5000 --name animebot-web animebot-web
The web server will be accessible at
http://localhost:5000
. -
To stop the containers:
docker stop animebot-bot animebot-web
-
To remove the containers:
docker rm animebot-bot animebot-web
/start
- Initialize the bot and display the main menu/help
- Display help information and FAQ- Use inline queries to search for content (e.g.,
@YourBotUsername #anime Naruto
)
bot/
- Contains the Telegram bot codeweb/
- Contains the Flask web server codeDockerfile.bot
- Dockerfile for the Telegram botDockerfile.web
- Dockerfile for the web server
The project uses PostgreSQL as its database. The main models are:
Users
- Stores user information and preferencesAnime
- Stores information about anime titles
This project is licensed under the MIT License - see the LICENSE file for details.
- aiogram - Telegram Bot framework
- Flask - Web framework
- SQLAlchemy - ORM for database operations
For more information on how to use the bot and frequently asked questions, visit our FAQ page.