This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| uri = URI.parse("SLACK_WEB_HOOK_URL") | |
| data = {"text" => "@vasilybot " + schedule_run_resp.run.arn} | |
| Net::HTTP.post_form(uri, {"payload" => data.to_json}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| aws = require 'aws-sdk' | |
| module.exports = (robot) -> | |
| robot.catchAll (msg) -> | |
| matches = msg.message.text.match(/@vasilybot\s*(.*)/) | |
| if matches == null or matches.length == 0 | |
| return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| aws = require 'aws-sdk' | |
| robot.catchAll (msg) -> | |
| matches = msg.message.text.match(/@vasilybot\s*(.*)/) | |
| if matches == null or matches.length == 0 | |
| return | |
| runArn = matches[1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = (robot) -> | |
| robot.catchAll (msg) -> | |
| matches = msg.message.text.match(/@vasilybot\s*(.*)/) | |
| if matches == null or matches.length == 0 | |
| return | |
| runArn = matches[1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Feature: Login feature | |
| Scenario: As a valid user I can log into my app | |
| When I press "Login" | |
| Then I see "Hello world!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async = require 'async' | |
| Soracom = require 'soracom' | |
| module.exports = (robot) -> | |
| speed = | |
| minimum: 's1.minimum' | |
| slow: 's1.slow' | |
| standard: 's1.standard' | |
| fast: 's1.fast' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| android { | |
| signingConfigs { | |
| release { | |
| storeFile file(YOUR_KEYSTORE_PATH) | |
| storePassword "STORE_PASS" | |
| keyAlias "ALIAS" | |
| keyPassword "KEY_PASS" | |
| } | |
| } | |
| buildTypes { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Feature: Setting feature | |
| Scenario: ログインし「スタッフオススメコーデ」が画面内に表示されるまでスクロール | |
| When I press "ログイン" | |
| Then I see "Google+でログイン" | |
| Then I see "Facebookでログイン" | |
| Then I see "Twitterでログイン" | |
| Then I enter text "TEST_ACCOUNT_USER_ID" into field with id "account_form" | |
| Then I enter text "TEST_ACCOUNT_PASSWORD" into field with id "password_form" | |
| Then I press view with id "login_button" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = (robot) => { | |
| const kekka = [ | |
| '大吉', | |
| '中吉', | |
| '凶' | |
| ]; | |
| robot.hear(/^デプロイ占い$/, (msg) => { | |
| msg.send(msg.random(kekka)); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const request = require('request'); | |
| module.exports = (robot) => { | |
| // Slackへの全ての投稿を監視 | |
| robot.catchAll((msg) => { | |
| // チャンネル名で絞り込み | |
| if (msg.envelope.room === 'Channel name to monitor.') { |