diff --git a/sammy.py b/sammy.py new file mode 100644 index 00000000..aead136b --- /dev/null +++ b/sammy.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +sammy_ascii= """ +                                ▄▄           ▄  ▄▄                               +                                 ▄▄           ▄▄    ▄                            +                                ▄              ▄▄▄    ▄                          +                                  ▄ ▄          ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄          ▄▄▄▄▄▄▄  +                                 ▄ ▄  ▄▄  ▄▄▄▄       ▄        ▄▄▄▄▄▄           ▄ +  ▄            ▄   ▄▄▄   ▄       ▄   ▄▄▄▄▄▄▄▄       ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ +            ▄  ▄    ▄ ▄  ▄  ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄        ▄▄▄▄ ▄▄    ▄▄▄  ▄▄        ▄▄  + ▄      ▄      ▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄    ▄   ▄   ▄▄▄  ▄ ▄▄   ▄ ▄▄▄▄▄▄       ▄    +               ▄    ▄▄  ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    ▄▄  ▄▄▄▄▄▄▄▄▄▄▄▄      +                                     ▄▄▄  ▄▄▄▄▄▄▄▄▄▄▄ ▄   ▄  ▄▄▄         ▄       +                                            ▄▄ ▄▄  ▄   ▄▄▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄        +            ▄                               ▄▄     ▄  ▄     ▄▄▄▄▄▄   ▄           +               ▄  ▄   ▄▄      ▄   ▄  ▄▄▄▄     ▄▄▄▄▄▄▄▄       ▄▄▄▄  ▄▄ ▄          +                 ▄  ▄▄    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄  ▄▄                ▄▄           +                                    ▄▄               ▄▄▄▄▄▄ ▄▄▄▄▄▄               +""" \ No newline at end of file diff --git a/server.py b/server.py index 430d1dc7..8db82a05 100644 --- a/server.py +++ b/server.py @@ -1,9 +1,12 @@ +# -*- coding: utf-8 -*- import os import http.server import socketserver - +import locale +from sammy import sammy_ascii from http import HTTPStatus +locale.setlocale(locale.LC_ALL, 'en_US.UTF-8') class Handler(http.server.SimpleHTTPRequestHandler): def do_GET(self): @@ -13,7 +16,9 @@ def do_GET(self): self.wfile.write(msg.encode()) +print(sammy_ascii) + port = int(os.getenv('PORT', 80)) -print('Listening on port %s' % (port)) +print('Listening on port %s 🚀' % (port)) httpd = socketserver.TCPServer(('', port), Handler) -httpd.serve_forever() +httpd.serve_forever() \ No newline at end of file