1.0.1 • Published 3 years ago
hyena-api.js v1.0.1
Hyena API Wrapper
Asynchronous/Synchronous API wrapper for the Hyena API.
❓| Hyena API
The Hyena API is an API made by Donut#4427 for stuff like:
- Chatbot
- NSFW
To use the Hyena API you can visit this page. And to get more info on it you can visit the Docs!
And to see how the hyena-bot works and test it out visit the official Discord server!
Installing
Node.js 14+ version is required
To install the library use the following commands:
npm i hyena-api.js
To install from the master branch do this:
npm install git://github.com/AHiddenDonut/hyena-api.js.git --save
Examples
Some quick examples to show how you can use the api
const hyena = require('hyena-api.js')
client = hyena.Client("MY SUPER SECRET API KEY")
// Chatbot response
resp = hyena.chatbot({message : "Hello!", name : "My bot's name", owner : "My name"})
.then(text => console.log(text))
.catch(err => console.log(err))
const hyena = require('hyena-api.js')
client = hyena.Client("MY SUPER SECRET API KEY")
// NSFW images
resp = hyena.nsfw({nsfw_type : "endpoint", format : "json"})
.then(text => console.log(text))
.catch(err => console.log(err))
/*
How to use the response class [Default]
resp.title : Title of response
resp.description : Description of response
resp.image_url : Image URL of response
resp.url : url of the original post
*/