diff --git a/bible/bible.py b/bible/bible.py index b4c8512..519a45c 100644 --- a/bible/bible.py +++ b/bible/bible.py @@ -36,10 +36,9 @@ class Bible(commands.Cog): async def translate_book_name(self, bible_id: str, book_name: str) -> str: """Translate a book name to a book ID.""" - book_name_list = book_name.split() - for w in book_name_list: - book_name_list.remove(w) - book_name_list.append(w.lower() if w.lower() == "of" else w.title()) + book_name_list = [ + w.lower() if w.lower() == "of" else w.title() for w in book_name.split() + ] book_name = " ".join(book_name_list) books = await self._get_books(bible_id) for book in books: