diff --git a/LICENSE b/LICENSE old mode 100755 new mode 100644 diff --git a/tuxcord/templates/ascii-art.html b/tuxcord/ascii-art.html similarity index 67% rename from tuxcord/templates/ascii-art.html rename to tuxcord/ascii-art.html index 9d480ba..e33eed7 100644 --- a/tuxcord/templates/ascii-art.html +++ b/tuxcord/ascii-art.html @@ -1,12 +1,12 @@
-	{{ ascii_penguin }}
+		
 	
-		{{ ascii_clippy }}
+			
 		
diff --git a/tuxcord/static/favicon.ico b/tuxcord/favicon.ico similarity index 100% rename from tuxcord/static/favicon.ico rename to tuxcord/favicon.ico diff --git a/tuxcord/templates/footer.html b/tuxcord/footer.html similarity index 100% rename from tuxcord/templates/footer.html rename to tuxcord/footer.html diff --git a/tuxcord/head.html b/tuxcord/head.html new file mode 100644 index 0000000..0ddba62 --- /dev/null +++ b/tuxcord/head.html @@ -0,0 +1,4 @@ + + +Tuxcord.NET + diff --git a/tuxcord/templates/header.html b/tuxcord/header.html similarity index 100% rename from tuxcord/templates/header.html rename to tuxcord/header.html diff --git a/tuxcord/templates/index.html b/tuxcord/index.html similarity index 61% rename from tuxcord/templates/index.html rename to tuxcord/index.html index f85cce1..af2fff1 100644 --- a/tuxcord/templates/index.html +++ b/tuxcord/index.html @@ -1,20 +1,19 @@ -{% load static %} - {% include 'head.html' %} +
- {% include 'header.html'%} +
 			

> ls -l /

--rwx------. root root The website --rwxr-xr-x. deadvey users Mastodon --rwxr-x---. javalsai javalsai Gitea --rwxr-xr-x. deadvey users Redlib --rwxr-x---. deadvey deadvey Minecraft +-rwx------. root root . +-rwxr-xr-x. deadvey users mastodon +-rwxr-x---. javalsai javalsai gitea +-rwxr-xr-x. deadvey users redlib +-rwxr-x---. deadvey deadvey minecraft -rwxr-x---. deadvey deadvey matrix.tuxcord.net -rwx------. pixel users join-us.txt -rwxr-xr-x. deadvey users members.html @@ -22,19 +21,15 @@ // Our Matrix and Discord are bridged Matrix Discord -
-
-			

> $BROWSER members.html

-file:///members.html
- {{member_grid_html | safe}} +
- {% include 'ascii-art.html' %} + diff --git a/tuxcord/static/javalsai.avif b/tuxcord/javalsai.avif similarity index 100% rename from tuxcord/static/javalsai.avif rename to tuxcord/javalsai.avif diff --git a/tuxcord/manage.py b/tuxcord/manage.py deleted file mode 100755 index 8df3737..0000000 --- a/tuxcord/manage.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python -"""Django's command-line utility for administrative tasks.""" -import os -import sys - - -def main(): - """Run administrative tasks.""" - os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tuxcord.settings') - try: - from django.core.management import execute_from_command_line - except ImportError as exc: - raise ImportError( - "Couldn't import Django. Are you sure it's installed and " - "available on your PYTHONPATH environment variable? Did you " - "forget to activate a virtual environment?" - ) from exc - execute_from_command_line(sys.argv) - - -if __name__ == '__main__': - main() diff --git a/tuxcord/templates/mc.html b/tuxcord/mc.html similarity index 51% rename from tuxcord/templates/mc.html rename to tuxcord/mc.html index 8cb2350..1d00130 100644 --- a/tuxcord/templates/mc.html +++ b/tuxcord/mc.html @@ -1,48 +1,44 @@ - - {% include 'head.html' %} +
- {% include 'header.html'%} +
Name: Tuxcord-MC
IP/Server Address: mc.tuxcord.net
Version: 1.12.8
- The server has a whitelist, so join our Discord, Matrix or irc.tuxcord.net and ask
if you can join in the #.minecraft channel.
+ The server has a whitelist, so join our Discord, Matrix or irc.tuxcord.net and request
for access in the #.minecraft channel.
The server is cracked, so as to prevent bots and spam, we also have a registration system.

Rules:
  1. - Joking around is Ok, but no directed hate speech. + Joking around is okay, but no directed hate speech is allowed.
  2. - Greifing and killing others is permitted. + Greifing and killing others is permitted (with the exception of the main end island).
  3. - No attempting to crash server or disrupt other people's gameplay with lag machines and the like. -
  4. -
  5. - While greifing is permitted in most cases, do not greif the main end island + No attempting to crash the server or disrupt other people's gameplay.
Examples:
Allowed:
- X-Ray, Baritone, AFK farming etc...
+ X-Ray, Baritone, AFK farming, etc...

Disallowed:
- Aimbot, Auto Sword Smapping etc...
- Lag machine and Game abuse bugs
+ Aimbot, Auto Sword Swapping, etc...
+ Lag machine and game abuse bugs
- {% include 'ascii-art.html' %} + diff --git a/tuxcord/members.html b/tuxcord/members.html new file mode 100644 index 0000000..3ed023a --- /dev/null +++ b/tuxcord/members.html @@ -0,0 +1,13 @@ +
+

> awk -F':' '{ print $1}' /etc/passwd

+PixeL +bruhhhhh😘 +ErrorNoInternet +javalsai +DeaDvey +danmax +duck-that-quacks +grialion +MightyCoderX +Spamix +
diff --git a/tuxcord/members.json b/tuxcord/members.json index e888d19..e805ea5 100644 --- a/tuxcord/members.json +++ b/tuxcord/members.json @@ -16,7 +16,7 @@ "additional": "Admin" }, { - "name": "Javalsai", + "name": "javalsai", "website": "https://javalsai.tuxcord.net", "pfp": "javalsai.avif", "additional": "Admin" @@ -28,7 +28,7 @@ "pfp": "deadvey.png" }, { - "name": "Danmax", + "name": "danmax", "website": "https://git.javalsai.tuxcord.net/danmax", "pfp": "danmax.png" }, @@ -37,7 +37,7 @@ "website": "https://git.javalsai.tuxcord.net/duck-that-quacks" }, { - "name": "Grialion" + "name": "grialion" }, { "name": "MightyCoderX", diff --git a/tuxcord/static/robots.txt b/tuxcord/robots.txt similarity index 100% rename from tuxcord/static/robots.txt rename to tuxcord/robots.txt diff --git a/tuxcord/static/spamix.webp b/tuxcord/spamix.webp similarity index 100% rename from tuxcord/static/spamix.webp rename to tuxcord/spamix.webp diff --git a/tuxcord/static/bruh.png b/tuxcord/static/bruh.png deleted file mode 100644 index 3ce439d..0000000 Binary files a/tuxcord/static/bruh.png and /dev/null differ diff --git a/tuxcord/static/danmax.png b/tuxcord/static/danmax.png deleted file mode 100644 index 8e2a57d..0000000 Binary files a/tuxcord/static/danmax.png and /dev/null differ diff --git a/tuxcord/static/deadvey.png b/tuxcord/static/deadvey.png deleted file mode 100644 index c251085..0000000 Binary files a/tuxcord/static/deadvey.png and /dev/null differ diff --git a/tuxcord/static/error.png b/tuxcord/static/error.png deleted file mode 100644 index 8edecae..0000000 Binary files a/tuxcord/static/error.png and /dev/null differ diff --git a/tuxcord/static/generic.png b/tuxcord/static/generic.png deleted file mode 100644 index 84b66b7..0000000 Binary files a/tuxcord/static/generic.png and /dev/null differ diff --git a/tuxcord/static/javalsai.png b/tuxcord/static/javalsai.png deleted file mode 100644 index cb6dfc7..0000000 Binary files a/tuxcord/static/javalsai.png and /dev/null differ diff --git a/tuxcord/static/mcx.png b/tuxcord/static/mcx.png deleted file mode 100644 index 81b6e06..0000000 Binary files a/tuxcord/static/mcx.png and /dev/null differ diff --git a/tuxcord/static/pixel.png b/tuxcord/static/pixel.png deleted file mode 100644 index 85a83f9..0000000 Binary files a/tuxcord/static/pixel.png and /dev/null differ diff --git a/tuxcord/static/tuxcord.png b/tuxcord/static/tuxcord.png deleted file mode 100644 index 3edbe24..0000000 Binary files a/tuxcord/static/tuxcord.png and /dev/null differ diff --git a/tuxcord/templates/head.html b/tuxcord/templates/head.html deleted file mode 100644 index 89d42a3..0000000 --- a/tuxcord/templates/head.html +++ /dev/null @@ -1,5 +0,0 @@ -{% load static %} - - -Tuxcord.NET - diff --git a/tuxcord/tuxcord/asgi.py b/tuxcord/tuxcord/asgi.py deleted file mode 100644 index d1420ca..0000000 --- a/tuxcord/tuxcord/asgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -ASGI config for tuxcord project. - -It exposes the ASGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/5.2/howto/deployment/asgi/ -""" - -import os - -from django.core.asgi import get_asgi_application - -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tuxcord.settings') - -application = get_asgi_application() diff --git a/tuxcord/tuxcord/urls.py b/tuxcord/tuxcord/urls.py deleted file mode 100644 index 4e65021..0000000 --- a/tuxcord/tuxcord/urls.py +++ /dev/null @@ -1,75 +0,0 @@ -from django.shortcuts import render -from django.urls import path -from django.http import HttpResponse -import os -from datetime import datetime -import json - -ascii_clippy = open('./ascii/clippy.html', 'r').read() - -def decide_ascii(): - date = datetime.today().strftime('%d%m') - - # 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() - # Hallowe'en - if date[2:] == '10': - return open('./ascii/halloween.html', 'r').read() - # Normal - else: - return open('./ascii/normal.html', 'r').read() - - -def members_grid(): - members_grid_html = '' - with open('members.json', 'r') as members_file: - members_object = json.load(members_file) - for member in members_object: - members_grid_html += f''' - {f'' if "website" in member else ''} -
- -
- {member["name"]} -
- {member["additional"] if "additional" in member else ''} -
-
- {'
' if 'website' in member else ''} - ''' - - return members_grid_html - - -def index(request): - ascii_penguin = decide_ascii() - members_grid_html = members_grid() - return render(request, 'index.html', { - 'ascii_penguin': ascii_penguin, - 'ascii_clippy': ascii_clippy, - 'member_grid_html': members_grid_html - }) - -def mc(request): - ascii_penguin = decide_ascii() - return render(request, 'mc.html', { - 'ascii_penguin': ascii_penguin, - 'ascii_clippy': ascii_clippy - }) - -def favicon(request): - with open('static/favicon.ico', "rb") as f: - return HttpResponse(f.read(), content_type="image/icon") - -urlpatterns = [ - path('', index, name='index'), - path('mc', mc, name='mc'), - path('favicon.ico', favicon, name='favicon'), -] - -# In your main file (e.g., manage.py or wsgi.py), set up the server to run. -# Django handles the server running automatically. Configure your settings as needed. diff --git a/tuxcord/tuxcord/wsgi.py b/tuxcord/tuxcord/wsgi.py deleted file mode 100644 index e6440c9..0000000 --- a/tuxcord/tuxcord/wsgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -WSGI config for tuxcord project. - -It exposes the WSGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/5.2/howto/deployment/wsgi/ -""" - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tuxcord.settings') - -application = get_wsgi_application()