commit bot: noch ein Versuch

This commit is contained in:
Jörg Thalheim 2013-10-31 20:35:30 +01:00
parent 7e79b64818
commit 9d2f8a87ad

View File

@ -3,7 +3,8 @@
require 'xmpp4r' require 'xmpp4r'
require 'xmpp4r/muc/helper/simplemucclient' require 'xmpp4r/muc/helper/simplemucclient'
args = gets.chomp.split(/ /) input = gets
args = input.strip.split(/ /)
oldrev = args[0] oldrev = args[0]
newrev = args[1] newrev = args[1]
refname = args[2] refname = args[2]
@ -27,5 +28,6 @@ revs.each do |rev|
message += "#{commit}\n" message += "#{commit}\n"
end end
sleep(2) puts message
sleep(1)
muc.say(message) muc.say(message)