Skip to content

RyannKim327/Pinoy-Bugtong-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pinoy Bugtong Api

By: MPOP Reverse II

Since I can't find a Filipino Riddles, I try to create my own with the help of nkilm's api, I try to create my own version.


NodeJS (Axios) Code

const axios = require("axios")

async function bugtong(){
	let output = await axios.get("https://api-pinoy-bugtong.vercel.app/").then((result) => {
		return result.data
	}).catch((error) => {
		console.error("Error [Api Riddle]: " + error)
		return null
	})
	return output
}

module.exports = async () => {
	let data = await bugtong()
	if(data == null){
		console.log("Check your console")
	}else{
		console.log(data)
	}
}

Output:

{
	"b": "Sample Riddle",
	"s": [
		"Sample Answer",
		"Sample Answer",
	]
}

Credits

  1. Lester Navarra
  2. Earl Shine Sawir
  3. Nkilm
  4. John Jeremy Antiguo
  5. John Roy Lapida Calimlim
  6. Jerson Carin
  7. John Paul Caigas
  8. Mark Kevin Manalo
  9. And to all facebook bot developers

About

Wala akong makitang api para sa pinoy bugtong, kaya gumawa ako.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published