moltenbar/mod/date
fbt c1ffc8cb6c ok this time for sure
Signed-off-by: fbt <fbt@fleshless.org>
2016-09-28 23:30:07 +03:00

13 lines
196 B
Ruby

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