Giter Site home page Giter Site logo

tg-hubot's Introduction

TG社のHubotちゃん

現在、hubotちゃんの脳みそはローカルファイルとして保存されています。 これは"file-brain.coffee"を使っていることによるものです。 Redisではありません(Redisにすると引っ越しがめんどくさそうだったので) brain-dump.jsonを持っていけば一瞬で移行が完了します。

ローカルで実行してみる

./runhubot.sh する

Docker上で実行してみる

docker build . する

その前に

brew install boot2docker して boot2docker init して boot2docker up する

boot2docker に接続する

boot2docker ssh してパスワードは tcuser

GCE に接続する

gcutil ssh no1

接続後、vvakameユーザのルートにtg-hubotフォルダがある(変更したい…)

その前に

gcloud auth login とかしてその後project idにtopgate-hubotを指定しておく

dockerのゲスト側に接続する

docker ps -a とかして適切なイメージIDを見つける たいてい一番上? イメージIDにタグつければいいんだろうけどdocker repositoryに行ってしまっても困るしな感

docker run -d -p 22 イメージID するとPORTSのとこにフォワーディング先が見える ssh root@localhost -p フォワーディング先ポート でゲストに接続できる PW:admin (Dockerfile内で定義)

今解決したいこと Contribute please!

  • GCE上で動かす方法変えたい
    • 今、わかめマシンからログインした先が作業場所になっているので他の人がいじれない…
  • お引っ越し手順をまとめておきたい
    • Dockerの運用中イメージをcommitしてまるごと移築する方法
    • 最悪brain-dump.jsonだけ移動する手順をまとめればいいかな
  • @hubot die とかした時に自動的に復帰するようにしたい
    • 要するに死活監視
    • その時に git pull --rebase してから復帰してほしい

Customizing

Scripting

Take a look at the scripts in the ./scripts folder for examples. Delete any scripts you think are useless or boring. Add whatever functionality you want hubot to have. Read up on what you can do with hubot in the Scripting Guide.

hubot-scripts

There will inevitably be functionality that everyone will want. Instead of adding it to hubot itself, you can submit pull requests to hubot-scripts.

To enable scripts from the hubot-scripts package, add the script name with extension as a double quoted string to the hubot-scripts.json file in this repo.

external-scripts

Tired of waiting for your script to be merged into hubot-scripts? Want to maintain the repository and package yourself? Then this added functionality maybe for you!

Hubot is now able to load scripts from third-party npm packages! To enable this functionality you can follow the following steps.

  1. Add the packages as dependencies into your package.json
  2. npm install to make sure those packages are installed

To enable third-party scripts that you've added you will need to add the package name as a double quoted string to the external-scripts.json file in this repo.

tg-hubot's People

Contributors

vvakame avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.