moltenbar/mod/date
fbt fd3bca11c5 my_config
Signed-off-by: fbt <fbt@fleshless.org>
2016-10-04 15:34:25 +03:00

13 lines
184 B
Ruby

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