Skip to content

Instantly share code, notes, and snippets.

@penguin2716
Created June 9, 2012 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save penguin2716/2900707 to your computer and use it in GitHub Desktop.
Save penguin2716/2900707 to your computer and use it in GitHub Desktop.
ておくれの魔法♪
# -*- 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