All Projects → BennySitbon → slack_widgets

BennySitbon / slack_widgets

Licence: MIT license
An abstraction of the JSON structure needed to create widgets in Slack message attachments

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to slack widgets

Slack Ruby Client
A Ruby and command-line client for the Slack Web, Real Time Messaging and Event APIs.
Stars: ✭ 957 (+6735.71%)
Mutual labels:  slack, slackbot, slack-bot
Botonomous
A PHP Framework For Creating Autonomous Slack Bots
Stars: ✭ 109 (+678.57%)
Mutual labels:  slack, slackbot, slack-bot
Obed Bot
🍴 Obed Slack Bot, na požiadanie kontroluje aktuálnu ponuku denného menu reštaurácii. [only for slovak|czech users]
Stars: ✭ 32 (+128.57%)
Mutual labels:  slack, slackbot, slack-bot
iou-slack-bot
💸 IOU Slack Bot - Keep track of your debts with your peers.
Stars: ✭ 13 (-7.14%)
Mutual labels:  slack, slackbot, slack-bot
Go Sarah
Simple yet customizable bot framework written in Go.
Stars: ✭ 188 (+1242.86%)
Mutual labels:  slack, slackbot, slack-bot
Slacker
Slack Bot Framework
Stars: ✭ 495 (+3435.71%)
Mutual labels:  slack, slackbot, slack-bot
Slack Machine
A sexy, simple, yet powerful and extendable Slack bot
Stars: ✭ 91 (+550%)
Mutual labels:  slack, slackbot, slack-bot
Jbot
Make Slack and Facebook Bots in Java.
Stars: ✭ 1,148 (+8100%)
Mutual labels:  slack, slackbot, slack-bot
Chatskills
Run and debug Alexa skills on the command-line. Create bots. Run them in Slack. Run them anywhere!
Stars: ✭ 171 (+1121.43%)
Mutual labels:  slack, slackbot, slack-bot
Fantasy football chat bot
GroupMe Discord and Slack Chatbot for ESPN Fantasy Football
Stars: ✭ 166 (+1085.71%)
Mutual labels:  slack, slackbot, slack-bot
SlackWebhooksGithubCrawler
Search for Slack Webhooks token publicly exposed on Github
Stars: ✭ 21 (+50%)
Mutual labels:  slack, slackbot, slack-bot
git-slack-notify
Sends Slack notifications for new commits in Git repositories
Stars: ✭ 12 (-14.29%)
Mutual labels:  slack, slackbot, slack-bot
dienstplan
Slack bot app for duty rotations
Stars: ✭ 14 (+0%)
Mutual labels:  slack, slackbot, slack-bot
Wc2018 Slack Bot
World Cup 2018 Slack Bot
Stars: ✭ 11 (-21.43%)
Mutual labels:  slack, slackbot, slack-bot
Slack Block Builder
Lightweight, no-dependency JavaScript library for creating Slack Block Kit UIs, with a builder syntax, inspired by SwiftUI.
Stars: ✭ 129 (+821.43%)
Mutual labels:  slack, slackbot, slack-bot
Sactive Bot
😈 An extensible chat bot framework. sactive-bot is an evolution of the open source hubot project. - https://www.shipengqi.top/sactive-bot .
Stars: ✭ 212 (+1414.29%)
Mutual labels:  slack, slackbot, slack-bot
Awesome Bots
The most awesome list about bots ⭐️🤖
Stars: ✭ 2,864 (+20357.14%)
Mutual labels:  slack, slackbot, slack-bot
wp-parsidate
Integrates the Solar Hijri (Persian) calendar in WordPress
Stars: ✭ 36 (+157.14%)
Mutual labels:  widget, picker
eight ball
Ruby gem for querying feature flags
Stars: ✭ 17 (+21.43%)
Mutual labels:  ruby-gem, ruby-on-rails
has placeholder image
A Ruby gem for generating string based placeholder images in Rails.
Stars: ✭ 20 (+42.86%)
Mutual labels:  ruby-gem, ruby-on-rails

SlackWidgets

Developing a Slack app in Ruby? This gem will make your life a bit easier.
SlackWidgets will remove the need to write JSON to create Slack buttons and other widgets.

Installation

Add this line to your application's Gemfile:

gem 'slack_widgets'

And then execute:

$ bundle

Or install it yourself as:

$ gem install slack_widgets

Usage

SlackWidgets::PrimaryButton.create(name: 'continue_button', text: 'Continue', value: 'continue')

# => {:name=>"continue_button",
#     :text=>"Continue",
#     :type=>"button",
#     :style=>"primary",
#     :value=>"continue"}
# This is exactly the format Slack expects in order to create
# a nice green (approval) button with the text "Continue" on it

Primary and Danger button examples: Primary button example

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/BennySitbon/slack_widgets.

License

The gem is available as open source under the terms of the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].