invite system

This commit is contained in:
2024-09-03 04:43:13 +02:00
parent 541e681162
commit 61e98684b6
6 changed files with 161 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
from aura import *
from config import *
from flask import Flask, redirect
from os import environ
aura = Aura('aura.json')
app = Flask(__name__)
@app.route('/<id>')
def root(id):
aura.load()
user = aura.get(str(id))
if user:
user.balance+=120
aura.save()
return redirect(INVITE, code=302)
app.run('127.0.0.1', environ['PORT'])