moltenbar/mod/date

13 lines
184 B
Plaintext
Raw Normal View History

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