Skip to content

Instantly share code, notes, and snippets.

@Akkiesoft
Last active August 17, 2022 13:51
Show Gist options
  • Save Akkiesoft/a583a6271ee1f6790ded2989e826461b to your computer and use it in GitHub Desktop.
Save Akkiesoft/a583a6271ee1f6790ded2989e826461b to your computer and use it in GitHub Desktop.
俺とお前とお前!お前!お前!お前!お前!お前!お前!お前!
# -*- 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
@kazu0617
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment