diff --git a/discord-bot/bot.py b/discord-bot/bot.py index 978545f..54a4af5 100644 --- a/discord-bot/bot.py +++ b/discord-bot/bot.py @@ -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) diff --git a/master/main.py b/master/main.py index a4adb5e..45ffc35 100644 --- a/master/main.py +++ b/master/main.py @@ -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'})