1.0.0 • Published 5 years ago
weirdapi.js v1.0.0
The Weird API
The Weird API is the collection of random APIs.
Installing:
npm i weirdapi.js
Examples:
1.
const weirdapi = require('weirdapi.js');
let meme = weirdapi.meme()
console.log(meme);
2.
const weirdapi = require('weirdapi.js');
let reply = weirdapi.chat("Hello my friend, how are you?")
console.log(reply);
Functions:
- meme()
- chat('message')
- lyrics('song')
- cat()
- bird()
- dog()
- weather('city')
- pokemon('pokemon_name')
- qrgen('text')
- barcode('text')
- eightball('question')
- roast()
- uriEncode('url')
- uriDecode('url')
- token()
- welcomemsg()
Direct Usage:
const fetch = require("node-fetch");
var url = `https://theweirdapi.glitch.me/api/chatbot/chat?message=hello`
fetch(url)
.then(res => res.json())
.then(output => console.log(output.message))