From 39fafede671405f67fbaf94e9d20c4db9fbe7096 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 1 Feb 2024 17:14:06 -0500 Subject: [PATCH] feat(bible): added bible cog --- .docs/bible.md | 21 +++++++++++++++++++++ .docs/img/bible/set-api.png | Bin 0 -> 9839 bytes bible/__init__.py | 5 +++++ bible/bible.py | 22 ++++++++++++++++++++++ bible/info.json | 14 ++++++++++++++ 5 files changed, 62 insertions(+) create mode 100644 .docs/bible.md create mode 100644 .docs/img/bible/set-api.png create mode 100644 bible/__init__.py create mode 100644 bible/bible.py create mode 100644 bible/info.json diff --git a/.docs/bible.md b/.docs/bible.md new file mode 100644 index 0000000..142fc98 --- /dev/null +++ b/.docs/bible.md @@ -0,0 +1,21 @@ +# Bible + +Bible allows you to get a specific (or random) Bible verse from the [API.Bible](https://scripture.api.bible/) API. +This cog does require an api key to work. + +## Installation + +```bash +[p]repo add sea-cogs https://coastalcommits.com/SeaswimmerTheFsh/SeaCogs +[p]cog install sea-cogs bible +[p]cog load bible +``` + +## Setup + +This cog requires an [API.Bible]() API key to function. You can sign up for an account [here](https://scripture.api.bible/signup). This will also generate your first API key for you. + +Then, you can use `[p]set api` to set the API key. Make sure your formatting matches the screenshot below. +![image](img/bible/set-api.png) + +## Commands diff --git a/.docs/img/bible/set-api.png b/.docs/img/bible/set-api.png new file mode 100644 index 0000000000000000000000000000000000000000..9727e576dbc60375ab5e81841393643d93112eef GIT binary patch literal 9839 zcmeHtcTkgC*KaJyk!k@%icvX7RGLbYgral{O^Ea+AT`tg5(p?rQ3R|YH6lW2A%KBM zFyzogK`9Bnij+V?=%FN(`*6}%Of zseI#k#RerAW#Q*Ht~KlG9pyf#XC`EENLW{ot4r6y)b+?Q-E(fwZ`6EGxLT0z1u?nm zY6I&MWZhNRrudaC_@(cfGj^2_P=Jp$~u6I`s@`6C7C!+z$3;F8zgFqH>PWwQhi#p}N?QhQf>)YSo zBX!Ijw_#@=zq=~=JX;WS&7>DmE{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