mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-08 12:09:01 -06:00
such newline strip update
This commit is contained in:
@@ -43,7 +43,7 @@ def favicon():
|
|||||||
@app.route('/avatar/<id>')
|
@app.route('/avatar/<id>')
|
||||||
def getAvatar(id=''):
|
def getAvatar(id=''):
|
||||||
# Constants
|
# Constants
|
||||||
token = open(os.path.join(sys.path[0], 'app', 'static', 'token.dat'), 'r').read()
|
token = open(os.path.join(sys.path[0], 'app', 'static', 'token.dat'), 'r').read().strip()
|
||||||
headers = {'Authorization' : f'Bot {token}'}
|
headers = {'Authorization' : f'Bot {token}'}
|
||||||
api = "https://discordapp.com/api/v6/users/{}"
|
api = "https://discordapp.com/api/v6/users/{}"
|
||||||
cdn = "https://cdn.discordapp.com/avatars/{}/{}.png"
|
cdn = "https://cdn.discordapp.com/avatars/{}/{}.png"
|
||||||
|
|||||||
Reference in New Issue
Block a user