forked from cswimr/SeaCogs
feat(bible): added bible cog
This commit is contained in:
parent
3398100a0f
commit
39fafede67
5 changed files with 62 additions and 0 deletions
5
bible/__init__.py
Normal file
5
bible/__init__.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from .bible import Bible
|
||||
|
||||
|
||||
async def setup(bot):
|
||||
await bot.add_cog(Bible(bot))
|
22
bible/bible.py
Normal file
22
bible/bible.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
# _____ _
|
||||
# / ____| (_)
|
||||
# | (___ ___ __ _ _____ ___ _ __ ___ _ __ ___ ___ _ __
|
||||
# \___ \ / _ \/ _` / __\ \ /\ / / | '_ ` _ \| '_ ` _ \ / _ \ '__|
|
||||
# ____) | __/ (_| \__ \\ V V /| | | | | | | | | | | | __/ |
|
||||
# |_____/ \___|\__,_|___/ \_/\_/ |_|_| |_| |_|_| |_| |_|\___|_|
|
||||
|
||||
import logging
|
||||
|
||||
from redbot.core import commands
|
||||
from redbot.core.bot import Red
|
||||
|
||||
class Bible(commands.Cog):
|
||||
"""Retrieve Bible verses from the API.bible API."""
|
||||
|
||||
__author__ = "SeaswimmerTheFsh"
|
||||
__version__ = "1.0.0"
|
||||
|
||||
def __init__(self, bot: Red):
|
||||
super().__init__()
|
||||
self.bot = bot
|
||||
self.logger = logging.getLogger("red.sea.bible")
|
14
bible/info.json
Normal file
14
bible/info.json
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"author" : ["SeaswimmerTheFsh (seasw.)"],
|
||||
"install_msg" : "Thank you for installing Bible!\nYou can find the source code of this cog [here](https://coastalcommits.com/SeaswimmerTheFsh/SeaCogs).",
|
||||
"name" : "Bible",
|
||||
"short" : "Retrieve Bible verses",
|
||||
"description" : "Retrieve Bible verses from the API.bible API.",
|
||||
"end_user_data_statement" : "This cog does not store user information.",
|
||||
"hidden": true,
|
||||
"disabled": false,
|
||||
"min_bot_version": "3.5.5",
|
||||
"max_bot_version": "3.5.0",
|
||||
"min_python_version": [3, 10, 0],
|
||||
"tags": []
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue