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.
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)
}
}
{
"b": "Sample Riddle",
"s": [
"Sample Answer",
"Sample Answer",
]
}
Credits
- Lester Navarra
- Earl Shine Sawir
- Nkilm
- John Jeremy Antiguo
- John Roy Lapida Calimlim
- Jerson Carin
- John Paul Caigas
- Mark Kevin Manalo
- And to all facebook bot developers