Skip to content

Instantly share code, notes, and snippets.

@akameco
Last active December 20, 2015 01:19
Show Gist options
  • Save akameco/6047744 to your computer and use it in GitHub Desktop.
Save akameco/6047744 to your computer and use it in GitHub Desktop.
ロックスターに即座にナイスロックするプラグイン
# -*- coding: utf-8 -*-
Plugin.create :nice_rock do
on_appear do |ms|
ms.each do |m|
if m.message.to_s =~ /ロックスター/
str ="@#{m.user.idname}" + " ナイスロック"
Service.primary.post(:message => str, :replyto => m)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment