• Stars
    star
    159
  • Rank 235,916 (Top 5 %)
  • Language
    Ruby
  • License
    MIT License
  • Created almost 9 years ago
  • Updated almost 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

You can easily make Slack Bot!! ⭐

SimpleSlackBot

Build Status

This library wrapping slack-ruby-client library

Preview

Preview gif

Installation

Add this line to your application's Gemfile:

gem 'simple-slack-bot'

And then execute:

$ bundle

Or install it yourself as:

$ gem install simple-slack-bot

Simple Usage

This is simple!

require 'simple-slack-bot'

bot = SlackBot::Client.new

bot.configure do |config|
  config.join_message = 'Hello!'
  config.debug = true # 
  config.token = 'YOUR SLACK BOT TOKEN'
end

bot.add_command /Hello/ do |data|
  bot.message(data['channel'], "Hello. <@#{data['user']}>!")
end

bot.start!

Refer to the Slack event message for data

License

The MIT License (MIT)

Copyright (c) 2016 Lee Sun-Hyoup

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

qart.js

Generate artistic QR code. 🎨
JavaScript
3,142
star
2

Floaty

❀️ Floating Action Button for iOS
Swift
1,541
star
3

awesome-style-guide

A list of awesome⭐style guide.
Ruby
1,058
star
4

GlitchLabel

G..lit...c...hing UILa..bel fo..r iO...S πŸ“Ί
Swift
1,038
star
5

react-barcode

A <Barcode/> component for use with React.
Makefile
287
star
6

HorizontalDial

A horizontal scroll dial like Instagram.
Swift
210
star
7

aws-ecr-action

This Action allows you to create Docker images and push into a ECR repository.
Shell
124
star
8

SelectionDialog

Simple selection dialog
Swift
117
star
9

jazzlang

μƒ€λΉ±λ‘λΉ„λšœλ°₯ 두비두비두비두비 λšœλΉ„λ‘λ°₯ 사바두비두봐 샀바닀 두뢸둑 🎷
HTML
115
star
10

thing

A rule-based entity management library written in Kotlin
Kotlin
56
star
11

FBLiveAPISample-iOS

Facebook Live API Sample for iOS
Swift
56
star
12

vimgolf-finder

Simple VimGolf challenge finder. πŸ”Ž
Ruby
48
star
13

MySQLForNonDeveloper

λΉ„κ°œλ°œμžλ₯Ό μœ„ν•œ MySQL ⁽(ΛƒΜ΅ΝˆΜ‘α΄—Λ‚Μ΅ΝˆΜ‘)⁽
34
star
14

coding-interview-js

JavaScript
29
star
15

vue-ime-model

v-model directive for countries using IME.
JavaScript
26
star
16

RxGoogleMaps

RxGoogleMaps is a RxSwift wrapper for GoogleMaps delegate.
Swift
24
star
17

RxAutoUpdater

Auto update to data for UITableView/UICollectionView
Swift
23
star
18

terraform-apply-for-aws-action

Create, change, and improve AWS infrastructure by Terraform.
Shell
21
star
19

OnlyDesignable

This is only a collection of designable views for storyboards.
Swift
20
star
20

NNGameFramework

λ„₯슀트 학생듀을 μœ„ν•œ κ°„λ‹¨ν•œ 2D ν”„λ ˆμž„μ›Œν¬
C
18
star
21

daily

daily run your routine commands very easy! πŸ‘
Shell
17
star
22

eos-project-vue-boilerplate-simple

Rewrite (https://github.com/EOSIO/eosio-project-boilerplate-simple) to Vue.js
Shell
13
star
23

dead-toast

🍞 Dead simple Javascript Toast like Android.
JavaScript
12
star
24

NNEngine

NHN NEXT Game Engine
C++
10
star
25

resume

Lee Sun-Hyoup's RΓ©sumΓ©
HTML
9
star
26

slack_hungry

Slack λ°₯ 메뉴 μΆ”μ²œ 봇.
Python
7
star
27

DeepLearningTetris

Python
7
star
28

laravel-vue-bootstrap

PHP
7
star
29

polymorphic-react-component-sample

TypeScript
6
star
30

vue-weather

JavaScript
5
star
31

HangeulKit

Swift
5
star
32

qart-cli

QArt.js for CLI
4
star
33

dotfiles

Shell
4
star
34

jquery-simple-chart

jQuery 차트 ν”ŒλŸ¬κ·ΈμΈ μž…λ‹ˆλ‹€.
JavaScript
4
star
35

RainyDay

3
star
36

kciter

3
star
37

notevuek

JavaScript
3
star
38

brainfuck-impl

Brainfuck implementations each other in different languages.
JavaScript
3
star
39

TreeStana

JavaScript
3
star
40

kciter.github.io

TypeScript
2
star
41

vue-stagram

JavaScript
2
star
42

FlappyBirdClone

FlappyBirdClone
2
star
43

microfrontend-sample

JavaScript
2
star
44

next-subsystem

TypeScript
2
star
45

iOS-FinishTest

Swift
2
star
46

mf-sdu-test

TypeScript
2
star
47

vuex-counter-example

JavaScript
2
star
48

pokestop-alram

ν¬μΌ€μŠ€νƒ‘ μ•ŒλžŒμž„
Shell
2
star
49

Android-FinishTest

Java
1
star
50

jenkins-pipeline-test

JavaScript
1
star
51

expandable-spring-architecture

1
star