Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
いっぱいふぇぇできる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
You can’t perform that action at this time.