Skip to content

Instantly share code, notes, and snippets.

@penguin2716
Last active August 29, 2015 14:18
Show Gist options
  • Save penguin2716/550c39bbce7c3cdd4867 to your computer and use it in GitHub Desktop.
Save penguin2716/550c39bbce7c3cdd4867 to your computer and use it in GitHub Desktop.
@sushi514 のツイートがしょっぱかったら即座にふぁぼるmikutterプラグイン
#-*- coding: utf-8 -*-
Plugin.create :auto_favorite_sushi514_shio do
@target_username = "sushi514"
@regexp = /しお|塩|sh?io|salt/
on_appear do |messages|
messages.each do |m|
next unless m.user.to_s == @target_username
m.favorite if @regexp.match m.to_s
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment