npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hr-sdk

v0.0.4

Published

A JavaScript library for Highrise bot.

Downloads

56

Readme

Highrise SDK

A JavaScript library for creating and managing Highrise bots.

Description

The Highrise SDK provides a comprehensive set of tools and functions to interact with the Highrise game platform. It allows developers to create bots that can perform various actions within the Highrise environment, such as sending messages, managing user interactions, handling in-game economy, and more.

Installation

To install the Highrise SDK, use npm:

npm install hr-sdk

Usage

Here's a basic example of how to use the Highrise SDK:

import { HR, event } from 'hr-sdk';

const bot = new HR();

bot.on(event.Ready, (data) => {
    console.log("bot is connected to the server", data)
})

bot.on(event.Chat, ({user, message, whisper}) => {
   console.log('Received chat create event: @' + user.username + ": " + message);
});

bot.connect('YOUR_BOT_TOKEN', 'YOUR_ROOM_ID');

Features

The Highrise SDK supports the following functions:

  • Chat and Communication

    • message: Send a chat message
    • whisper: Send a private message to a user
    • emote: Perform an emote action
    • reaction: Send a reaction
  • User Management

    • getRoomUsers: Get a list of users in the current room
    • getRoomUserByUsername: Find a user in the room by username
    • getRoomUserByUserId: Find a user in the room by user ID
    • moveUserToRoom: Move a user to another room
  • Room Interactions

    • sit: Make the bot sit on a specific anchor
    • walk: Make the bot walk to a specific position
    • teleport: Teleport the bot to a specific position
  • Economy and Transactions

    • getWallet: Get the bot's wallet information
    • getGold: Get the bot's gold balance
    • getBoostToken: Get the bot's boost token balance
    • getVoiceToken: Get the bot's voice token balance
    • tipUser: Send a tip to a user
    • buyVoice: Purchase voice time
    • buyBoost: Purchase a room boost
    • buyItem: Purchase an item from the shop
  • Moderation and Privileges

    • modAction: Perform a moderation action
    • getRoomPrivilege: Get a user's room privileges
    • changeRoomPrivilege: Change a user's room privileges
  • Inventory and Outfits

    • getBackpack: Get a user's backpack contents
    • getOutfit: Get a user's current outfit
    • setOutfit: Set the bot's outfit
    • getInventory: Get the bot's inventory
  • Voice Chat

    • inviteSpeaker: Invite a user to speak
    • removeSpeaker: Remove a user from speaking
  • Messaging System

    • getConversation: Get conversation history
    • sendMessage: Send a message in a conversation
    • sendBulkMessage: Send a message to multiple conversations
    • getMessage: Get a specific message
    • leaveConversation: Leave a conversation
  • Miscellaneous

    • channel: Perform channel-related actions

Documentation

For detailed documentation on each function and its parameters, please refer to our API Documentation.

Contributing

We welcome contributions to the Highrise SDK! Please mail Email for more information on how to get started.

License

This project is licensed under the MIT License - see the LICENSE file for details.