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 :mikutter_korosareru do | |
on_appear do |ms| | |
ms.each do |m| | |
if m.message.to_s =~ /殺す([^る]|$)/ and !(m.retweet?) and !(m.from_me?) then | |
Service.primary.post( | |
:message => "殺される #{m.parma_link()}" | |
) | |
end |
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 :syugoga_ookiidesuyo do | |
command(:syugoga_ookiidesuyo, | |
name: '主語が大きいですよ', | |
condition: lambda{ |opt| opt.messages.size == 1 }, | |
visible: true, | |
role: :timeline) do |opt| | |
Service.primary.post message: "主語が大きいですよ #{opt.messages.first.parma_link}" | |
end | |
end |