Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
叫ぶmikutterプラグイン
# -*- coding: utf-8 -*-
Plugin.create :mikutter_shout do
@candidates = "あうえおぁぅぇぉw!".split("")
command(:shout,
name: '叫ぶ',
condition: lambda{ |opt| true },
visible: true,
role: :postbox) do |opt|
str = ""
140.times do
str += @candidates.sample
end
Service.primary.post :message => str
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment