Checks now if token is inserted
This commit is contained in:
parent
6a39bb75f7
commit
e9fa28aaed
3
akuma.py
3
akuma.py
@ -84,6 +84,9 @@ async def unload(ctx, ext : str = None, json : bool = False):
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
#loads all extensions mentioned in settings.json
|
#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"]:
|
for ext in c["extensions"]:
|
||||||
try:
|
try:
|
||||||
bot.load_extension("extensions." + ext)
|
bot.load_extension("extensions." + ext)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user