diff --git a/tuxcord/ascii/fireworks.html b/tuxcord/ascii/fireworks.html new file mode 100644 index 0000000..baf6c6e --- /dev/null +++ b/tuxcord/ascii/fireworks.html @@ -0,0 +1,19 @@ + + : .-"""-. + '.\'/.' ' \ + -= o =- |,. ,-. | *''* + .'/.\'. |()L () \ | *_\/_* + : _ |,' `".| | * /\ * + : O=====~_.',| ` *..* + : .j `--"' ` `. : + . '/ ' ' \; + _\(/_ / / ` `. + ./)\ / / Happy ` . + ' / / Holidays , l | + . , TuxCord! ║_/ | + _ ,"`. ( . / + | ' ``. | '..-'l + / `.`, | `. +( `. __.j ) + \_ |--""___| ,-' + `"--...,+"""" `._,.-' diff --git a/tuxcord/tuxcord/urls.py b/tuxcord/tuxcord/urls.py index 0f99a97..4e65021 100644 --- a/tuxcord/tuxcord/urls.py +++ b/tuxcord/tuxcord/urls.py @@ -8,13 +8,18 @@ import json ascii_clippy = open('./ascii/clippy.html', 'r').read() def decide_ascii(): - day = datetime.today().strftime('%d') - month = datetime.today().strftime('%m') + date = datetime.today().strftime('%d%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() - if month == "10": + # Hallowe'en + if date[2:] == '10': return open('./ascii/halloween.html', 'r').read() + # Normal else: return open('./ascii/normal.html', 'r').read()