From e9fa28aaed3794bfcc99b41b69c0d92170dce5ee Mon Sep 17 00:00:00 2001 From: Akumatic Date: Wed, 20 Jun 2018 14:56:09 +0200 Subject: [PATCH] Checks now if token is inserted --- akuma.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/akuma.py b/akuma.py index ed1369f..d39dd32 100644 --- a/akuma.py +++ b/akuma.py @@ -84,6 +84,9 @@ async def unload(ctx, ext : str = None, json : bool = False): if __name__ == "__main__": #loads all extensions mentioned in settings.json + if(c["token"] == ""): + print("Please insert a Bot Token into settings.json first") + exit() for ext in c["extensions"]: try: bot.load_extension("extensions." + ext)