Skip to content

Instantly share code, notes, and snippets.

@penguin2716
Created January 27, 2013 20:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save penguin2716/4650182 to your computer and use it in GitHub Desktop.
Save penguin2716/4650182 to your computer and use it in GitHub Desktop.
いっぱいふぇぇできるmikutterプラグイン
#-*- coding: utf-8 -*-
Plugin.create :fee do
command(:fee,
name: 'ふぇふぇぇ',
condition: lambda{ |opt| true },
visible: true,
role: :postbox) do |opt|
message_string = ""
loop do
buf = "ふぇ" + ("ぇ" * rand(4))
if message_string.length + buf.length <= 140
message_string += buf
else
break
end
end
Service.primary.post :message => message_string
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment