diff --git a/app/functions.py b/app/functions.py index be7677e..73378f2 100644 --- a/app/functions.py +++ b/app/functions.py @@ -1,4 +1,5 @@ from discord_webhook import DiscordWebhook +from sys import exit class AllInformation: @@ -41,13 +42,15 @@ def test_discord_webhook(graphics, webhook_url: str): graphics.error("Looks like a wrong webhook URL.") exit() elif response.status_code == 404: - graphics.error("Webhook URL doesn't exist. Try recreating it on discord.") + graphics.error( + "Webhook URL doesn't exist. Try recreating it on discord.") exit() elif response.status_code == 200: graphics.success("Webhook test successful.") - webhook.delete(response) + response = webhook.delete(response) else: - graphics.error(f"Unknown Webhook Error, Error Code: {response.status_code}") + graphics.error( + f"Unknown Webhook Error, Error Code: {response.status_code}") exit() diff --git a/app/main.py b/app/main.py index 8113d89..2d9d60e 100644 --- a/app/main.py +++ b/app/main.py @@ -1,4 +1,4 @@ -from logging import info +from sys import exit from pyEarnapp import EarnApp from pyEarnapp.errors import * from config import Configuration @@ -28,6 +28,7 @@ webhook_templates = WebhookTemplate() except (KeyboardInterrupt, SystemExit): graphics.warn("Received exit signal!") + input("Press enter to continue:\n\t") exit() @@ -112,4 +113,5 @@ def calculate_changes(): main() except (KeyboardInterrupt, SystemExit): graphics.warn("Received exit signal!") + input("Press enter to continue:\n\t") exit() diff --git a/metadata/build.json b/metadata/build.json index ea558a6..9f847c3 100644 --- a/metadata/build.json +++ b/metadata/build.json @@ -23,7 +23,7 @@ }, { "optionDest": "name", - "value": "EarnApp Earning Monitor" + "value": "EarnApp-Earning-Monitor" }, { "optionDest": "ascii",