
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
A simple wrapper for the http://slack.com API.
NOTE: the most recent version of the gem has not been published to rubygems.org, so specify the path as shown.
Add this line to your application's Gemfile:
gem 'slackr', :git => 'git://github.com/risk-io/slackr.git'
And then execute:
$ bundle
Or install it yourself as:
$ gem install slackr
Send a message to slack:
require 'slackr'
slack = Slackr.connect("teamX", "token124", {"channel" => "#myroom", "username" => "systems_bot"})
slack.say "hello world" # posts 'hello world' to the myroom channel as the systems_bot user
slack.say "hello", {"channel" => "#room2", "username" => "joke_bot"} # posts 'hello' to the room2 channel as the joke_but user
Retrieve the channel list:
slack.channels.list # returns a hash of channel objects
Upload a file (Note: You must specify channels by their ID, not name. You can send to multiple by using a comma separated list):
slack.upload '/path/to/a/file.txt', {'channels' => 'C026VKGP7'}
Available customizations include:
## General Notes
- Slackr::Connection stores the connection information
- Slackr::Errors stores the various custom errors thrown
- Slackr::Version stores the gem version
- Slackr::IncomingWebhook stores the logic for the various incoming webhook API endpoints
## TODO
- [ ] Support formats for incoming webhook messages
- [ ] Link parsing and attachments
- [ ] CLI
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
FAQs
Unknown package
We found that slackr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.