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

github.com/599matt/chaturbate

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/599matt/chaturbate

  • v0.0.0-20190722184947-e215eeb3c5da
  • Source
  • Go
  • Socket score

Version published
Created
Source

Chaturbate

GoDoc

Non-official Chaturbate API UNDER DEVELOPMENT

Chat

You can connect to room chat by using NewChat method.

Example :

chat, err := chaturbate.NewChat(context.Background(), "ROOM_NAME", option.WithoutAuthentication())

if err != nil {
    log.Fatal(err)
}

chat.OnMessage = func(author, message string) {
    fmt.Printf("[>] %s: %s\n", author, message)
}

chat.OnTip = func(author string, amount int) {
    fmt.Printf("[!] %s tipped %d\n", author, amount)
}

chat.OnNotice = func(notices []string) {
    for _, notice := range notices {
        fmt.Printf("[*] %s\n", notice)
    }
}

Available callbacks :

  • OnMessage func(author, message string)
  • OnTip func(author string, amount int)
  • OnNotice func(notices []string)
  • OnUserEntry func(user string)
  • OnUserLeave func(user string)
  • OnMute func()

FAQs

Package last updated on 22 Jul 2019

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