Created
June 24, 2014 08:58
-
-
Save orumin/d7c93648e832948bc3d9 to your computer and use it in GitHub Desktop.
YoみえたらYoするやつ
This file contains 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 :Yo_reply do | |
on_appear do | ms | | |
ms.each do | m | | |
if m.message.to_s = ~ /Yo/ | |
Service.primary.post(:message => "#{"@" + m.user.idname + "Yo"}", :replyto => m) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment