From 3128ef793444b77f5bc74c591e1bc038b5709d3a Mon Sep 17 00:00:00 2001 From: sammyette Date: Tue, 26 Dec 2023 00:18:30 -0400 Subject: [PATCH] feat: merry christmas! --- nature/opts/crimmas.lua | 12 ++++++++++++ nature/opts/init.lua | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 nature/opts/crimmas.lua diff --git a/nature/opts/crimmas.lua b/nature/opts/crimmas.lua new file mode 100644 index 0000000..1525a93 --- /dev/null +++ b/nature/opts/crimmas.lua @@ -0,0 +1,12 @@ +local lunacolors = require 'lunacolors' + +bait.catch('hilbish.init', function() + + if os.date '%m' == '12' and hilbish.interactive and hilbish.opts.crimmas then + local crimmas = math.random(1, 31) + print(crimmas) + if crimmas >= 25 and crimmas <= 29 then + print(lunacolors.format '🎄 {green}Merry {red}Christmas{reset} from your {green}favourite{reset} shell {red}(right?){reset} 🌺') + end + end +end) diff --git a/nature/opts/init.lua b/nature/opts/init.lua index 56c34ba..f4e9647 100644 --- a/nature/opts/init.lua +++ b/nature/opts/init.lua @@ -27,7 +27,8 @@ The nice lil shell for {blue}Lua{reset} fanatics! ]], hilbish.user), motd = true, fuzzy = false, - notifyJobFinish = true + notifyJobFinish = true, + crimmas = true } for optsName, default in pairs(defaultOpts) do