forked from MarseyWorld/MarseyWorld
lol im aevann now
parent
15d67f266d
commit
fd4c3dccc9
|
@ -9,7 +9,7 @@ GIPHY_KEY = environ.get('GIPHY_KEY').rstrip()
|
||||||
|
|
||||||
@app.route("/giphy", methods=["GET"])
|
@app.route("/giphy", methods=["GET"])
|
||||||
@app.route("/giphy<path>", methods=["GET"])
|
@app.route("/giphy<path>", methods=["GET"])
|
||||||
def giphy():
|
def giphy(path=None):
|
||||||
|
|
||||||
searchTerm = request.args.get("searchTerm", "")
|
searchTerm = request.args.get("searchTerm", "")
|
||||||
limit = int(request.args.get("limit", 48))
|
limit = int(request.args.get("limit", 48))
|
||||||
|
|
|
@ -134,7 +134,7 @@ def transfer_coins(v, username):
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
|
||||||
transfer_message = f"🤑 [@{v.username}]({v.url}) has gifted you {amount} {app.config['COINS_NAME']}!"
|
transfer_message = f"🤑 [@{v.username}]({v.url}) has gifted you {amount} {app.config['COINS_NAME']}!"
|
||||||
send_notification(v.id, receiver, transfer_message)
|
send_notification(NOTIFICATIONS_ACCOUNT, receiver, transfer_message)
|
||||||
return {"message": f"{amount} {app.config['COINS_NAME']} transferred!"}, 200
|
return {"message": f"{amount} {app.config['COINS_NAME']} transferred!"}, 200
|
||||||
|
|
||||||
return {"message": f"{app.config['COINS_NAME']} transferred!"}
|
return {"message": f"{app.config['COINS_NAME']} transferred!"}
|
||||||
|
|
Loading…
Reference in New Issue