Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/depthso/luau-bible-api
Advanced wrapper for helloao.org bible API complete with full type checking! ✝️
https://github.com/depthso/luau-bible-api
bible bible-api christian jesus jesus-christ lua luau roblox roblox-api roblox-lua
Last synced: 13 days ago
JSON representation
Advanced wrapper for helloao.org bible API complete with full type checking! ✝️
- Host: GitHub
- URL: https://github.com/depthso/luau-bible-api
- Owner: depthso
- License: mit
- Created: 2024-10-31T21:52:46.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-02T12:19:52.000Z (2 months ago)
- Last Synced: 2024-11-10T01:35:18.535Z (about 2 months ago)
- Topics: bible, bible-api, christian, jesus, jesus-christ, lua, luau, roblox, roblox-api, roblox-lua
- Language: Lua
- Homepage: https://bible.helloao.org/docs/guide/
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Roblox helloao bible API wrapper
Advanced wrapper for helloao.org bible API complete with full type checking! ✝️Orignal API [documentation](https://bible.helloao.org/docs/guide/)
## Examples:
Set default translation. By default the translation is `"eng_kjv"`
```lua
Bible:SetTranslation("eng_kjv")
```Print all avalible translations
```lua
for _, Translation in next, Bible:GetTranslations() do
local id = Translation.id
local englishName = Translation.englishName
print(`🗣️> {englishName} : {id}`)
end
```Print all avalible books for translation
```lua
-- Default translation set by :SetTranslation
local Books = Bible:GetBooks()
for _, Book in next, Books do
print("📙>", Book.name)
end-- Specific translation
-- Bible:GetBooks("eng_kjv")
```Get chapter
```lua
local Chapter = Bible:GetChapter("GEN", 1)
print(Chapter.content) --> type verses-- Specific translation
-- Bible:GetChapter("GEN", 1, "eng_kjv")
```Print verse
```lua
local Verse = Bible:GetVerse("GEN", 1, 1) --> type verse
local Content = Bible:UnpackVerse(Verse)
print(Content) --> In the beginning God created the heaven and the earth.-- Specific translation
-- Bible:GetVerse("GEN", 1, 1, "eng_kjv")
```## Exploit usage
To make this module function with client exploits, we need to replace the HTTP fetch function. \
This is because by default the module will use `HttpService:GetAsync`Replace the Http fetch
```lua
function Bible:Fetch(Url)
return game:HttpGet(Url)
end
```#### Full usage for exploits:
```lua
local Bible = loadstring(game:HttpGet('https://github.com/depthso/LuaU-Bible-API/blob/main/bible.lua?raw=true'))()function Bible:Fetch(Url)
return game:HttpGet(Url)
endBible:SetTranslation("eng_kjv") -- (optional) default is eng_kjv
local Verse = Bible:GetVerse("GEN", 1, 1)
local Content = Bible:UnpackVerse(Verse)
print(Content) --> In the beginning God created the heaven and the earth.
```