Closed nishizuka closed 7 years ago
もっと活用したいので、特に要望があるわけではないが、機能の知見を広げたいので hubot を選択
ソースは、ここ
こんにちは。サポーターです:smile:
英語で読み込んでいくと時間がかかりそうなので、Google神に翻訳を頼んで短縮
Blog もあるみたいなんで、今後はチェックしよう。 https://github.com/blog
RSSリーダーも、生活のメジャーではなくなってしまったので、どうやってこれをウォッチしていくかが課題。
インストールしてみよう。 ソースに先にいったら、RADEME.md にドキュメントのリンクがなくて、迷ったが公式のトップからドキュメントにリンクがあった。
% npm install -g yo generator-hubot
% npm install -g yo generator-hubot
Mac のディレクトリで悩む
Mac がピュア過ぎて、色々と初めから。
$ brew install nodebrew
$ nodebrew install-binary latest
nishizuka@spookies-no-MacBook-Pro ~/Applications> nodebrew install-binary latest
Fetching: https://nodejs.org/dist/v7.10.0/node-v7.10.0-darwin-x64.tar.gz
Warning: Failed to create the file
Warning: /Users/nishizuka/.nodebrew/src/v7.10.0/node-v7.10.0-darwin-x64.tar.gz:
Warning: No such file or directory
curl: (23) Failed writing body (0 != 941)
download failed: https://nodejs.org/dist/v7.10.0/node-v7.10.0-darwin-x64.tar.gz
OSS Gateやって写真取るなら、寝癖ぐらいなおしてくるべきだた。
nishizuka@spookies-no-MacBook-Pro ~> mkdir -p .nodebrew/src
えいっ
nishizuka@spookies-no-MacBook-Pro ~> nodebrew install-binary latest
Fetching: https://nodejs.org/dist/v7.10.0/node-v7.10.0-darwin-x64.tar.gz
########################################### 59.8%
@masayuki14 どうも、よろしくお願いします。インストールを待ってます。
他の人は、何する人ぞ。
インストール完了してた。 実行パスを通す export PATH=$PATH:/Users/xxxxx/.nodebrew/current/bin
英語で読み込んでいくと時間がかかりそうなので、Google神に翻訳を頼んで短縮
日本語のREADMEがあると良さそうですね。
READMEにInstall の導線があったらよさそうでっすね。
Qiitaの記事にもフィードバックできそう?
spookies-no-MacBook-Pro:~ nishizuka$ export
declare -x Apple_PubSub_Socket_Render="/private/tmp/com.apple.launchd.lf9TshTdy0/Render"
declare -x COLORFGBG="7;0"
declare -x HOME="/Users/nishizuka"
declare -x ITERM_PROFILE="Default"
declare -x ITERM_SESSION_ID="w0t0p0:F0628D05-CE5D-4AFF-B9CC-47B25069ABFF"
declare -x LANG="ja_JP.UTF-8"
declare -x LOGNAME="nishizuka"
declare -x OLDPWD
declare -x PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/nishizuka/.nodebrew/current/bin"
declare -x PWD="/Users/nishizuka"
declare -x SECURITYSESSIONID="186a6"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_AUTH_SOCK="/private/tmp/com.apple.launchd.RyZ6KpBaJ1/Listeners"
declare -x TERM="xterm-256color"
declare -x TERM_PROGRAM="iTerm.app"
declare -x TERM_PROGRAM_VERSION="3.0.15"
declare -x TERM_SESSION_ID="w0t0p0:F0628D05-CE5D-4AFF-B9CC-47B25069ABFF"
declare -x TMPDIR="/var/folders/d0/13wfqk_j03q6xcvb0y4vp3p00000gp/T/"
declare -x USER="nishizuka"
declare -x XPC_FLAGS="0x0"
declare -x XPC_SERVICE_NAME="0"
declare -x __CF_USER_TEXT_ENCODING="0x1F6:0x1:0xE"
spookies-no-MacBook-Pro:~ nishizuka$ node -v
-bash: node: command not found
spookies-no-MacBook-Pro:~ nishizuka$ nodebrew ls
v7.10.0
current: none
spookies-no-MacBook-Pro:~ nishizuka$ nodebrew use v7.10.0
use v7.10.0
nishizuka@spookies-no-MacBook-Pro ~> npm install -g yo generator-hubot
npm WARN deprecated CSSselect@0.4.1: the module is now available as 'css-select'
npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what'
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
/Users/nishizuka/.nodebrew/node/v7.10.0/bin/yo -> /Users/nishizuka/.nodebrew/node/v7.10.0/lib/node_modules/yo/lib/cli.js
/Users/nishizuka/.nodebrew/node/v7.10.0/bin/yo-complete -> /Users/nishizuka/.nodebrew/node/v7.10.0/lib/node_modules/yo/lib/completion/index.js
> spawn-sync@1.0.15 postinstall /Users/nishizuka/.nodebrew/node/v7.10.0/lib/node_modules/yo/node_modules/spawn-sync
> node postinstall
> yo@1.8.5 postinstall /Users/nishizuka/.nodebrew/node/v7.10.0/lib/node_modules/yo
> yodoctor
Yeoman Doctor
Running sanity checks on your system
✔ Global configuration file is valid
✔ NODE_PATH matches the npm root
✔ Node.js version
✔ No .bowerrc file in home directory
✔ No .yo-rc.json file in home directory
✔ npm version
Everything looks all right!
/Users/nishizuka/.nodebrew/node/v7.10.0/lib
nishizuka@spookies-no-MacBook-Pro ~/w/hubot> yo hubot
? ==========================================================================
We're constantly looking for ways to make yo better!
May we anonymously report usage statistics to improve the tool over time?
More info: https://github.com/yeoman/insight & http://yeoman.io
========================================================================== Yes
_____________________________
/ \
//\ | Extracting input for |
////\ _____ | self-replication process |
//////\ /_____\ \ /
======= |[^_/\_]| /----------------------------
| | _|___@@__|__
+===+/ /// \_\
| |_\ /// HUBOT/\\
|___/\// / \\
\ / +---+
\____/ | |
| //| +===+
\// |xx|
? Owner Ikuro Nishizuka <nishizuka@spookies.co.jp>
? Bot name hubot
? Description Idea Bot
? Bot adapter campfire
create bin/hubot
create bin/hubot.cmd
create Procfile
create README.md
create external-scripts.json
create hubot-scripts.json
create .gitignore
create package.json
create scripts/example.coffee
create .editorconfig
_____________________________
_____ / \
\ \ | Self-replication process |
| | _____ | complete... |
|__\\| /_____\ \ Good luck with that. /
|//+ |[^_/\_]| /----------------------------
| | _|___@@__|__
+===+/ /// \_\
| |_\ /// HUBOT/\\
|___/\// / \\
\ / +---+
\____/ | |
| //| +===+
\// |xx|
npm ERR! Darwin 16.5.0
npm ERR! argv "/Users/nishizuka/.nodebrew/node/v7.10.0/bin/node" "/Users/nishizuka/.nodebrew/current/bin/npm" "install" "hubot" "hubot-scripts" "hubot-diagnostics" "hubot-help" "hubot-heroku-keepalive" "hubot-google-images" "hubot-google-translate" "hubot-pugme" "hubot-maps" "hubot-redis-brain" "hubot-rules" "hubot-shipit" "--save"
npm ERR! node v7.10.0
npm ERR! npm v4.2.0
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "hubot" under a package
npm ERR! also called "hubot". Did you name your project the same
npm ERR! as the dependency you're installing?
npm ERR!
npm ERR! For more information, see:
npm ERR! <https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm>
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Users/nishizuka/.npm/_logs/2017-05-11T16_57_55_267Z-debug.log
nishizuka@spookies-no-MacBook-Pro ~/w/ideabot> ./bin/hubot
nibot> [Fri May 12 2017 02:28:53 GMT+0900 (JST)] WARNING Loading scripts from hubot-scripts.json is deprecated and will be removed in 3.0 (https://github.com/github/hubot-scripts/issues/1113) in favor of packages for each script.
Your hubot-scripts.json is empty, so you just need to remove it.
[Fri May 12 2017 02:28:53 GMT+0900 (JST)] ERROR hubot-heroku-alive included, but missing HUBOT_HEROKU_KEEPALIVE_URL. `heroku config:set HUBOT_HEROKU_KEEPALIVE_URL=$(heroku apps:info -s | grep web-url | cut -d= -f2)`
[Fri May 12 2017 02:28:53 GMT+0900 (JST)] INFO hubot-redis-brain: Using default redis on localhost:6379
nibot>
日本語の文字列が含まれると、うまく動かない https://github.com/github/hubot/issues/940
↑ これ、リンクするIssue合ってます?
よく見たら、doc の下にらしきドキュメントがあった。
script が、 coffee script 前提で作成されているが、 js もサポートされているので、example.js もあるとありがたいとおもいます。
This is a work log of a "OSS Gate workshop". "OSS Gate workshop" is an activity to increase OSS developers. Here's been discussed in Japanese. Thanks.
作業ログ作成時の説明
以下のテンプレートを埋めてタイトルに設定します。埋め方例はスクロールすると見えてきます。
タイトル例↓:
OSS Gateワークショップ関連情報