Last active
August 29, 2015 13:56
-
-
Save takapiko/8883423 to your computer and use it in GitHub Desktop.
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
# -*- coding: utf-8 -*- | |
Plugin.create :makopero do | |
on_appear do |ms| | |
ms.each do |m| | |
if m.message.to_s =~ /まこぺろ/ && !(m.user.is_me?) | |
Service.primary.post(:message => "#{"@" + m.user.idname + "阻止"}", :replyto => m) | |
m.message.favorite(true) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment