mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-12-14 01:55:46 +00:00
20 lines
No EOL
353 B
Lua
20 lines
No EOL
353 B
Lua
local fs = require("fs")
|
|
|
|
local date = os.date("*t")
|
|
|
|
if date.month == 4 and date.day == 28 then
|
|
print("Ed Balls")
|
|
return
|
|
end
|
|
|
|
local motdList = {}
|
|
|
|
local f<close> = fs.open("/sys/share/motd.txt", "r")
|
|
for line in f:lines() do
|
|
table.insert(motdList, line)
|
|
end
|
|
f:close()
|
|
|
|
local motdIndex = math.random(1, #motdList)
|
|
|
|
print(motdList[motdIndex]) |