main: Small fixed for licences
This commit is contained in:
parent
fb9295c260
commit
d6dffc0464
@ -16,6 +16,11 @@ if Master_Port == None:
|
||||
FREE_LICENCE = os.getenv('FREE_LICENCE')
|
||||
if FREE_LICENCE == None:
|
||||
FREE_LICENCE = False
|
||||
else:
|
||||
if FREE_LICENCE.lower() == "true":
|
||||
FREE_LICENCE = True
|
||||
else:
|
||||
FREE_LICENCE = False
|
||||
|
||||
intents = discord.Intents.default()
|
||||
client = discord.Client(intents=intents)
|
||||
|
@ -37,7 +37,7 @@ def new_site():
|
||||
|
||||
# Verify both API key and domain exist
|
||||
if api_key == None:
|
||||
return jsonify({'error': 'Missing API key', 'success': 'false'})
|
||||
return jsonify({'error': 'No licence provided', 'success': 'false'})
|
||||
|
||||
if domain == None:
|
||||
return jsonify({'error': 'Missing domain', 'success': 'false'})
|
||||
|
Loading…
Reference in New Issue
Block a user