Skip to content

Instantly share code, notes, and snippets.

View horie1024's full-sized avatar

Ryosuke Horie horie1024

  • ZOZO, Inc.
  • Japan
View GitHub Profile
uri = URI.parse("SLACK_WEB_HOOK_URL")
data = {"text" => "@vasilybot " + schedule_run_resp.run.arn}
Net::HTTP.post_form(uri, {"payload" => data.to_json})
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
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]
module.exports = (robot) ->
robot.catchAll (msg) ->
matches = msg.message.text.match(/@vasilybot\s*(.*)/)
if matches == null or matches.length == 0
return
runArn = matches[1]
Feature: Login feature
Scenario: As a valid user I can log into my app
When I press "Login"
Then I see "Hello world!"
async = require 'async'
Soracom = require 'soracom'
module.exports = (robot) ->
speed =
minimum: 's1.minimum'
slow: 's1.slow'
standard: 's1.standard'
fast: 's1.fast'
android {
signingConfigs {
release {
storeFile file(YOUR_KEYSTORE_PATH)
storePassword "STORE_PASS"
keyAlias "ALIAS"
keyPassword "KEY_PASS"
}
}
buildTypes {
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"
module.exports = (robot) => {
const kekka = [
'大吉',
'中吉',
'凶'
];
robot.hear(/^デプロイ占い$/, (msg) => {
msg.send(msg.random(kekka));
});
const request = require('request');
module.exports = (robot) => {
// Slackへの全ての投稿を監視
robot.catchAll((msg) => {
// チャンネル名で絞り込み
if (msg.envelope.room === 'Channel name to monitor.') {