Skip to content

Instantly share code, notes, and snippets.

@penguin2716

penguin2716/pork.rb

Created Feb 8, 2013
Embed
What would you like to do?
mikutterでporkするプラグイン
#-*- coding: utf-8 -*-
Plugin.create(:pork) do
command(:pork,
name: 'このユーザにporkする',
condition: lambda{ |opt| true },
visible: true,
role: :timeline) do |opt|
opt.messages.each { |m|
Service.primary.post(:message => "@#{m.user.idname}
ε ⌒ヘ⌒ヽフ
( ( ・ω・) < PORK!!
しー し─J#{" " * rand(10)}", :replyto => m)
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.