Added fireworks days and changed how the date is checked
This commit is contained in:
19
tuxcord/ascii/fireworks.html
Normal file
19
tuxcord/ascii/fireworks.html
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
|
||||||
|
: .-"""-.
|
||||||
|
'.\'/.' ' \
|
||||||
|
-= o =- |,. ,-. | *''*
|
||||||
|
.'/.\'. |()L () \ | *_\/_*
|
||||||
|
: _ |,' `".| | * /\ *
|
||||||
|
: O=====~_.',| ` *..*
|
||||||
|
: .j `--"' ` `. :
|
||||||
|
. '/ ' ' \;
|
||||||
|
_\(/_ / / ` `.
|
||||||
|
./)\ / / Happy ` .
|
||||||
|
' / / Holidays , l |
|
||||||
|
. , TuxCord! ║_/ |
|
||||||
|
_ ,"`. ( . /
|
||||||
|
| ' ``. | '..-'l
|
||||||
|
/ `.`, | `.
|
||||||
|
( `. __.j )
|
||||||
|
\_ |--""___| ,-'
|
||||||
|
`"--...,+"""" `._,.-'
|
||||||
@@ -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()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user