Last active
September 19, 2021 13:33
-
-
Save Akkiesoft/93061a3cd4f497c709a4926c8a01d85e to your computer and use it in GitHub Desktop.
電競遊戯の水冷鋼化ガラス側板全面透明ネットカフェネットカレーpcデスクトップの大型カレーボックス
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_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