Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

rock-so

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rock-so

🪨 An unofficial wrapper around the Rock.so Public API

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

rock-so

🪨 An unofficial wrapper around the Rock.so public API. It's simple but it does it's thing!

Installation

It's really simple. All you need is Node.js and NPM/Yarn installed!

npm i rock-so

or

yarn add rock-so

Usage

It's pretty simple, just create a custom webhook in your Rock space and then create a Rock client in your code. Here's an example on how to send a message to the channel

const Rock = require("rock-so");
    // Fill in the token of the client
  const client = new Rock("YOUR TOKEN HERE"); 
  const res = await client.sendMessage({
    text: "how are you", // The message you want to send
  });

  console.log(res); // Prints the ID of the message sent

You're done! You've sent a message. More examples are in the /examples directory. (Not right now, they'll be added later...)

Docs

There's also documentation available, it's autogenerated but it should give you an idea on what it is. If you find an issue in the comments be sure to open an issue. The docs are automatically generated with an AI so there are some issues sometimes...

🌐 [Wrapper Documentation](https://github.com
🪨 Rock API Documentation
💻 You can generate 'em yourself with npm run docs. It'll make a docs folder with HTML.

Credits

Thanks for for people at Rock.so for making the platform. I truly love it.

The API Docs that it's based off: https://rock.so/public-api/

Keywords

rock.so

FAQs

Package last updated on 23 May 2022

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