WhatsApp Basic support (#108)
This commit is contained in:
parent
a8226279fc
commit
45f272f218
@ -37,7 +37,11 @@ generate_embed_user_agents = [
|
||||
"test"]
|
||||
|
||||
def isValidUserAgent(user_agent):
|
||||
return user_agent in generate_embed_user_agents
|
||||
if user_agent in generate_embed_user_agents:
|
||||
return True
|
||||
elif "WhatsApp/" in user_agent:
|
||||
return True
|
||||
return False
|
||||
|
||||
@app.route('/') # If the useragent is discord, return the embed, if not, redirect to configured repo directly
|
||||
def default():
|
||||
|
Loading…
x
Reference in New Issue
Block a user