diff --git a/storage.txt b/storage.txt deleted file mode 100644 index a5f189a..0000000 --- a/storage.txt +++ /dev/null @@ -1,38 +0,0 @@ -session: -- unauthenticated T/F -- user_id - random generated 4 digit discrim upon nick creation, otherwise the discord client id if authed -- username -- avatar -- user_keys {guildid: key, ...} - replaced with discord token dict if authed - -database: - -unauthenticated Users: -- id -- guildid -- username -- discrim -- user key -- ip address -- last used timestamp -- revoked - cannot be used again if true - -unauth bans: -- id -- guildid -- ip address -- last known username -- last known discrim -- timestamp -- reason - -auth users: -- id -- guildid -- clientid -- timestamp - -guilds: -- id -- guildid -- enable unauthenticated users diff --git a/titanembeds/blueprints/api/api.py b/titanembeds/blueprints/api/api.py index 8f1d7c2..8bec62c 100644 --- a/titanembeds/blueprints/api/api.py +++ b/titanembeds/blueprints/api/api.py @@ -189,7 +189,7 @@ def post(): content = request.form.get('content') content = format_post_content(content) if user_unauthenticated(): - key = session['user_keys'][channel_id] + key = session['user_keys'][guild_id] else: key = None status = update_user_status(guild_id, session['username'], key) diff --git a/titanembeds/static/titanembeds.mp4 b/titanembeds/static/titanembeds.mp4 new file mode 100644 index 0000000..56c0057 Binary files /dev/null and b/titanembeds/static/titanembeds.mp4 differ diff --git a/titanembeds/templates/index.html.j2 b/titanembeds/templates/index.html.j2 index d461277..6090b91 100644 --- a/titanembeds/templates/index.html.j2 +++ b/titanembeds/templates/index.html.j2 @@ -7,11 +7,9 @@ Start here!

-
{% endblock %}