Last active
August 17, 2022 13:51
-
-
Save Akkiesoft/a583a6271ee1f6790ded2989e826461b 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
# -*- coding: utf-8 -*- | |
Plugin.create(:mikutter_daigorou) do | |
command( | |
:mikutter_daigorou, | |
name: '大五郎', | |
condition: lambda{ |opt| true }, | |
visible: true, | |
role: :timeline | |
) do |opt| | |
opt.messages.each do |message| | |
Plugin.call(:daigorou, message) | |
end | |
end | |
on_daigorou do | message | | |
greets = ["む〜かしの〜","と〜も〜は〜", "い〜ま〜も〜", "友〜!", | |
"俺と", "お前と", "\ダンッダンッ/", "大五郎〜♪"] | |
n_msg = "" | |
msg = "@"+ message.user.idname + " " | |
while TRUE do | |
n_msg = greets.sample | |
break if msg.split(//).size + n_msg.split(//).size >= 140 | |
msg += n_msg | |
end | |
world, = Plugin.filtering(:world_current, nil) | |
compose(world, message, body: msg) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.youtube.com/watch?v=of5MTVw51QU