Socket
Book a DemoInstallSign in
Socket

peertransfer_chat

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

peertransfer_chat

bundlerRubygems
Version
1.0.0
Version published
Maintainers
1
Created
Source

PeertransferChat

A wrapper that works as a unique interface to integrate a chat system into the peerTransfer platform.

Build Status

Build Status Coverage Status Code Climate Dependency Status

Installation

Add this line to your application's Gemfile:

gem 'peertransfer_chat', git: 'https://github.com/peertransfer/peertransfer_chat.git'

And then execute:

$ bundle

Or install it yourself as:

$ gem install peertransfer_chat

Usage

Configure the chat client:

PeertransferChat.configure do |config|
  config.api_token = api_token
  config.channel = team_channel
  config.username = team_username
end

Send a message:

PeertransferChat::Client.speak('There are issues pending review')

Upload a file:

PeertransferChat::Client.upload('/path/to/a/file.txt')

Slack settings description

  • channel Channel name
  • api_token This token comes from your user https://api.slack.com/web
  • rtm_token Real time messaging, you can find it in integration -> bot -> token

FAQs

Package last updated on 29 Jul 2020

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