Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ておくれの魔法♪
# -*- coding: utf-8 -*-
Plugin.create :teokuremagic do
on_update do |s, ms|
ms.each do |m|
if m.message.user == Service.primary.user and (m.message.to_s =~ /ておくれ/) != nil
Thread.new do
10.times do |x|
Service.primary.post :message => "ておくれ#{' ' * (x+1)}"
sleep(1)
end
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment