Skip to content

Commit

Permalink
システムメッセージにする機能を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
enkunkun committed Apr 20, 2013
1 parent 012f165 commit b4fb5f2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion haruiconsaba.rb
Expand Up @@ -2,6 +2,7 @@
require 'json'
require 'open-uri'
Plugin.create(:haruiconsaba) do
UserConfig[:haruiconsaba_to_system] ||= false
haruiconApiUri = "http://api.haruicon.com/?g="
tOfh = "さん"
tag = " #はるアイコン鯖 "
Expand All @@ -24,7 +25,12 @@
else
mes = "はるアイコン鯖に誰も居ないよ"
end
Post.primary_service.update(:message => mes)

Post.primary_service.update(:message => mes, :system => UserConfig[:haruiconsaba_to_system])
}
end

settings "はるアイコン鯖" do
boolean "ログイン情報をシステムメッセージで表示", :haruiconsaba_to_system
end
end

0 comments on commit b4fb5f2

Please sign in to comment.