Skip to content

Instantly share code, notes, and snippets.

@Akkiesoft
Last active September 19, 2021 13:33
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Akkiesoft/93061a3cd4f497c709a4926c8a01d85e to your computer and use it in GitHub Desktop.
Save Akkiesoft/93061a3cd4f497c709a4926c8a01d85e to your computer and use it in GitHub Desktop.
電競遊戯の水冷鋼化ガラス側板全面透明ネットカフェネットカレーpcデスクトップの大型カレーボックス
# -*- coding: utf-8 -*-
Plugin.create(:mikutter_currybox) do
command(
:mikutter_currybox,
name: '大型カレーボックス',
condition: lambda{ |opt| true },
visible: true,
role: :timeline
) do |opt|
opt.messages.each do |message|
Plugin.call(:currybox, message)
end
end
on_currybox do | message |
greets = ["電競遊戯の", "水冷", "鋼化ガラス", "側板", "全面透明", "ネットカフェ", "ネット", "カレー", "pc", "デスクトップの", "大型", "カレーボックス"]
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