Skip to content

Instantly share code, notes, and snippets.

# -*- 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
@1995hnagamin
1995hnagamin / syugoga_ookiidesuyo.rb
Last active August 29, 2015 14:20 — forked from anonymous/naniittenda_koitu.rb
主語が大きいですよ
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