moltenbar/mod/date

13 lines
196 B
Plaintext
Raw Normal View History

# vim: ft=ruby
class ModDate < Worker
def mainloop()
while true do
self.write Time.now.strftime(@config['mod']['date']['format'])
2016-09-27 08:13:42 +00:00
sleep(1)
end
end
end
Modules.add("date", "ModDate")