From 88aad510b9f8c850d76783f2cf1e812ecedbaf3e Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 1 Feb 2024 20:08:27 -0500 Subject: [PATCH] fix(bible): fixed translate_book_name being case sensitive --- bible/bible.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bible/bible.py b/bible/bible.py index bf7328d..b4c8512 100644 --- a/bible/bible.py +++ b/bible/bible.py @@ -39,7 +39,8 @@ class Bible(commands.Cog): book_name_list = book_name.split() for w in book_name_list: book_name_list.remove(w) - book_name_list.append(w if w.lower() == "of" else w.title()) + book_name_list.append(w.lower() if w.lower() == "of" else w.title()) + book_name = " ".join(book_name_list) books = await self._get_books(bible_id) for book in books: if book_name in (book["abbreviation"], book["name"]):