From 09a59717be03ba76b817b859206793cd45f62396 Mon Sep 17 00:00:00 2001 From: markus Date: Mon, 14 Nov 2022 16:39:58 +0100 Subject: [PATCH] Changed command order in help and README. Improved README text. --- README.md | 8 ++++++-- tmdb/tmdb.py | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ea150d1..4bd6a28 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,22 @@ +![Woodpecker-CI](https://drone.sarkasti.eu/api/badges/lomion/tmdb-bot/status.svg) # tmdb-bot -A [maubot](https://github.com/maubot/maubot) to get information about movies from [TheMovieDB.org](https://www.themoviedb.org/). +A [maubot](https://github.com/maubot/maubot) for Matrix messaging to get information about movies from [TheMovieDB.org](https://www.themoviedb.org/). ## Usage Use `!tmdb help` to get help about the bot usage. Use `!tmdb movie {title} [y:{release year}]` to get movie detail based on the given title. +Use `!tmdb tvshow {title}` to get detail about a tv show based on the given title. + Use `!tmdb popular [{rating}]` to get most popular movies. Get details about any one movie in the list by adding the {rating}. Use `!tmdb language {language}` to set your prefered language. Use `!tmdb poster_size [{size}]` to set your prefered poster size. With empty {size} all available sizes are listed. -Use `!tmdb tvshow {title}` to get detail about a tv show based on the given title. +## Screenshot +![Screenshot](screenshot_tmdb-bot-1.2.0.jpg) ## Discussion Matrix room: [#tmdb-bot:matrix.sarkasti.eu](https://matrix.to/#/#tmdb-bot:matrix.sarkasti.eu) diff --git a/tmdb/tmdb.py b/tmdb/tmdb.py index 0952583..54faecb 100644 --- a/tmdb/tmdb.py +++ b/tmdb/tmdb.py @@ -74,10 +74,10 @@ class TmdbBot(Plugin): async def send_help(self, evt: MessageEvent) -> None: html = """

Use !tmdb movie {title} [y:{release year}] to get movie detail based on the given title.

+

Use !tmdb tvshow {title} to get detail about a tv show based on the given title.

Use !tmdb popular [{rating}] to get most popular movies. Get details about any one movie in the list by adding the {rating}.

Use !tmdb language {language} to set your prefered language.

-

Use !tmdb poster_size [{size}] to set your prefered poster size. With empty {size} all available sizes are listed.

-

Use !tmdb tvshow {title} to get detail about a tv show based on the given title.

""" +

Use !tmdb poster_size [{size}] to set your prefered poster size. With empty {size} all available sizes are listed.

""" content = TextMessageEventContent( msgtype=MessageType.TEXT, format=Format.HTML, body="Help for TMDB Bot",