Skip to content
/ shiki Public

The "Unidentified" Bot Framework for Twitter, written in Ruby.

License

Notifications You must be signed in to change notification settings

uetchy/shiki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

式(Shiki) beta

Shiki is The "Unidentified" Bot Framework for Twitter, written in Ruby.

Features / Problems

  • Easy to write.

Requirement

  • pupil, json and oauth gem
  • Ruby 1.9.x

Installation

gem install shiki

Examples

require "shiki"

OAUTH_KEY = {
	:consumer_key => "something",   	# Required
	:consumer_secret => "something"		# Required
	:access_token => "something",       # Required
	:access_token_secret => "something" # Required
}

class Merry < Shiki::Base
  set :oauth_key, OAUTH_KEY
  
  use :memory, :database => "databases/memory/memory.db"
  
  event :mention do |status|
    user = memory.remember :person => status.user
    if user.replied_average_time < 40
      tweet = "頻繁にリプ飛ばしてくるの、正直鬱陶しいんです。やめてください"
      status.user.reply(tweet)
    end
  end
end

merry = Merry.new
merry.run

Credits

Developer: Oame

License

Copyright (c) 2011 Oame. See LICENSE.txt for further details.

About

The "Unidentified" Bot Framework for Twitter, written in Ruby.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages