Last active
August 29, 2015 14:26
-
-
Save pocke/2a414339875fbc310eef to your computer and use it in GitHub Desktop.
「Docker」 を含むツイートがTLに流れてきたら「どっかーん!」とリプライを送るmikutterプラグイン
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Plugin.create(:dockern) do | |
on_appear do |ms| | |
ms.each do |m| | |
if m.message.to_s =~ /[dD]ocker/ | |
Service.primary.post(message: "@#{m.user.idname} どっかーん!", replyto: m) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment