Added fireworks days and changed how the date is checked

This commit is contained in:
2025-10-24 17:24:16 +01:00
parent 639e5d26c3
commit cfe40935b4
2 changed files with 28 additions and 4 deletions

View File

@@ -0,0 +1,19 @@
: .-"""-.
'.\'/.' ' \
-= o =- |,. ,-. | *''*
.'/.\'. |()L () \ | *_\/_*
: _ |,' `".| | * /\ *
: O=====~_.',| ` *..*
: .j `--"' ` `. :
. '/ ' ' \;
_\(/_ / / ` `.
./)\ / / Happy ` .
' / / Holidays , l |
. , TuxCord! ║_/ |
_ ,"`. ( . /
| ' ``. | '..-'l
/ `.`, | `.
( `. __.j )
\_ |--""___| ,-'
`"--...,+"""" `._,.-'

View File

@@ -8,13 +8,18 @@ import json
ascii_clippy = open('./ascii/clippy.html', 'r').read() ascii_clippy = open('./ascii/clippy.html', 'r').read()
def decide_ascii(): def decide_ascii():
day = datetime.today().strftime('%d') date = datetime.today().strftime('%d%m')
month = datetime.today().strftime('%m')
if month == "12": # Fireworks/Independence days
if date == "0101" or date == "0407" or date == "0511":
return open('./ascii/fireworks.html').read()
# Christmas
if date[2:] == '12':
return open('./ascii/christmas.html', 'r').read() return open('./ascii/christmas.html', 'r').read()
if month == "10": # Hallowe'en
if date[2:] == '10':
return open('./ascii/halloween.html', 'r').read() return open('./ascii/halloween.html', 'r').read()
# Normal
else: else:
return open('./ascii/normal.html', 'r').read() return open('./ascii/normal.html', 'r').read()