Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bruhapi-fixed

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bruhapi-fixed

Gives random jokes, words, images and more. Also has a text to image feature. Fixed by AizakkuDev.

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

🅱 BruhAPI

Welcome to the fixed version of the BruhAPI NPM package! This package has many things to play around with such as text to image, random jokes & facts, random subreddit images, and more! A documentation of how to use each feature can be found below.

Note

This package can be used if the main package is currently broken, but you can use this anytime.

Initialize BruhAPI NPM

npm install bruhapi will install the package.

const bruh = require("bruhapi-fixed") will reference the package.

*Each function using BruhAPI should be async.

How to Use

Using the BruhAPI NPM module is very easy! Just use bruh('/endpoint') and it'll return the res query from the endpoint response. Most responses return res for the most important query. Created by WILLM4937, fixed by AizakkuDev.

Examples

Fact
const bruh = require("bruhapi-fixed") //require the package
test() //call the function
async function test() 
{console.log(await bruh('/fact'))} //declare the function

This will return a fact to the console. Here is an example output: Washington, DC is the capital of the United States of America.

Chatbot (discord.js)
const bruh = require("bruhapi-fixed")
client.on("message", message => {
  if (message.author.bot) return; // Just to make sure the bot doesn't respond to itself
  const response = await bruh('/cb/Never gonna give you up') // You can change "Never gonna give you up" to the message you want to input for the bot to respond.
  message.channel.send(response) // Bot sends response to "Never gonna give you up"
})

This will return a chatbot response in Discord. Since I inputted "Never gonna give you up", the bot will respond: Never gonna let you down.


If you have any questions, please join the Discord server!

Keywords

FAQs

Package last updated on 11 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc