mazel
is a slack application that extract elements randomly from multiple candidates.
- latest stable Nodejs
- slack account
Only when you want to use your own server. The procedure for deploying to now.sh as an example is described below.
- Install now-cli
$ npm install -g now
- Login to now.sh
$ now login
- Deploy to now.sh
$ now
Set mazel
as slash commands.
Set slash commands from the following URL.
https://my.slack.com/apps/new/A0F82E8CA-slash-commands
Label | Value |
---|---|
Choose a Command | /mazel |
URL | Your server address or https://mazel.now.sh |
Method | GET |
Customize Name | mazel |
/mazel [row:n] [column:n] candidates
Parameter | Description | Example | Default Value |
---|---|---|---|
row | Number of rows | row:4 | No limit |
column | Number of columns | column:2 | 1 |
/mazel foo bar baz qux quux corge grault garply waldo fred plugh xyzzy thud
output
1: foo
2: baz
3: thud
4: garply
5: fred
6: xyzzy
7: corge
8: qux
9: quux
10: bar
11: waldo
12: plugh
13: grault
/mazel column:5 foo bar baz qux quux corge grault garply waldo fred plugh xyzzy thud
output
1: garply, plugh, quux, baz, bar
2: grault, fred, corge, xyzzy, qux
3: waldo, thud, foo
/mazel row:3 column:2 foo bar baz qux quux corge grault garply waldo fred plugh xyzzy thud
output
1: corge, xyzzy
2: grault, foo
3: garply, baz
- Fork(https://github.com/unblee/mazel/fork)
- Create a branch (
git checkout -b my-fix
) - Commit your changes (
git commit -am "fix something"
) - Push to the branch (
git push origin my-fix
) - Create a new Pull Request
- Have a coffee break and wait