GithubHelp home page GithubHelp logo

kanojo_bot's Introduction

kanojo bot.

Build Status Code Climate Test Coverage Inline docs

@sugyan_knj_bot loves @sugyan

inspired by genki-bot

how to use(local)

get self access token

set env

export TWITTER_CONSUMER_KEY=your key
export TWITTER_CONSUMER_SECRET=your secret
export TWITTER_ACCESS_TOKEN=your token
export TWITTER_ACCESS_TOKEN_SECRET=your token secret
export DOCOMO_API_KEY=your API key

or vi .env (using dotenv)

TWITTER_CONSUMER_KEY=your key
TWITTER_CONSUMER_SECRET=your secret
TWITTER_ACCESS_TOKEN=your token
TWITTER_ACCESS_TOKEN_SECRET=your token secret
DOCOMO_API_KEY=your API key

execute KanojoBot.daisuki

% bundle install
% bundle exec ruby bin/kanojo_bot -d

WARNING: not use -d is really post(You will want to Bitch).

how to add word?

editting for yaml.

Heroku to Deploy

heroku config:set BUNDLE_WITHOUT="development:test"

kanojo_bot's People

Contributors

masahitojp avatar nishimurakaori avatar ryopeko avatar sinsoku avatar sugamasao avatar sugyan avatar troter avatar yanzm avatar yosuke-furukawa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

kanojo_bot's Issues

彼女がビッチ

リプライではなく@付きでポストされると無視する対象に入らないで自動応答してしまう。
誰に声をかけられてもすぐに反応するビッチなのでなんとかしたい

  • すぎゃーんかどうかidを見て判断する
  • 自分がフォローしている人からのTweetかを判定する
    • すぎゃーんしかフォローしない運用にしているのでこれでも問題なさそう

のどっちかかなぁ

文言を別ファイルにする

いま反応するキーワードとツイートする文字列をソースコードに埋め込んでるけど、yamlとかで管理するようにしたいなぁ

彼女ちゃん息してない

原因がよくわからないんだけど、userstreamが取れてない気がする。

デプロイしているときのログはこんな感じ。initの方が後なのが問題なのかなー

2013-06-12T17:09:50.420091+00:00 app[bot.1]: D, [2013-06-12T17:09:50.419650 #2] DEBUG -- : run!
2013-06-12T17:09:50.420159+00:00 app[bot.1]: I, [2013-06-12T17:09:50.420084 #2]  INFO -- : userstream start!!
2013-06-12T17:09:50.424480+00:00 app[bot.1]: I, [2013-06-12T17:09:50.424261 #2]  INFO -- : client init

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.