New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@snort/bot

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snort/bot

Simple bot framework

  • 1.2.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@snort/bot

Simple live stream event chat bot (NIP-53)

Example

import { parseNostrLink } from "@snort/system";
import { SnortBot } from "../src/index";

// listen to chat events on every NoGood live stream 
const noGoodLink = parseNostrLink("npub12hcytyr8fumy3axde8wgeced523gyp6v6zczqktwuqeaztfc2xzsz3rdp4");

// Run a simple bot 
SnortBot.simple("example")
    .link(noGoodLink)
    .relay("wss://relay.damus.io")
    .relay("wss://nos.lol")
    .relay("wss://relay.nostr.band")
    .profile({
        name: "PingBot",
        picture: "https://nostr.download/572f5ff8286e8c719196f904fed24aef14586ec8181c14b09efa726682ef48ef",
        lud16: "kieran@zap.stream",
        about: "An example bot"
    })
    .command("!ping", h => {
        h.reply("PONG!");
    })
    .run();

FAQs

Package last updated on 20 Oct 2024

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