Created
March 12, 2013 14:52
-
-
Save penguin2716/5143537 to your computer and use it in GitHub Desktop.
単位認定するmikutterプラグイン
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 :credit do | |
command(:credit, | |
name: '単位認定', | |
condition: lambda{ |opt| true }, | |
visible: true, | |
role: :timeline) do |opt| | |
opt.messages.each { |m| | |
Service.primary.post(:message => " 単位認定 | |
@#{m.user.to_s} 殿 | |
必修科目「ておくれ」の単位を認定します. | |
#{Time.now.strftime('%Y年%m月%d日')} @#{Service.primary.user.to_s}", :replyto => m) | |
} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment