Created
March 8, 2018 13:55
-
-
Save toshia/1227d8f468ace3444adc9574f57bfe1b to your computer and use it in GitHub Desktop.
ウーンチ!ウーンチ!ウーンチ!ウーンチ!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Plugin.create(:poop_parrot) do | |
poop_text = [ | |
'ウンチーーーー!!!', | |
'ヴーンチ💕ヴーンチ💕ヴーンチ💕ヴーンチ💕', | |
'ウンチ!?', | |
'カワイイノ💕' | |
] | |
command(:poop_parrot, | |
name: 'ウーンチ!', | |
condition: ->opt{ | |
world, = Plugin.filtering(:world_current, nil) | |
compose?(world, to: opt.messages) | |
}, | |
visible: true, | |
role: :timeline) do |opt| | |
world, = Plugin.filtering(:world_current, nil) | |
opt.messages.each do |m| | |
compose(world, | |
m, | |
body: "@#{m.user.idname} #{poop_text.sample}") | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mikutter 3.6のSpell機能を利用して書いたクソプラグインのサンプルです。
Twitterはもちろん、WorldonプラグインやPortalプラグインによって提供されるWorldで動作確認しています。