feat(bible): starting the process of moving over to free_python_bible_api
This commit is contained in:
parent
220e8da790
commit
b07ba604b7
6 changed files with 33907 additions and 13 deletions
|
@ -11,7 +11,7 @@ import random
|
|||
|
||||
import aiohttp
|
||||
from discord import Embed
|
||||
from redbot.core import Config, commands
|
||||
from redbot.core import commands
|
||||
from redbot.core.bot import Red
|
||||
from redbot.core.utils.chat_formatting import error
|
||||
|
||||
|
@ -28,12 +28,7 @@ class Bible(commands.Cog):
|
|||
super().__init__()
|
||||
self.bot = bot
|
||||
self.session = aiohttp.ClientSession()
|
||||
self.config = Config.get_conf(
|
||||
self, identifier=481923957134912, force_registration=True
|
||||
)
|
||||
self.logger = logging.getLogger("red.sea.bible")
|
||||
self.config.register_global(bible="de4e12af7f28f599-02")
|
||||
self.config.register_user(bible=None)
|
||||
|
||||
async def translate_book_name(self, bible_id: str, book_name: str) -> str:
|
||||
"""Translate a book name to a book ID."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue