feat: Update README and implement Discord user registration endpoints

This commit is contained in:
MrEisbear 2025-09-24 19:42:46 -05:00
parent e09463b59c
commit af3f02341e
3 changed files with 62 additions and 3 deletions

View file

@ -42,11 +42,16 @@ def token_gen(bid):
algorithm="HS256")
return token
def bot_key(input_key):
def botKey(input_key):
bot_key = current_app.config['BOT_KEY']
if input_key != bot_key:
return False
if input_key == bot_key: # Extra Security which doesnt actually add anything but peace of mind.
return True
return "OhShit" # This should never happen??
# I dont think I should be a programmer, I dont even understand python and prefer golang or java or C#. ANYTHING THAT HAS {}
# I dont think I should be a programmer, I dont even understand python and prefer golang or java or C#. ANYTHING THAT HAS {}
def bot_key(input_key):
return botKey(input_key)
# Legacy, decaprecated (wait I didnt even implement this so why do I even keep this?)
# Random bloat :3