Skip to content

Instantly share code, notes, and snippets.

@penguin2716
Last active December 11, 2015 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save penguin2716/4518448 to your computer and use it in GitHub Desktop.
Save penguin2716/4518448 to your computer and use it in GitHub Desktop.
〄が含まれるツイートを検出したら即座に空リプするmikutterプラグイン
# -*- coding: utf-8 -*-
Plugin.create :jis_empty_reply do
on_appear do |ms|
ms.each do |m|
if m.message.to_s =~ /〄/
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